mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
ce7dc2be92
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
1 line
No EOL
28 KiB
JSON
1 line
No EOL
28 KiB
JSON
{"_id":"aggregate-error","_rev":"15-d589b36efab101afd6d46496364532ac","name":"aggregate-error","description":"Create an error from multiple errors","dist-tags":{"latest":"5.0.0"},"versions":{"0.1.0":{"name":"aggregate-error","version":"0.1.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^1.0.0","indent-string":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"9579faa6988a5c7485f91082fe940a397d953b64","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@0.1.0","_shasum":"977166c896cbeaa1b56e593096244ff184adafb0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"977166c896cbeaa1b56e593096244ff184adafb0","tarball":"http://localhost:4260/aggregate-error/aggregate-error-0.1.0.tgz","integrity":"sha512-+M7UAR9SLeeVCthKvdil04tTvx8yPn2nsr8eTASkDS6b+EGC/jbeJaUoJiLzqyrCjamHs6XUvvQIKL5CHh727g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbUCB49gcga+qXzFtPGYyu+w14aC3isp7tUPEUoemxcQIgGJF8JxkAV70qDmRgARB2Vx9v42OJJ9lCOBusntqeUrY="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/aggregate-error-0.1.0.tgz_1473742812143_0.5017943645361811"},"directories":{}},"1.0.0":{"name":"aggregate-error","version":"1.0.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^1.0.0","indent-string":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"dc4c1bffe452a1e18dd1f0ced2aaf46d37d38048","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@1.0.0","_shasum":"888344dad0220a72e3af50906117f48771925fac","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.6.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"888344dad0220a72e3af50906117f48771925fac","tarball":"http://localhost:4260/aggregate-error/aggregate-error-1.0.0.tgz","integrity":"sha512-7heCOdGepPfjajU0Hi8wJypLsZIB6AeDN/YzW+Mmy8QU7iaEW579WzA9cWbke3cGYwmBazCVL2Zzdhq+iQ6pBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEoxMTf1Mn7benDJTcJbJD5M/vL8HSSGIFh0yDV0l62QIhAKzp9cMc+HLA6/NH+FLoLpl8VD1zL8MDjA+YXItj0Wvz"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/aggregate-error-1.0.0.tgz_1484302194233_0.6430134251713753"},"directories":{}},"2.0.0":{"name":"aggregate-error","version":"2.0.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^3.0.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"6faf66970598a9dbae497fb23420c4ce50be1097","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-xA1VQPApQdDehIIpS3gBFkMGDRb9pDYwZPVUOoX8A0lU3GB0mjiACqsa9ByBurU53erhjamf5I4VNRitCfXhjg==","shasum":"65bd82beba40097eacb2f1077a5b55c593b18abc","tarball":"http://localhost:4260/aggregate-error/aggregate-error-2.0.0.tgz","fileCount":4,"unpackedSize":4747,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcI7N1CRA9TVsSAnZWagAAI+8P/jUlQNVhOtNj9XFC2JR3\nu+dsU/cLjx/lylYsrlUFezrSYV+MFisGY0U1QR+lDFEmnH15weTTczCzyBaA\n5HyK/j8SlGmmGLaWyZHfWIUqO7ffOdyTCD34A67N5NhHOPbFxK1LDDndgN2/\nyWneEimSNTmVev0MebSwr1+BLxuNaj1p2jEtGk++adi7XS/PaaxODdsYTmox\n/cF8H05rNawfmqA78rk0uBaxV/eqfrV/0NH+oL58MfbE5Mngfet8LfwtFj6+\n2Vf1tHdpci6a/rpva8kqJ9ZM2Bh+Zfb7HR3zOSgIajSDeFlW0degYSygn/2o\nWOenqvFKtUVHsoxUrkWxdGS1m6NMBRxTuSTosBzzDeGZoHmjpy1sPrh/PO2G\nbTAKyAwBODmb9r1pm5jw8Nsm+bF5aobKxvjt5nEUglwaoGbO0c6FnuEho50Z\nWQN/D5OCChguhOCwNhZy2ctReOb13qcJQIm+sPn7d2oJ1Oi/KGwQ9qhkyrQc\nuzopAttqZeh1GamRKTz9uDxu3hMnZj39KHiNzqgRGis0XJ09tAqIUsztJCP/\n/yzBzo+jzVSma8a6u1/VH0vwyN4GdqEq3QwqIrkfgeOPTMjQNZK6W00fbbgC\nU1gnIQN7AzLZJ964kGQrQ5K9aatJb780/yoNjzU1yBynIdBwJDlJUtLAj19y\n0SuW\r\n=s4Sy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu2w3wC30ng4Dqihekch1B9PjFiF2sVo+G8HyJQTHoGgIhAIK8xg4evQ9A0tYxns8YJs1LbMTWqpKBn60K1IB2hJzN"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_2.0.0_1545843573001_0.9201395297090222"},"_hasShrinkwrap":false},"2.1.0":{"name":"aggregate-error","version":"2.1.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava"},"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^3.0.0"},"devDependencies":{"ava":"^1.2.1","xo":"^0.24.0"},"gitHead":"00dd2dc1310322217ac01d7d2b6b85df1261c1bf","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@2.1.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-rIZJqC4XACGWwmPpi18IhDjIzXTJ93KQwYHXuyMCa0Ak9mtzLIbykuei+0i5EnGDy6ts8JVnSyRnZc2cVIMvVg==","shasum":"051a9a733ad2e95ab503d84fb81989e6419b8f09","tarball":"http://localhost:4260/aggregate-error/aggregate-error-2.1.0.tgz","fileCount":4,"unpackedSize":4902,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJceBMFCRA9TVsSAnZWagAAehsP/1aXZkq51gpktbSjWB8X\nj5gkPkHBQvBemPrh2t4NcWjQ8/TDPjM1uy+fl35hynYZYzpuV9SuJ6TVHiJs\n1L0g0W4NGkie6J/bssELBUuoKECzkihWDqvk3g2A4vwJl2mKm9wUzANvN77y\nOSce1VQQEg/TN7C0bpbbT2J0hjjavqh3wIzXozifhf2CxWyoi1IHHC2OTsyc\nb9jHrUBy+Im+UQM7TgN5q/TMumT/8ag3B1GRj8hNI+oqMNOYcofzGoE5sS/R\nrvijftp3ICHgCFQ9GJWR8MEluYek4p+EExrH5HmvZ4C7mFTLzFtGMbAvVVIB\nEKg2WjHgI4KgArJsVIhFG/IgU2gydxRkUJstsDFPNBNdRIcJOZvIbawDJPRs\nfCZRdDjRyBjQxjUhFLTIn8y62uN1cF4Cs4CMpTCmuOwspuMDxS7Cf086YgBw\n+CfpC2dWt98931nbaFmMJOi0LBTMnqn4XCome4ko/WnlPkrU0fhBWZu4P8nx\nTKjfSqgJO/0iwSsj2KPpPn697sTt3CNKb1Suw/BKwm4VC2kq+VFVewCgpJea\nBI4LgBtVnLv7GCKbu+fcipFOeprT3g7ONoWNVsJZdss9Jz8Yjv/nPbnF7QkN\nmtA8yP5rtVLDdChmSgAJGX7fFQK7lT14GEVI4AdEXqTNeE5p39vWC9kXEK7W\nwaTq\r\n=LK48\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLCHjlQ+EWPhTA/SEo6z6U/+qo+XF2Lu54SM0Geui/CwIgUJvEeSZIjhA8LSDF0a0mdFr4yYiZ8KZmQB7Gf8Vzl7g="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_2.1.0_1551373060354_0.9604693349380302"},"_hasShrinkwrap":false},"2.2.0":{"name":"aggregate-error","version":"2.2.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=6"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^3.0.0"},"devDependencies":{"ava":"^1.2.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"9a6e8455e58015a6415ac3b8ef7f7396d2dcf6a2","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@2.2.0","_nodeVersion":"10.15.1","_npmVersion":"6.8.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-E5n+IZkhh22/pFdUvHUU/o9z752lc+7tgHt+FXS/g6BjlbE9249dGmuS/SxIWMPhTljZJkFN+7OXE0+O5+WT8w==","shasum":"f54b464db18cc77c907ae084451f39134707134a","tarball":"http://localhost:4260/aggregate-error/aggregate-error-2.2.0.tgz","fileCount":5,"unpackedSize":5669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJce7rhCRA9TVsSAnZWagAAGQwQAKMXzNwlLEQPNLpLRjYq\nNhffvKcZc+0VjB/gbo6t64biM9mZtIGgXPFO1YnsfKaBadSKvp0aT5fv6P7Z\nqLy20huCbYhaeuVCEsCzpDETbx7NyKLMpIQZvLxX3ot/37eIZvRdusAJ1aUT\nAadpZgkQ7SSdAD68WXxruzUNa3WAxsoJ9NqvKan7NIytnqQvjFMcNVS+RqB4\nnQ698HH0C6p/LMW612mpKyPu47opGSsSDovdvFRQee51Vg3fmjR5gS3A+QoD\nH224/31RD+k7hmUtHq0pJ0M0qVswblNqMlDyurAahHLuxKbQ4hrpLOVF1ig/\nAPCpwA64uZ+orxeUSpTOWkvIc9vsaOAc1Pa5kPVm+pX7Bglgo8WtOmnQimiS\noWtDX/aX4kAR7la+NxGbVlkzA7VlmIN/lKFYWu2hzOnX9lCkDvk1m6P88Dw4\nuL2tG66RfG5MNRP/up4p32dzw1sv8QJyBowD8NrSDeGI2NjdYG1KzhyE/CuZ\nrnMFKZeiz6cL+qAZb901Es69+nBSPdwVPsrMUUzN3QGtLf5EMHa5UC1dlSrf\nbXyMt6w5WDtIGFOTdAcrIp1KJSYFmfBdU6YiPDmazBlYkpJdjo9Cf29dfYC7\n0O3ORuCYaaX0BdWo6yCJS4aOOTTv/EGH9DXRT90H7xMBsn7quMFkKeRKEkxA\nnZqd\r\n=O5+r\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAOGaUwqa0HxVOs8E4tgj9enMX9FXmHzwr1J09WhyQfaAiAgTn+HP6Oy/xLzt9alJ81ct0oaAhd9ZJ3WEdrzA1CKWg=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_2.2.0_1551612640917_0.1653191999840251"},"_hasShrinkwrap":false},"3.0.0":{"name":"aggregate-error","version":"3.0.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["aggregate","error","err","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^3.2.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"58527b529942a08301dea2c25f5cabd4be8cb459","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@3.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-yKD9kEoJIR+2IFqhMwayIBgheLYbB3PS2OBhWae1L/ODTd/JF/30cW0bc9TqzRL3k4U41Dieu3BF4I29p8xesA==","shasum":"5b5a3c95e9095f311c9ab16c19fb4f3527cd3f79","tarball":"http://localhost:4260/aggregate-error/aggregate-error-3.0.0.tgz","fileCount":5,"unpackedSize":6753,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoduACRA9TVsSAnZWagAAkKgQAI0N0Pc9Gj06FBZv2X/e\nrU5rRC/I6nsQcYzzT7Z8nuePZBxsBHdm1fcZp1g/NMJ1uVQKJ7SdMoTRMOFU\nQhwch5I3+TZMPWWMoE2kkOvXCb8vE6USRlHfdv26akUbajDS/zEb4hxLVJVu\nAcUFudYKjQOz0nFz1Vqirp914twcRq3nHaY4mfa15290XwpgiGR+bPRkljZA\nZlkKZ4gOIihNZBGP8fLh2ScXAiWea6VaA+BgKo8epq+un7E1WkpDs4HPaJx2\nBmWhBa8jkhOU03ax0mf6/ngs2ilpA9ylgRMomm3RwyQJ1jJYFkHt7in/Fl3x\nYk6/bVHbyTlHkQpgrdijHB1mrCcAjv1+nxUANBZGG786lNECcnvCyd3ncDyB\nHFdTTKh8Hw5GvmsuqhSa2seUtRkT1Db04M3xj6Du1fdxoQeSn5JxRroy3/wW\nurhiR2lHJqPfgkD8wZ4591ifBOSp4tJoXA3nSUTHhknTFk/Ou/PE+cn8jB0+\nq+kersrX/q0pKZimIVjhrOsrvwU79nqZ5cHSu51S/1qw3yi2v9b6FNJ9kCIn\nWzzdtpRe/bEi41sQZZxYL9vGy7RI2FB+uSL0aIT3QXqBanGhX/g5ilXMn4tB\noI0xqc6/ID8zSxYayPIXb65mSV+r0vLO+Vzmi69dhTMm3noLza5Wi4vZIIja\nDh81\r\n=KbGg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRDQ+ORHHaGSQ/ldLacH3ppJmnb6sLGJzMjkOal2jPKAiAaGAW9kAZyNxmbDVver7jjojqRYDdn6+otIwFzDTWx1A=="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_3.0.0_1554111360019_0.2421466430836683"},"_hasShrinkwrap":false},"3.0.1":{"name":"aggregate-error","version":"3.0.1","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.7.1","xo":"^0.25.3"},"gitHead":"58a3c04da70abd6e4795a0bc77dcd173dd86050a","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@3.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==","shasum":"db2fe7246e536f40d9b5442a39e117d7dd6a24e0","tarball":"http://localhost:4260/aggregate-error/aggregate-error-3.0.1.tgz","fileCount":5,"unpackedSize":6677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdltxaCRA9TVsSAnZWagAAF8wP/iMHzq+07Z3OzoLt5f0e\nMtSh9MxRHD6NK6EXh0pd0X0/nXmDtnz3qSq0dWMk6/Xn4uJUQKbvrxH0Q14B\n6MwHSv58u6L9N3SJJrnz4cC7u9cN5pXznvEMUSCydC1kfqb69LeKIA6Oblgj\ngtzEU08xc1EPf9lC9bxdvQyH+qr6BpCXa6pr8uz4DVNX4hlglIaOEzbWV9a9\n5cNFIgcKrsoxM6haJkxQ8QVYQ1raw8X3GwuRpY9K6Dghdg5wPCyxeYQSCc3w\nauXnd1UtGBtCIV9C7YVNijAv2ZVPvsvljcqVQm08dMMHrE/mC3ID+vEod5FQ\nyw064qvBWxaxmh8vvXuUhzL8Kj1KnEvq9iLlWch0EbNc6rJLBhK4JWRPbdvG\n21TqQR+5Q2z+hCOd24MqdpWA44UZLdxbaJzRS31wBDE5cRD/ApFDB4j3UgoL\ndgQRgxZAG72GLeE2d13XbohuxuVjeAmFlLxhAsohaPk7wOLj9bSOmTPdMx6M\n/Dkz+N2vsfTVdn9GMxm6amrR1M3osvGvBA2qkdMR71UHFeWkv+18k5BXsrni\nkDdObayQ4IyIh4kMgpI4WQ7uw1lDIJP+RI+eShLgh/Ru2WU45wgV/7FwplGL\nzqY7hdW59i+wc3fkLvQln9+WeW9Bl5WN5iCgWSj8D0pF0mCB7tj3mgbarlFf\np4uE\r\n=jVpl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYCX+1jfQzfUIFtxuCU+oR9f2CdVi6SwFLtiRLugngggIgXJa8afPN/mqbfUIoZ16xnwRJIv9khY6geTE53uKGe1c="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_3.0.1_1570167897389_0.07256851381959772"},"_hasShrinkwrap":false},"3.1.0":{"name":"aggregate-error","version":"3.1.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^2.0.0","indent-string":"^4.0.0"},"devDependencies":{"ava":"^2.4.0","tsd":"^0.7.1","xo":"^0.25.3"},"gitHead":"d5bb4ac02a43f005ec7ad45f6e62919d7ebed0e5","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@3.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==","shasum":"92670ff50f5359bdb7a3e0d40d0ec30c5737687a","tarball":"http://localhost:4260/aggregate-error/aggregate-error-3.1.0.tgz","fileCount":5,"unpackedSize":6690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfQErcCRA9TVsSAnZWagAAf/YP/ibX9IXEI1C1OlqoT4fY\n4eq/6W0Mt2mIq8D2nAZShWHaYdM3llNZNKFVunhNfBsZ1lYGizwCV95QnjcA\nOV6+wKW/dIk9qJUo7+EfOtorC1lrdJshIqVETuwirk+a+HkBh9zMJFxgXiYs\ndxCWGiqQes7FV3qytLo2jmjh9+2DBmnod/5/8CaSSu8zPBKMRGfaF9/NUH1j\nxyPHitx1yPFmjdTcuESAmC7QEiFrIx1m1H7gzPWDUrHajlmKwhkVHAhayZDj\nMmZRPfbxfavxqc5ba6jEGcEXdJf/npjOkSrrnfFHri4582BQ/si9PE522hnM\nMId1JH21sWcn5LTuJcVhO6KNfUJ08HBbyfbjICKRsgCgEovBV8D2/CWWs87U\nM2CDQ8zXMLoYlr4dYqB4Eo7pbgxTKLpNmhoAZYcbDogYLB9/p38MxXU9S46D\nw6/StKVss6wwno/TIxvka31K9I9IbH4Nof3KH4ek7Bcqc55h+IIfIE6BGRcm\ngOLrVUkKSP2EQOjWf9MtjyX4/HLBtWSpZLu3yr7SzpVq4G68CwzQ3KPtQHTJ\nVwi+vStNeZtEaedJp+Y22CC2zhWZ3tZHptLsJKAB5xlWlDU2W3FrP9XR2L0U\nvM9P1CmOCKAQge+O8inRFtxAE0gHNuA4Fy/0JxCFhgpBDqaZQgkb/6x0ERT7\n7AVh\r\n=Sxhl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGiETVzB7JNhlldMQtr8MMh6EEIAvmfBTpDJoCD/z/CtAiEA/8XMjd3BoEUvnRxgWCg7otZ51MaAXQtlgm47KsBAglQ="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_3.1.0_1598048987681_0.46546411856751524"},"_hasShrinkwrap":false},"4.0.0":{"name":"aggregate-error","version":"4.0.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^4.0.0","indent-string":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"b8ea765c9b6b8b1263beceac7907933ff5e3b8bb","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-8DGp7zUt1E9k0NE2q4jlXHk+V3ORErmwolEdRz9iV+LKJ40WhMHh92cxAvhqV2I+zEn/gotIoqoMs0NjF3xofg==","shasum":"83dbdb53a0d500721281d22e19eee9bc352a89cd","tarball":"http://localhost:4260/aggregate-error/aggregate-error-4.0.0.tgz","fileCount":5,"unpackedSize":6437,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgex1+CRA9TVsSAnZWagAAKl4P/3nS28RQSBwC081+82WN\nC84w7tR+wDpSoDzZLX3pi3vj2aV0OBz9//VZN7/bMFDp7fKTRc97A/uz6YXG\nRcHfD25Gil9sWuvYb2pOS4+nGTOyS0T5JoIpauvoIulE6uSR82SWidGAgYzT\n714ohGEDF91pCvRqcj3Ilu5d7ZzbBNff/+ZD6UpcnSXdbRaBebNP46KDNpR+\nMevcMuvTm9CAom0wBDADfOxakVL9ETV2zAPBBmUgzXuSt+9ncT63SHt1A0oT\nDRWW9AAWjuqr/Y6lZ46Bal9nb2gYasy5VjX7Ce8PtI0AgAuO5NW4X7VP1xj5\nkJX1m+0RSLeNCLYnrsJjo6RB18q1jLAjbZaHKcvJ77Q6c2EiER7BkUzkg1S5\nPucqOUxHDtmz0pnA1k2Xxd2GHelKVJs0pZayAtPCFzApb65iWYaDSEOdryv8\n4HtF2oDn2hzyyLL4g+nNEtkdN9BLqKMsbioK21HiUMCGgUXLFMSjoOopui4w\nNH3ZjtXBchMAvSjFgUylFCS7+/JmXQwHOodSHdZ9WD2rts+mmETFzo1VZTW+\nc9lZqqd9fSQPTIBJzBM9JYvKPKs3PtgrQVMx03s1SuWViX4ZFqHWFJu3CznK\n7GeLrzSKIjN3b1PUk6ynlsNzcoDp+zIe9n9Z4ZLSAYyVGTy9YBq5jRrOTLeG\nqoy4\r\n=Zmh3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICy8lTXoPvl+sijR5ep4Xb7RwCI7B3llCLA7U6LdNjAPAiBZwUVCzJxCyTUMaLelAIs0FOwbq8pPGWfgNtv8og/sFA=="}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_4.0.0_1618681214009_0.4768090732242849"},"_hasShrinkwrap":false},"4.0.1":{"name":"aggregate-error","version":"4.0.1","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"//test":"xo && ava && tsd","test":"ava && tsd"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^4.0.0","indent-string":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"types":"./index.d.ts","gitHead":"9b3a3f61ce85831cf61e8350b158de3ef4f8a1bd","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@4.0.1","_nodeVersion":"14.19.1","_npmVersion":"8.3.2","dist":{"integrity":"sha512-0poP0T7el6Vq3rstR8Mn4V/IQrpBLO6POkUSrN7RhyY+GF/InCFShQzsQ39T25gkHhLgSLByyAz+Kjb+c2L98w==","shasum":"25091fe1573b9e0be892aeda15c7c66a545f758e","tarball":"http://localhost:4260/aggregate-error/aggregate-error-4.0.1.tgz","fileCount":5,"unpackedSize":6463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCiRhSDWcHH4JqQuasQ692mhl99XrwhBCFB2C90Ki5UQIhAJ3PXJ5bK/TVxt7hXZrvHpRIhEXfggwoyLVnIr+x4iW5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJid+B3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbrQ//RC/ybcWmuWfqYR3J7giuicxsGxkc38zYEwzzdW0rnPVN1BKH\r\nDO38ysvIWR2qvO2Z3/0LcQ+RzmaclqjO1tfyXJkUzEbfdglXRVgvyJ9PDjIl\r\nmTM4NrcRV4qGU5+24ryUGpitI0LdQOjvbrQ0PgnsjuVlaT8Hw9pQzfm8lV54\r\nKW/UJfJsPcFurHINRMrQ++jsaNFDEunryGvLBnvvO6XReq9ugSyGBeYtlIsd\r\nogXvSpV2KLXMqCL8qYo9mWoL4IIOQar/sxVquIrH62lPZPVdIjXOVlhcz/rZ\r\n1RMd3pdxUbN420bCtMXpNxrhISlMytEYN44SPSfGHU26gjai4dC4zaV5FpC+\r\nk1UzLh5ZhuWSu7+bCZ6tJ47blEx7ZYbmktTvzuJNoPxwL2dm+2IiyDRJh1T/\r\nspANX45PRb1aL3yKVLUp5ctmD85Fe7f+XMxoXMIfodPh9R9QJ39BLOB6jDo0\r\nTilSXrRutYyqVFfz9htgq1hTW3wxSZRQL3eDy4CWZjVJlsQOl+fQTY08jpHY\r\nH7789D+Zela870E3MhwphyhiRW4h4DArvEVC3OirP4xOBh9X7JGLSwmY3wfV\r\n/GxB3Ixg+f1zbw6MOm6mZ+Wb4MuXkWd6d7qhBeIgGGz2v7SkH+9Jy3Fkfho0\r\nzmYOWGblXw/ECoMrUjHmpEwMyV/eEHe7Rro=\r\n=dqFa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_4.0.1_1652023415165_0.6379571805726236"},"_hasShrinkwrap":false},"5.0.0":{"name":"aggregate-error","version":"5.0.0","description":"Create an error from multiple errors","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"dependencies":{"clean-stack":"^5.2.0","indent-string":"^5.0.0"},"devDependencies":{"ava":"^5.3.1","tsd":"^0.29.0","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"8b09cac27a528035d450134192cdc3a51d878fdd","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"aggregate-error@5.0.0","_nodeVersion":"18.16.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-gOsf2YwSlleG6IjRYG2A7k0HmBMEo6qVNk9Bp/EaLgAJT5ngH6PXbqa4ItvnEwCm/velL5jAnQgsHsWnjhGmvw==","shasum":"ffe15045d7521c51c9d618e3d7f37c13f29b3fd3","tarball":"http://localhost:4260/aggregate-error/aggregate-error-5.0.0.tgz","fileCount":5,"unpackedSize":6471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAt3KGOV54FSfOUM2afJ6STOcGNWHHUoSN/iyFHNZYYgIgHho0xEFWARN5GU8f0R5mUWdbjXqolbOY3PnTn2IcNio="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_5.0.0_1694674406975_0.13624717446079826"},"_hasShrinkwrap":false}},"readme":"# aggregate-error\n\n> Create an error from multiple errors\n\n*Note: With [Node.js 15](https://medium.com/@nodejs/node-js-v15-0-0-is-here-deb00750f278), there's now a built-in [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) type.*\n\n## Install\n\n```sh\nnpm install aggregate-error\n```\n\n## Usage\n\n```js\nimport AggregateError from 'aggregate-error';\n\nconst error = new AggregateError([new Error('foo'), 'bar', {message: 'baz'}]);\n\nthrow error;\n/*\nAggregateError:\n Error: foo\n at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:33)\n Error: bar\n at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n Error: baz\n at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n at AggregateError (/Users/sindresorhus/dev/aggregate-error/index.js:19:3)\n at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n at Module._compile (module.js:556:32)\n at Object.Module._extensions..js (module.js:565:10)\n at Module.load (module.js:473:32)\n at tryModuleLoad (module.js:432:12)\n at Function.Module._load (module.js:424:3)\n at Module.runMain (module.js:590:10)\n at run (bootstrap_node.js:394:7)\n at startup (bootstrap_node.js:149:9)\n*/\n\nfor (const individualError of error.errors) {\n\tconsole.log(individualError);\n}\n//=> [Error: foo]\n//=> [Error: bar]\n//=> [Error: baz]\n```\n\n## API\n\n### AggregateError(errors)\n\nReturns an `Error`.\n\n#### errors\n\nType: `Array<Error|object|string>`\n\nIf a string, a new `Error` is created with the string as the error message.\\\nIf a non-Error object, a new `Error` is created with all properties from the object copied over.\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-09-14T06:53:27.333Z","created":"2016-09-13T05:00:15.085Z","0.1.0":"2016-09-13T05:00:15.085Z","1.0.0":"2017-01-13T10:09:54.467Z","2.0.0":"2018-12-26T16:59:33.172Z","2.1.0":"2019-02-28T16:57:40.566Z","2.2.0":"2019-03-03T11:30:41.065Z","3.0.0":"2019-04-01T09:36:00.231Z","3.0.1":"2019-10-04T05:44:57.514Z","3.1.0":"2020-08-21T22:29:47.896Z","4.0.0":"2021-04-17T17:40:14.142Z","4.0.1":"2022-05-08T15:23:35.349Z","5.0.0":"2023-09-14T06:53:27.142Z"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"flumpus-dev":true}} |