1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 11:27:57 -05:00
denoland-deno/tests/registry/npm/err-code/registry.json
Nathan Whitaker ce7dc2be92
feat(node): Support executing npm package lifecycle scripts (preinstall/install/postinstall) (#24487)
Adds support for running npm package lifecycle scripts, opted into via a
new `--allow-scripts` flag.

With this PR, when running `deno cache` (or `DENO_FUTURE=1 deno
install`) you can specify the `--allow-scripts=pkg1,pkg2` flag to run
lifecycle scripts attached to the given packages.

Note at the moment this only works when `nodeModulesDir` is true (using
the local resolver).

When a package with un-run lifecycle scripts is encountered, we emit a
warning suggesting things may not work and to try running lifecycle
scripts. Additionally, if a package script implicitly requires
`node-gyp` and it's not found on the system, we emit a warning.

Extra things in this PR:
- Extracted out bits of `task.rs` into a separate module for reuse
- Added a couple fields to `process.config` in order to support
`node-gyp` (it relies on a few variables being there)
- Drive by fix to downloading new npm packages to test registry

---

TODO:
- [x] validation for allow-scripts args (make sure it looks like an npm
package)
- [x] make allow-scripts matching smarter
- [ ] figure out what issues this closes

---
Review notes:
- This adds a bunch of deps to our test registry due to using
`node-gyp`, so it's pretty noisy
2024-07-10 03:06:08 +00:00

1 line
No EOL
29 KiB
JSON

{"_id":"err-code","_rev":"22-0ae43d4fc7587bd273e579cf0aa2fe03","name":"err-code","description":"Create an error with a code","dist-tags":{"latest":"3.0.1"},"versions":{"0.1.0":{"name":"err-code","version":"0.1.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"gitHead":"7994ebf8fab2f8449931fc168cb8afad86cb4ed0","homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.0","_shasum":"a5dc76c504d3fdd5875b59291265d1b7d0c67eac","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"a5dc76c504d3fdd5875b59291265d1b7d0c67eac","tarball":"http://localhost:4260/err-code/err-code-0.1.0.tgz","integrity":"sha512-d2kwK2+9yC3zMgp1riyl9tltuiEQi6Dm7hcsKngQ5L0HY9lhM6QgKvpG0ZMwLFe1hTybgM0zL/I7Ujik/1HmaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC82CXIrbqsbyX4cq6aH9jvVM2T0VRxqlExj9qerscYpAiArPh+KmrqXwaHFTDfXjgLzc8S4uSHoKIPuUhWAvXzKsg=="}]},"directories":{}},"0.1.1":{"name":"err-code","version":"0.1.1","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.1","_shasum":"a710a2b4a5f1b7672616dcee2a1834fb2f4d4cd7","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"a710a2b4a5f1b7672616dcee2a1834fb2f4d4cd7","tarball":"http://localhost:4260/err-code/err-code-0.1.1.tgz","integrity":"sha512-X4LWSTGqbcnvnqIcUfr5rGcHwGaSwCUiaX3PvLLEqKP1QrNq5+odp+UqRRmuBGsfDBaYxW7Nn3dBc++jujSU8Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmASJLT+raBphOc8EtTi/0/jL6zgQALjx/A/VUP2OQCAiAU/EIU5UPPk9EQb4fIVH+3EbYaoyR7ucX8VPV8dGwrMQ=="}]},"directories":{}},"0.1.2":{"name":"err-code","version":"0.1.2","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"~1.8.1","expect.js":"~0.2.0"},"homepage":"https://github.com/IndigoUnited/err-code","_id":"err-code@0.1.2","_shasum":"122a92b3342b9899da02b5ac994d30f95d4763ee","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"122a92b3342b9899da02b5ac994d30f95d4763ee","tarball":"http://localhost:4260/err-code/err-code-0.1.2.tgz","integrity":"sha512-V+asySzy0ouG05jbyz3ls+uTlgd/alyD3BvUBRP1D8GbzNU7CKlZ/iDS2PZVpXzBTKQ6P/u6fEObCgnilX7usw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT80SgcJYzw8zYeCS1r/nYeh68gV3+5Y42UnSZzxPK7AIgQ/k6jLQa3gfkuCOEJu1Ovvcv43RS03o+E+kCNBcFHEc="}]},"directories":{}},"1.0.0":{"name":"err-code","version":"1.0.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha -R spec"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"mocha":"^2.3.4","expect.js":"^0.3.1"},"gitHead":"346259a1a41e3688830a8f22f66419108b9b6e69","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.0.0","_shasum":"15d5aa25003c4ccbf9e09501ec5022fbb082a474","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"15d5aa25003c4ccbf9e09501ec5022fbb082a474","tarball":"http://localhost:4260/err-code/err-code-1.0.0.tgz","integrity":"sha512-05RluNKX0NuscDUF+pu1HTPRXVp/5az50mQ+RYqAAKm0ZsqLVuWWUtlzkxNNV55N+T2zGu4DUyFWPQswzs6x8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGqUrlD6p+Ni/Llw0tKKT3IPdQl70mzHPlqHZchU7vwlAiEA6Si8VVE1BqCWDdo7ymzZlrBkfnQ5KsLhSmQnX4NzddM="}]},"directories":{}},"1.1.0":{"name":"err-code","version":"1.1.0","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^1.0.8","browserify":"^13.0.0","expect.js":"^0.3.1","mocha":"^2.3.4"},"gitHead":"60c1ff69fba79b90132248432089682837cfa992","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.0","_shasum":"76d5e2c8b99f7fac89886e760883f6a4abe76463","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"76d5e2c8b99f7fac89886e760883f6a4abe76463","tarball":"http://localhost:4260/err-code/err-code-1.1.0.tgz","integrity":"sha512-PsXeOb27w+OdG1WGZkyG1qTTkYnq54Vy5L26mHsu0a5rWZMmv5+Cu2mc0Qb+0SbEocGdSe4oP3rTJ6CxDhYPug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2HMVHfUfGmE9C2YB+vbIUo3UlG8kOKgTpGTxBxtwrFwIgG16oNajtNU24EI7aUZ8oNhbCAnIxLz5LQgOSAAaULTs="}]},"directories":{}},"1.1.1":{"name":"err-code","version":"1.1.1","description":"Create an error with a code","main":"index.js","scripts":{"test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^1.0.8","browserify":"^13.0.0","expect.js":"^0.3.1","mocha":"^2.3.4"},"gitHead":"51cf8730f49dc6e12580e22ed714c7bc52238889","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.1","_shasum":"739d71b6851f24d050ea18c79a5b722420771d59","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"739d71b6851f24d050ea18c79a5b722420771d59","tarball":"http://localhost:4260/err-code/err-code-1.1.1.tgz","integrity":"sha512-Q73stZ9AKE+M56qqlaD6Zoji5U7Iv2B0Qxgz9ejVVDN1wt0BhwaUPwterzCmD4uVb3T0xPJjWI8uHlPnEHCJkw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHFVjEBPAG2vg35UNpb3I0RI6PILYDJ/S21sa/9uturqAiEAn8FxXRo3Ta7NZbFrJ2y4ssV2mLpE3me5YWCBlofpA/I="}]},"directories":{}},"1.1.2":{"name":"err-code","version":"1.1.2","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"af1a79e272c10e4daf38d75a3e91c85783b226a4","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@1.1.2","_shasum":"06e0116d3028f6aef4806849eb0ea6a748ae6960","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"06e0116d3028f6aef4806849eb0ea6a748ae6960","tarball":"http://localhost:4260/err-code/err-code-1.1.2.tgz","integrity":"sha512-CJAN+O0/yA1CKfRn9SXOGctSpEM7DCon/r/5r2eXFMY2zCCJBasFhcM5I+1kh3Ap11FsQCX+vGHceNPvpWKhoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZEai1QS/K/WyZ26NrHONp5FuiFqdNFDSZ55X9v58LAgIhAL19DUPZ121KBLVkiFYILwRu5suDegPvTppa5wxogdmg"}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/err-code-1.1.2.tgz_1491258166209_0.5635493844747543"},"directories":{}},"2.0.0":{"name":"err-code","version":"2.0.0","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"6ae501a12b74a2088a1e11502ec64be8920db3fa","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"dist":{"integrity":"sha512-MsMOijQ4v0xlmrz1fc7lyPEy7jFhoNF7EVaRSP7mPzs20LaFOwG6qNjGRy3Ie85n9DARlcUnB1zbsBv5sJrIvw==","shasum":"452dadddde12356b1dd5a85f33b28ddda377ef2a","tarball":"http://localhost:4260/err-code/err-code-2.0.0.tgz","fileCount":10,"unpackedSize":7944,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdL0hwCRA9TVsSAnZWagAAFrgQAJ1XgRt/6+eiGnPfRwwL\nE7LaawlHzBKXXLjx/78b8tAXmQI/ENjJbTJchnRSuHDWfMn//gT6/v++pIVu\nyFYomWkgs7Zpl7i3a5K7gAGOcLWIvDeipp3jeQNBWtio+nr7l8VFeWnnbf/L\nzhB1zylb/OZR7nkVzbAHgzXLgRAcljnCeVMw+8agwFH2HI6e3hFiTAptW/yk\nvb5BhdF0UUeYJ/cE/F4LZ7Xee4lwH5FQatAus9nNw0xcZJolAd3Q1pq5CenF\n7qyOnzE7U9nOj/NSFq5nxuyYOilOg+Wv0eIDTMooGQRj9MfM2SSmJgVQVAzR\nOZKEj5PbmE0Q2Dhi5eDA/RBxEHfzgL1om/KyBSNTA/ZHvlZvcHrWb2LH7UTI\npJnXLZVxAsczcnWOe+7YrGyzRBQbxyyXBAugxY6JlS5+p7gy/TwaKkKng8a0\nxD0kFsrb2rUbQzrOT6Gt4nWIACtJa2c0mbjlARlFuqo+uRsMdXr7HPbkO5uX\nXchKHDsLzYqDh0LvznFwpix/TP4mH3dX1PMc92iK6e79vAkiRvRhWAUVXqyS\nkHqAOJcvMf311kbBGYvWWUNXiPFCbhn3/bX9XN0Sjuv481E1bSNfaJkZUti0\nuOdmoI9sZDhvTVHru+OPcp3N9TNv1H5iyy8fy01qQQJ5mERSgbzFj9F/9ZCO\nDx3Q\r\n=hoks\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDn14OVJ1jWqk78ccr2x7WpXd03CNRa6lwLdGgNHvuwkAiBylY3kWvdUs0BWwsvrNZnBsUaSoN3uOBOFExKOj/5/0g=="}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.0_1563379823813_0.9193382197293369"},"_hasShrinkwrap":false},"2.0.1":{"name":"err-code","version":"2.0.1","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"6715bb58710c4e149b79bdb4cb32aca437192b8b","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-kRoa6BXKCX1ImYDZ6yKO0ckU5af1pNV4mpILrmwXrpIiLaVYM4uyMbwhZZ2xhy7WwVm6sEPYJABX4X6jRD3Jew==","shasum":"fa2074c30259a55dd93bb952617c4997184bb7b1","tarball":"http://localhost:4260/err-code/err-code-2.0.1.tgz","fileCount":10,"unpackedSize":9742,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4OyyCRA9TVsSAnZWagAAqGIP/2L1T+RGGh1dMgo/xAnN\n1EK8jb/6IpHKZN5VRV9+wLAPl8Mum+QKL47Hm8GXVxa7ToopkI2MVLTF9R+I\nSaLuEMhhaXMHHZrg5QIyEdx9dAgns1epuLJdDbIL6FSUNn5e1jlcgPRsrgPP\n8Hy2RvGSVHGrNhbOI7WMs+55sbsSjHUvz/IpEWld1tLjyOWfY4S6PB7Gxvwi\n7SpWerCBilZ+KZJ99E908bDITmC1vxKXNHIVRYPR7YxVlHWUX04zIWsUadg8\nXBDLfZCoLEVAfgmkGvPGu0f+V5cbe7mJmmgChn+F5+VFAF4aLyO62cwB33Vj\nnn4uhSd3lUVZ2ou4l9SrATgcBfx6ap7Q4e3g1C6sFkSXTN7hy05S65aY+U3C\n7EBsYlQAcgVGFRnxpYHIQ+agjf272KDpGOAK/sew5gV9moectEaP83WteSIv\nUCvp2mo9qh4j87fTwp0hPK5lZjGZ/IMc3Shy8DJygoLLhlO0x8ZzdjJxqZal\nBrIc5wZt8pxLzF9y3eeqL53DvyXTjZgCdmsjsJms6aemnJWPndGAxZ4Rr7TJ\nsvcj3S3PTIIbMewjHHNwtQtYquAkXFFizYv3xjtO7BR4qmR1kofU05x0u1+C\ncXmtlUinazR95sENrCkAXijqXG7Sfyu5hP40fhpMq1x21+NSoZK+sIhtzP/p\nza9I\r\n=+5Z9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9SencVdu30vD6vOlTPwFELhMuqnr0WvXhdNSsG/5XSwIgTomdFNmLGoM8b0oTBOldXJtLVGErK35qqFMfrqyejXk="}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.1_1591798961982_0.09781283438698551"},"_hasShrinkwrap":false},"2.0.2":{"name":"err-code","version":"2.0.2","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2"},"gitHead":"d6ee017ca3db9983bc16dc157b1485c9c71c6e23","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.2","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-cSVM85xDoIsi+WrRBwhfu4yVaW9NJaMjtGgHfGKkfNeSGwAnK5RDRJfAVsvvVU1LvREs51m2brj9nU251Y+eCA==","shasum":"394458df3403578055b06fe6460b938ae743c29c","tarball":"http://localhost:4260/err-code/err-code-2.0.2.tgz","fileCount":10,"unpackedSize":11990,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5HsdCRA9TVsSAnZWagAAAc4P/076bTc/h+BsuB6GVPcM\nMxipA2T67+4RafkURIayyuGo/ycIyIJeUOB4nM/0+o+mNEb+gbZjpzVMfW2T\nK+NXVnrz40gtxJUddBY2V+hcUJruiYYw8XjTej1TkSzDmSSOIkkoCHY/pFCs\nHXN4p1oo9wqiK1ETNU7nWWThmsUTV+q0RJEKBYXV6wdJe3fEI3V/86/NpZ3I\nCcBckumP6+lZ1v3WRSZNqXOgxrZ2FiDdQa9PvaK+xozGOcxcx47Hro5szNZw\nL8+v8lqcSmezfYMK2HCDaeNU+JHUz+xr48SOf5YprU0C4JItQkz9//G9TaDl\nlatgM2fDQEzondwULxUrhEi3E9MvINMdjL9BJsc3I8hdZVYNBlyMclqntdA8\nICs06WetBSq29oBjHZHpAfaUYCXCNO23GB+XYv+o5JNv3yLxUsHQ0HYUpMtg\nLGE5FV5pmQRSqRYv+fbvs1/zrhY9yIm6V2LyD5rzNilt/Lr+H33Vp6ZouayP\nJ/PxOO7R3O7yas2W35GHsCB6w46JW5YVbkwQKYdgBe/bvf9s+zQgbNGGWcPe\nhfwr2zUBbC0AAvF1Y58VNi95cyiYCOBcpidJDiSjrp+/ffmOtRkmQR51535/\ncFJyDlkH1Q47/2Uj9uzzH1PZ+85JCyNDFgo47lfYtD3mY4dxFrbNeH5ng1WE\nA1Ig\r\n=afyU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjvu6OkKLQZd/dHGQ6gBZokyywe4LM4sFbsiSuqRQbeAiEAvFyoLphIiNseQnBKOF5WWXHq74vozqHFZVCVTzCYWj4="}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.2_1592032028529_0.5072863440722495"},"_hasShrinkwrap":false},"2.0.3":{"name":"err-code","version":"2.0.3","description":"Create an error with a code","main":"index.js","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","browserify":"^16.5.1","eslint":"^7.2.0","expect.js":"^0.3.1","mocha":"^8.0.1"},"gitHead":"92511d41a6a926c94c9d11493404867b1e92a77a","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@2.0.3","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==","shasum":"23c2f3b756ffdfc608d30e27c9a941024807e7f9","tarball":"http://localhost:4260/err-code/err-code-2.0.3.tgz","fileCount":10,"unpackedSize":12280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe61mnCRA9TVsSAnZWagAAZukP/24MThzdq9aW1ODioe6b\nAaOi1DN5e8T5yCr5Yb3I8qlfpDk6K7+IWZF/kt/QuLJWJmHUVsVPvyhGIiK5\n4D/EqLaT3huH2EshVpK64vLHW6wC89oJZIM9glgUe8cHa5Baxkf0f0tDwy/C\nXJRuki3MRpZyRsDUf2eaIjFBRw0VsfFYLDvW4MfuiCpiVlrv1QPjcGiJSJyC\nqzTfCltj11+/rjgP2ULYodKzhO9FdTlXL3L6mdlm8gSrh+fXow5POVpoVPCQ\n9dGbqiY7rJ+dwlDXrhghhABJQjsdvtsUljJ4jxbo/bNMn9bjmWKdYjtMGfCC\nDAwh/YqBUXLVt9BQdpNY9gSLcahW609vtXvXY05cfI/TQf/c5qkQWtf6xiOv\n1Md3g41jbTXadXdoTgslRnNA9WPZipu2mJKrtwhit+3uzriX3IBi5lizpHrF\ngOS6Qlp6SRtDHOZ3hZ8dlkIRpOg0W9Zitv/32sHtsZKy+bhluOF5JaaYcM6J\nAouzYXLJj+CkfV+d5LMZqYgYSeI6lW77Y3ehf8aHGBea4rl15wQ+hVkysco6\nWesWSoi2l32CIwvxxAYDwwr7+EhTcUFqpxyuhioSOEfnNYMWlsGe34XicURE\nqXQPd+Bd/8iyimo3qAq5bhrcf0BidHz3w32Uo9KnIRAkA/PkTZ9igpo0uvs6\nr3bY\r\n=aGKM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRiUUK/TTWx/VYm23/tdIENOaASLrdcGmkJxquGw5mHAiEAvZOTRTe4/VNtWPtA9tPX9/BJT78eBLBMHgVs3RFgC3I="}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_2.0.3_1592482215326_0.18918066726812488"},"_hasShrinkwrap":false},"3.0.0":{"name":"err-code","version":"3.0.0","description":"Create an error with a code","main":"index.js","types":"index.d.ts","scripts":{"lint":"eslint '{*.js,test/**/*.js}' --ignore-pattern *.umd.js","check":"tsc --build","test":"mocha --bail","browserify":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","@types/expect.js":"0.3.29","@types/mocha":"8.2.0","browserify":"^14.0.0","eslint":"^3.0.0","expect.js":"^0.3.1","mocha":"^3.0.2","typescript":"^4.1.3"},"gitHead":"5e774e07af7ce7421450f22313490167394b013f","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@3.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-+oiZkhFGx8PLWbQM/Noi9arR8MAs4ZLEJlzhjSsqsb5lgiSlByIt3aL8TSp/AZ8g95lIDcJeBErlERg9Q9a4ow==","shasum":"8d5af04379f18eeb31e9dce0ca82be8386039c23","tarball":"http://localhost:4260/err-code/err-code-3.0.0.tgz","fileCount":13,"unpackedSize":14895,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGUgPCRA9TVsSAnZWagAA0zYP/071IQNAQ0VeggSiEvWT\n8RG1yPNl+SkcyfDrNERHX5u7U3NemaYSgJY/j4xSP2b1PDjbazkkIvzylIE9\nET3COrHI8LoKsyuvWRhKwPPvzirTfpecgU9howeFIy8HT2Rt2EZia/aqtQz6\nDKCPvwNVSrvIY+HJwbt0LP2S/WDxwFwWJEgthUlI3etPkWfKhvjDmrz6pZke\naQ3Pnpi5hTzvVIuL7PEea9M1cbwiYPiKDu68D0BzKPw72SmmYz6QvO2E4ImE\nvyIwC43ZzzV+9m4/URAn0ZvN/svd5qF3nlQCIdLJ/npxb1enq+jB8DLkHwPm\n5E3EsIPJh5PNmMVyzTMqo9OpCFJW8hXlEG9f5KwM6fDMSd0WFMGsKE6f7ufZ\nX2Rp/YNzJ+ji8UEGGPfHTv5Iue6CYjW7xEx404shu6U2m5Nf8SDnyae2kFgD\nTDGTVgiontv1EXDdJDav8lh9uQ5L72/bn4IwGH/65PKi59EHbxImwLHDIZtu\nLoAKnl8KKOVPYpiKqSIgGygVntFnJf+WmzAZH0Hpr2eVPBBadTmbLGqiBBG1\nu/EZlHF4s4Lm+MPIVc6KbalLY/0CVynhtFCYzhL4p6Ptzvl0u/EvJDGBhccV\ngWPFIr+Z+2tdGm2DgqgzQ4cG8E1t/sYphnuipJzjUdiVcROjp7ykq9mYtV9C\nIpyi\r\n=grFX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQQq+cCrJgI6XTipfU+qfbNPSp7o3lzdjARnyp8kgAwAiArLPkljcFX1FaQxDkalIfdQG1Z99SMeC82JF2cxgWPYg=="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_3.0.0_1612269582574_0.9812419209318672"},"_hasShrinkwrap":false},"3.0.1":{"name":"err-code","version":"3.0.1","description":"Create an error with a code","main":"index.js","types":"dist/index.d.ts","scripts":{"lint":"eslint '{./*.js,test/**/*.js}'","check":"tsc --noEmit","prepare":"tsc --emitDeclarationOnly --declarationDir dist","test":"mocha --bail","prepublishOnly":"browserify -s err-code index.js > index.umd.js"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"keywords":["error","err","code","properties","property"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"@satazor/eslint-config":"^3.0.0","@types/expect.js":"0.3.29","@types/mocha":"8.2.0","browserify":"^17.0.0","eslint":"^7.19.0","expect.js":"^0.3.1","mocha":"^8.2.1","typescript":"^4.1.3"},"gitHead":"830d141eb633c21b842df3f78aba5786fee1b31d","homepage":"https://github.com/IndigoUnited/js-err-code#readme","_id":"err-code@3.0.1","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-GiaH0KJUewYok+eeY05IIgjtAe4Yltygk9Wqp1V5yVWLdhf0hYZchRjNIT9bb0mSwRcIusT3cx7PJUf3zEIfUA==","shasum":"a444c7b992705f2b120ee320b09972eef331c920","tarball":"http://localhost:4260/err-code/err-code-3.0.1.tgz","fileCount":5,"unpackedSize":7757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHWpXCRA9TVsSAnZWagAAfdEP/2JmsJpZgDEqJQtvM5rr\njRLk8VefHig7/k6Z001Jwq837KelxngSxjkJARwFijZs36mthYzHLG2eabrE\nBsOutv5pQNf9HcnvQi6rx6q4N3A2iCs8y7p85kE02jLKfKsr8GA6WFu1rfRY\nOn9lrpzkJMr2pkgp7Xa2dbWqIvPvzGfqd3E0UP37bbld+XiwStbOvBrrzOgO\np/ezTioZ7kP9mgCD/GYgiQz3ymzUmUZ9l0kfnOIeJHKA6DZnC7VJe6sqYJ9A\niDnIHTeZsGW2RanhZl5lzxyEp7ecE0hNsgU++msxb1HFgfcq12zwFgGHFlcw\nC0ofvz+4di4HCBNLAcHA0SvPy8WMPA+kQh5Ozn1/Af2rLHCUd+ucq0Pe8fl2\nEYzqafn/h+2x6858NqMpN/O+VXkrodRr3+cYxerfHJXd0mTjcw968c2YF76A\nGfDn4t4VWVTAPR/PXJt2uwD4QPRd+7qnoVv6XtvDm+UoT8EoDI7x2gefhqSz\noLbezMMmTgHyJ+r7oUDuqZlpyhhWv7iWcerRE1hxzAgi9Ej7RLqanzSO1Rrl\ni2HHnd7jTWP8br+WIX1iKoK6HNdD47L/aSpVC+4uF8rKLEZ6SvxFB10o/UsB\nQIJ9PprAj56jN83GmQg5vVhV8qLa9deuUvPOfDpX8JZryem2cQOSZHsQhfEA\nL0xz\r\n=nWV0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2K3cAgmQvXTnH2SGcG+pb9fp9e0+rxvLvM6oMhD3GNAiEAtx4BhwmEAfhDgYPbKp7nVyCBg/LdKOTYr7JzaOuzWOY="}]},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/err-code_3.0.1_1612540503177_0.25365575138573626"},"_hasShrinkwrap":false}},"readme":"# err-code\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency status][david-dm-image]][david-dm-url] [![Dev Dependency status][david-dm-dev-image]][david-dm-dev-url] [![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]\n\n[npm-url]:https://npmjs.org/package/err-code\n[downloads-image]:http://img.shields.io/npm/dm/err-code.svg\n[npm-image]:http://img.shields.io/npm/v/err-code.svg\n[travis-url]:https://travis-ci.org/IndigoUnited/js-err-code\n[travis-image]:http://img.shields.io/travis/IndigoUnited/js-err-code/master.svg\n[david-dm-url]:https://david-dm.org/IndigoUnited/js-err-code\n[david-dm-image]:https://img.shields.io/david/IndigoUnited/js-err-code.svg\n[david-dm-dev-url]:https://david-dm.org/IndigoUnited/js-err-code?type=dev\n[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/js-err-code.svg\n[greenkeeper-image]:https://badges.greenkeeper.io/IndigoUnited/js-err-code.svg\n[greenkeeper-url]:https://greenkeeper.io/\n\nCreate new error instances with a code and additional properties.\n\n\n## Installation\n\n```console\n$ npm install err-code\n// or\n$ bower install err-code\n```\n\nThe browser file is named index.umd.js which supports CommonJS, AMD and globals (errCode).\n\n\n## Why\n\nI find myself doing this repeatedly:\n\n```js\nvar err = new Error('My message');\nerr.code = 'SOMECODE';\nerr.detail = 'Additional information about the error';\nthrow err;\n```\n\n\n## Usage\n\nSimple usage.\n\n```js\nvar errcode = require('err-code');\n\n// fill error with message + code\nthrow errcode(new Error('My message'), 'ESOMECODE');\n// fill error with message + code + props\nthrow errcode(new Error('My message'), 'ESOMECODE', { detail: 'Additional information about the error' });\n// fill error with message + props\nthrow errcode(new Error('My message'), { detail: 'Additional information about the error' });\n```\n\n## Pre-existing fields\n\nIf the passed `Error` already has a `.code` field, or fields specified in the third argument to `errcode` they will be overwritten, unless the fields are read only or otherwise throw during assignment in which case a new object will be created that shares a prototype chain with the original `Error`. The `.stack` and `.message` properties will be carried over from the original error and `.code` or any passed properties will be set on it.\n\n\n## Tests\n\n`$ npm test`\n\n\n## License\n\nReleased under the [MIT License](http://www.opensource.org/licenses/mit-license.php).\n","maintainers":[{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"time":{"modified":"2022-06-17T08:08:34.401Z","created":"2014-06-28T12:06:00.817Z","0.1.0":"2014-06-28T12:06:00.817Z","0.1.1":"2014-07-17T10:05:01.874Z","0.1.2":"2014-08-12T14:31:50.170Z","1.0.0":"2016-01-02T16:49:59.672Z","1.1.0":"2016-01-14T02:54:21.473Z","1.1.1":"2016-01-14T02:56:31.087Z","1.1.2":"2017-04-03T22:22:46.839Z","2.0.0":"2019-07-17T16:10:23.999Z","2.0.1":"2020-06-10T14:22:42.112Z","2.0.2":"2020-06-13T07:07:08.774Z","2.0.3":"2020-06-18T12:10:15.542Z","3.0.0":"2021-02-02T12:39:42.703Z","3.0.1":"2021-02-05T15:55:03.335Z"},"homepage":"https://github.com/IndigoUnited/js-err-code#readme","keywords":["error","err","code","properties","property"],"repository":{"type":"git","url":"git://github.com/IndigoUnited/js-err-code.git"},"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"bugs":{"url":"https://github.com/IndigoUnited/js-err-code/issues/"},"license":"MIT","readmeFilename":"README.md","users":{"jjvieira":true,"yonigoldberg":true}}