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
27 KiB
JSON
1 line
No EOL
27 KiB
JSON
{"_id":"minipass-pipeline","_rev":"11-a038a911dbd99b10b9bb3a67679eeb09","name":"minipass-pipeline","dist-tags":{"latest":"1.2.4"},"versions":{"1.0.0":{"name":"minipass-pipeline","version":"1.0.0","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.5.1"},"gitHead":"10b99438561e951c77c1de5c8db21c98f7a65fb9","_id":"minipass-pipeline@1.0.0","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-cJmFPmOq3u5jICy4eFoVp7ZFjvk89e0ZlJRUd99nu4fK4FEUzkcYXJMGJ287x8ZDgPlFrrpYqsITL0ViX6T3cA==","shasum":"ece3e2e5d7f5ad491dec574a129142cc36f1e412","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.0.0.tgz","fileCount":8,"unpackedSize":122690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfopyCRA9TVsSAnZWagAAZNYP/3e61evPEZKKZu2kMolq\nCLcLjxUPvOM6kwUcVTTnvjOCu17m9bpVRKw3S6z04K7LZOafwIg6Ubq/KR0F\nybw8SSWkfOjGahMmsEu3TZyTXaWjjUybVLJ3YfIIr3RZzSy4P9IDULuS49sL\nvCBcKBLtXzzBDTmJEREOyYqaZlqddJHIM+kbCs4mX5C7H/rtlFXx8m/JEe3x\nCQfxZod8gZuFGq498jTh+p3vyPHWkCn+mxyvVnOTtKTY0fXtR4j5PFrIlOLA\ndXFw8egLgqsort2kXYefgQrbb/vL2P9zTm68E08H7BGhbA3AzWCvlhC3EDP+\nD0LacUTmCtROY2tWbjaAR3MfxC7FWwnl15vKD1Q1AX3cJ5iSHBx/jDiOby/o\nuD3k8pBlOPL0pHExj7OZzQoXNbaM342IRkxyX3c7QFtQkPLq81qPfoYiQklG\nyO26fIRGjGV7UA/RO1ob8nY07Sw3WwR+We5zFMLQvU/jjk6uMC49hVZ8hWPH\nNWNaa66+gPTPoCoFF88mlttHkARCW6oH7UImSUeZ6yVBSLqFwtpYIWO5aK8H\nZhLL7C83l2wgueyBpLHgcCQE21g1z20bhCaYjox2BRceJWUSAseT9QS7CnMC\nTEoh5Pq+/er6ETmKxdxCnwdsYWrtSLFcYYp70aY/RGD2Op6eqrmRX4f+qfYx\nPfC4\r\n=p4wZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB/oYxtBuAHC1hAXhnn0cUTBzpGqnfYlBxGbmij1eXPwIhAOwVhgF3aIITI+LdkT58KvCU7bxtPGrONPZLiEAhoqGv"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.0.0_1568574065849_0.30209719667411505"},"_hasShrinkwrap":false},"1.0.1":{"name":"minipass-pipeline","version":"1.0.1","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.5.1"},"gitHead":"a09e496ae067b2e6dda70856781d45e3061decbc","_id":"minipass-pipeline@1.0.1","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-/C8MZb7QVVoKgRw5yZ5Qw71zMaXbuecbuAmxDNxsCj8JmPtPldKZ55eUm/4d9tNdOwbQe4JU2bK4Kgi4yblgWg==","shasum":"fc0c6541344240b934fef208bb1b77cd1cc6e38e","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.0.1.tgz","fileCount":4,"unpackedSize":3719,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdforNCRA9TVsSAnZWagAAQusQAKCwsrb9iMlxJb4Co/Bd\ngINmg1nmmMi6Z4W/brD8F8jztJS5ViQd/uOG6UdpAbCr8r18Ok2Nj6emQkBu\n+34jMd4ZhMBFtdUf9e5Tjuh8t4rdd4k0kzzmAuyCHdRndqKfjIvHvWW5yp/Z\nRgljOM5N0pc2i62SoC8Hkjctb1Lon25dhdm/CKUDGTMXMvUELRG9DxtkcGh6\na9xoxYtlVGchlmUmAWiz2mZZxlk32DbelUrgMqCjRGY4nhdPfnbt0GNu3RK8\n6r+MJ/fJM3cW8mqPRWIh6Seh0d3CKwWKEG99Kc82DuzhBCBWyOKEJU+RyxJx\nBaxmf3WCSHJuQHCCDaptON0qoMApGHEt+8GfCunWKraOkobuzvd8IoAlF1Z6\nK9nYnKB4MJeVgNkvQqIFhkQ0rMrlTqhKip2rE/nryVJAhbFbkOmXqFdPgydD\nfrsKrqLY7p7+qXn8gO4/9yVnD19gcM4XEcqarNfMFNhBAVo+soyj2mL3mMXX\nkLrfzYzq10nk4vBN+6o1xm7v8xrPvMjk/qjM/NDvELGWdvIN9BnNk6xpCEb4\nKwdjCkhd6iakk2n8jtcAUzq4HqT1sg3rhymlkdQ9+p46DIxjh5t+taxryiL/\nu/3rRXJ71/mUybsdRXfOg2yBxYzM1DJQKLa39Gcyw2rmnf3CvDQrK8tu2Bjk\nwRqS\r\n=SsZ5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF+z8HJBDq0U9VJ1O554QRCPbO5BLHHe3nm4UlD+HjswAiEA6nJYBhgCsESK1MwagUi52dECCGDoYoTNj5xl867aJpM="}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.0.1_1568574157403_0.714825340197901"},"_hasShrinkwrap":false},"1.0.2":{"name":"minipass-pipeline","version":"1.0.2","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.5.1"},"gitHead":"02bff4b5c71eea685332b3a6862a076f0af81ead","_id":"minipass-pipeline@1.0.2","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-MN5DUGs5vNjBMf3x8nLmJlujY5MQcDEOpUPP3VnBiyo0OEf50sy7MDhnqJSNXpxkOBQgPib5LPwqMu3fTagXyQ==","shasum":"b2a048ca8e1c83c7a589fff717ce7fd93df4d196","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.0.2.tgz","fileCount":4,"unpackedSize":3941,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfsBLCRA9TVsSAnZWagAAjREP/21ENwj5E/fSTex9fuM/\nZSo7F4woqwudqRGb3nUpC/ZHMb2kcdB9lRkNo9UEEuwWb6JvF6qrcpKH2fgp\nyyLT7tkTu2knmYDfYhjpAgCBbNbk0kRAToF+MPmV7004PrM6jzCZhV+cE1XT\nYpmMSqHQkKCnvI9SvXFg81L+lv9WCqJ27kSKyXxH99sy6p4DDM6P8l7lbbHb\n8L+DeoAyG6zOay+3Q4qvKF9lg/SircLQalmdlpbKpeVi87jsAXa8wuKnNt1C\n2sxXVP71H72nf8d1pQyKYCdkapBVe+fLIYD+DHizgBjt5/pug8Oan69lEpLz\npIkHrmRKLe12WGOczTAjZ8Gh8KVhX/8wjfw86T7uqTY/XrTx0nUZDUaF3PO8\nOvpT2BSi1/WBxi+11jCv7/GqrAGPCjeufVurw/J3MrJl8dgD28V9RU1Ns4jS\nPJxnK5x/LWq/dBCIbKrXhWuJULV+e9vlpLJwA24vIqMabQHDQqMR8F8biIhk\nerbA8x3rFZcxoy+fGnkTpPK/L0pda+EnqwHg5BeOYba27ECZvpI30F7dCmWM\nSPC5b3F4yhDm9GSYwoIO0dhuZYYPmWDPMnER3AVpEWlGEfGKJHIJC7p2zK4F\n9FToztnv7cJLNIuT7lgPP2DacccQ9u4b8c1++jfngFwdnyqIUdig18BgnYuS\nEm60\r\n=Qa+K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTXID+9/mZtY/v+NITZB98kMq1o6cR3S5wlkvbxm/uDQIhAOmphWw1XFbuxnkF+BCtQtVWp0isi2Tw0/pp5TP7p14g"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.0.2_1568587851090_0.44701914889353933"},"_hasShrinkwrap":false},"1.1.0":{"name":"minipass-pipeline","version":"1.1.0","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.5.1"},"gitHead":"655ccde17a437b5c81fcb88da2719486bd72a647","_id":"minipass-pipeline@1.1.0","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Ncdxts5EuJ6FJP1Suw/Ja4zSIRKco7dSmWEwCe5EBN622AsdO2tZaAyaaDN2jdRGXl5XalD7Va8PilFU6RcakA==","shasum":"e083f770eeb72c91f1a01cdb4583600fa0e13a5a","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.1.0.tgz","fileCount":4,"unpackedSize":6012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdf8ahCRA9TVsSAnZWagAA4HUP+gOZB1JxnTVczJOCMLce\nOaMLYERu5Qa2GPwu0P2pPd4KWDwu8RbNl7e5iSvRdoJznEL8iyZEDrCPf9i/\nMBP20LJSTkURY+Xk/tESgoYzoktq/vQXDxziFaOqmAGOw/uetc+uQbCjTy0S\nRhhlkZ9gENKeZo1JhVwfW912DTgkRYfC+rOTQRJhpa4+Y5bfQyQbsZiAgwni\n/M8ma8vhG3r/1M7MH97fF23fUWMyAJvXHmPH4kBBvfSKSeGfxXFtM78npPsJ\njJA3ZVi+irCwial6xShznylMbAoH/rs0IUaseIoI75v8WuV0LsN3/8AiTkon\nqf8Z5R7RPOxr1/j9Iwb+hSaS85CpQ3ueuTYQdMtHOOmG6Mu9cKNXE58J4VNs\nIAVB7R2eQlhngMBpyNeeYNCS3sXEjgygg801MJ2GiY5LQShlC+85g0Sk+guI\nAWu3zNJ1V5jZLb9o0vbI20n9KeYb6er1BPgqK2XmwsouAvJjzumOe6byDaH2\n2vBt+ERDAKJ6poIG1LOgi+po2EKtHvewuoxuOJg5oRk69iyh9HfLx1t/3jZk\nvzJ6FVyc9ie9RWKfI7wS9JHNnGc33cLpNFwxIEkhXFCAtlvi2ui7E1swEo8p\nho/T6gcMX5AzcaUiPrE2sjWd/dZWKjCgnuqg+9yBttZEliepYURu9FBFvwmH\n1Vhb\r\n=ghcl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDMMEFwNJgBZDxAt45MpOgEfoeQppk5LPc3+2s03oOS4wIhAMh4mGNryePoeBKpBH1TQ1ZeM8fj1p4+8Kcmrb4aJUeD"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.1.0_1568655008365_0.6314883608636239"},"_hasShrinkwrap":false},"1.1.1":{"name":"minipass-pipeline","version":"1.1.1","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.6.2"},"gitHead":"8f44f9c3bb61a0ece24625af45af41dfce7c4046","_id":"minipass-pipeline@1.1.1","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-fwL4JvyugdqdEoVERhPqQ4b0sOIES13RInPP5g6S4Zjf0AuCh0Wv+FLSGWxtFobJmp22WiJZ+zck51SvGYSdyA==","shasum":"4a6bf94fb413db2f8bdd4148f26be01c70b565b4","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.1.1.tgz","fileCount":4,"unpackedSize":6232,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgAh5CRA9TVsSAnZWagAA8swP/1yBQzt0nJ6Ukv+AkI4H\nd4hTa64hz+/h/fx5cUNw8g5Hse/U50vlTfwzX3At5bqtGs5eofN4MFArsXtI\nwVt+QWZYYUxh8qz2aBnhxU0lZmJGz/haPt4dUqjBTA8XtwF2zIy5JMfo+XXb\n3/tZKY4zILUxsF80WhYaFOSBIfXLo5OJLoX4qGTEXoAT2Py57CbowsBf3fUD\n9n/BUAkmXGvWc+1/mbQycZuuqSFEnbzLskW1/cOPu7JNsJZkTfl5ZQ82nLeC\ngLT/Xa3deI2TM9wNMiEYwdPUrkzhDMzI/Cg8wCNcW1dBsZ7fu/RwkP1k0/jG\nhWsVwF8Iy2mr+MRGlYXgF086t6MbP3OoSufLSaJ2icuZFMOgFD3QxgZA39RX\nhjuD7D8ZzcoXBChhuig5ftYOOIM9ND6EG21NQFvN+M7fxAJNTg+DFhiz7Aen\n3egDFCoAdWfNsSKqHgR+NpTSkZ6jJ/jn+sCwh94EeNx5Jbgu26x3OcoJNNFa\nF6UrCpuTWgDI80pSY1YeJamAqv9d+nDWoF/dmxl7Hw+ikSl8NpCw+PNAGAqh\nc31onLcILtozJyO/Cx2G3/jGnQNr1Gkcutc8TOp+G8JqkqfbU4duhKlA+5+G\n5OJ9C7eDgKJyj87vCD+xM79EPmIB6itUay8nucQYIAiAPKagXKrCpdP2F76x\ntfMB\r\n=atqR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMC4CJstfCo4dtVxtfcleAdhZ10SUqkdfrjOTovyW6fAIgZeiaOUIcqPODK/nu8W2QyEpDhduElR+blyXzFPKe9PM="}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.1.1_1568671865335_0.16809702383379"},"_hasShrinkwrap":false},"1.1.2":{"name":"minipass-pipeline","version":"1.1.2","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.6.4"},"gitHead":"2da24aa62b269fb1222c37264e838b277d2636fd","_id":"minipass-pipeline@1.1.2","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-Qs6f+r6x8AzuteV4lhNLleSZfEtyTTyu18nPeQpKN/Qzlutj+/OtQZ4ngkR2qQXrS634tKWSxR8kaKwCjfTd7Q==","shasum":"a512314bb6d0dfda9ada7a7fa8d0c4350e92c777","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.1.2.tgz","fileCount":4,"unpackedSize":6299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdgR7VCRA9TVsSAnZWagAALVsP/2mi7m7/P0JT1b1rPGPJ\nxMp7WbfYixAxIK5QzFPYuSK4c2ZxnzREhbprj16SpxhSylioCQSLm34hCd4b\n4UDIl6pVMN9LYA5X7z8jvRcEeBgWsJ9bfHwQ7En/dXzGmLHYKaOiBYTbVJVz\n3ISrj8EiLjPdxWeyO5rC6eV+yKYCkjoWjkzeRpLMolanzc0OZdt69R8xMzOA\nqyDfTmMFHi3cZZsk9Q3h8odew5YP5RBB4MDGgDvfZzN9GTy07bKEZDeoeYTi\nX8+eOqzPPFSZRqdrNiHi5+siF0blr1htPjbXRto7EhUV2tD0tJ2PkUIyF88i\nv9VEFEH0gE4ni/yMWh7TrS2gcDG4D5Yf7jRve6aDqBdCOfL1Lou5wVw+Heto\nyF1cq1Qa391w7H+iaepupGCg9XgQtCQyzoGfpGaEBbFD0BtFIS5+XTEAaGsA\nS0awwZAnBufwSwNKfqurW0W8eoSku8bUyVoPJGWeAlR+GPe2L+O6BgG3EFKm\nI1f93dB8aojBn/Yigb1bxKZDsufSEuCrmsBRqgG7N85w2ZrDSefBpxK/oLla\nHVnJZj9q2oMpzkuemJIhvia79/rJ6JokHkzL3VRS+zR+Ty8w71JEG77Og/99\n3cvm/Tghjri0Qn/rtE7Rw+9gyeACSIg0qJQ0kEVISfK8DCeu9YYehwwyZNyk\ntOMT\r\n=jL1Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDIkhTakcvGJXvDsaKxjcZGtInkPbSUPkpv6aqcRIkWQIhAOz0tXO991Zf8pqd7gehI+wCjr026xX/kR/KKHrQWVrR"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.1.2_1568743124474_0.961835933433367"},"_hasShrinkwrap":false},"1.2.0":{"name":"minipass-pipeline","version":"1.2.0","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.8.1"},"gitHead":"2d8946e37a118bdd6d3245e6479d1126d62dee3b","_id":"minipass-pipeline@1.2.0","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-enqZIVhYZGGh5nTAoDz8yfp0V8fPGpvtExanqpGj8O/gNo8RQIRKFEfRpCMVLW8D/7Zq1NuXMVvCcGoyCGycZw==","shasum":"deb473f0e72c8ef72cc712433cc921e52d8e6ee2","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.2.0.tgz","fileCount":4,"unpackedSize":6607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiAxhCRA9TVsSAnZWagAAtO4P/jE6pp1QNQZU/nGj6A8Y\nK/frOL1l9DvQzqoWWBbG1ChDQiwPv+/dFENcuHJj7giBLnRV0lAOOVNExOrN\necN2pcLt4EpxcKNx9s4gCjoV6GIaoc8+vbgjBBxrFpeZeRIxRLXq+QZzoExV\nSelW6DWjQPwpkaJPYtqvykTNZ0Ou+SJdRmPv960ECzn7AWAPK0+H/RFVsdGa\nPODvOAubQjE5qGT3y99L8t9XDoHhIJwyyMrH1uQGh9ufFjmpFhWz7FvtAqJ1\ni+4IrKTs8FZNqQP9nSMqk4LHOQvLHx8wSBt0Wi5yqxSgeP93APloChYQVqO4\nhtw2s4DWlZq3hfgbdE7B+ACt8wyY/GpVCXAfQlk86QuDerTQnauUNOhn+iYi\njtLiIaJIpgLcGPvsPy110owotijbfPG+QfD7+nkKri+a9MC+x4vI/YQuO9qI\n0UPiS2XG4VHaieMXlDfePf8I7Lz255dKl/vu3EgeKJ2DIRPFyKhVHDasU6aW\nf9YWALOzLpK0bSl91osJlwMDdYiLI5RSDgpABnbbb8ef2m5bymxNrQTNlpHL\ncZ3LRgvFGecHa+GftWWHS8y9XfV13Q0fmOcJKjJOKSvaGN9BgAnunuPx300b\nB6MY1EmrIPg5iOsyZZlKcmUl0Dhd4XEJ3eGqQbo1JgVsfEHdNcIr5U88QdWd\n990P\r\n=6Kht\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH33adyn30KYfWq5fq01+smv3hkQ/ihgDnZisG+nUwxzAiA4L1k2jwG+QdSYGXHHc6VbIkCJ351lllw9dJkBlA4sCQ=="}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.2.0_1569197152632_0.2116339232394817"},"_hasShrinkwrap":false},"1.2.1":{"name":"minipass-pipeline","version":"1.2.1","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^2.8.1"},"gitHead":"77e5f5aa5838276304704e94968be8feb2f508e0","_id":"minipass-pipeline@1.2.1","_nodeVersion":"12.8.1","_npmVersion":"6.11.3","dist":{"integrity":"sha512-z6lkn/teAcodsoV5UyJtSLFHnw5YSGUW5BG0VsOLow7cPXFsD4LMeH+x3AVQS9rJ9hsIbCq2LMbVKSMj8cglYA==","shasum":"6e195376fc77fc2eeb7b8476abf7fbad03d76c0a","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.2.1.tgz","fileCount":4,"unpackedSize":6914,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdjTbjCRA9TVsSAnZWagAAgEkP/Rq1lvpUVShMv7lSjgez\nF0MgkHMOVRrkfaYEnVivJt41tF3+zB1Rllo8W/co+HTqh5IoG+RAIJ8kxayg\nDJuCYhNoddiuQoJDc/fdlMgXYiwrjsvvXL4xqwg95FVHLbkpjkPV7U3AMyOW\nryolLk0DWP8wmPrRs0SWjHRta8xLTZlEIjw9wX4TVJXblkoZrYM2TNcrq9K9\n+00uC6UFGCY0UJ29KqqtdTvEuR31mqCRMCZKXci6TZYOUY5Q7DoQ9drtMuyZ\nm5Z+ZxpikrxjOGfYe/5U7wmuJXlBdEQfJS8ABENLkr2FyIsVHYz4NQ3jUlEe\nlup2Q/MXa4DCBGkXv8q0enFEn+dYnZ3OoV1A1qm+59SCI7UMuDq28QkOnaaQ\nFPQ2MVPY9oJAgKl3gVDPiqzhdHhv50EHhRcBcTT1sz560As2nBl8D6p21hGe\n9GIvr37YArub0W1q3DpfClkAGl14l9dUllxwLnd8RxY2diMVyNgsuu0gQ+Vw\nSxS2xOtNgEQefIimaxIvcvlJ3rGhYJe0Rw/OnSt83CZvcylTok48qRcZ4S6d\nL8dkn7q003QeSEqGYiiBNE65zjheYDy/+ylf7yrMMh1HnWteY3s0jjWiCfWK\nmefwxhtdgLeJxg4GJoj+2YiEPZnlS7ej0A/RgSqPaAB+BloXQtJO7Lec2mJa\n/rem\r\n=fCtF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxNlUwvl36nCrL2MfMDffAUk3G1279hUuvo9IbqyqD3wIhAKPrvj29aWDnqFM/dQA+50TFvD9BQqTCMSJQnsbZhg3/"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.2.1_1569535714410_0.1572588842185374"},"_hasShrinkwrap":false},"1.2.2":{"name":"minipass-pipeline","version":"1.2.2","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.4"},"dependencies":{"minipass":"^3.0.0"},"engines":{"node":">=8"},"gitHead":"c1b660ea62856d8bbd909618f5a3c3d51e29e69b","_id":"minipass-pipeline@1.2.2","_nodeVersion":"12.8.1","_npmVersion":"6.12.0-next.0","dist":{"integrity":"sha512-3JS5A2DKhD2g0Gg8x3yamO0pj7YeKGwVlDS90pF++kxptwx/F+B//roxf9SqYil5tQo65bijy+dAuAFZmYOouA==","shasum":"3dcb6bb4a546e32969c7ad710f2c79a86abba93a","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.2.2.tgz","fileCount":4,"unpackedSize":6952,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdkmYQCRA9TVsSAnZWagAAJO4P/AxUe+dSUOGU3W2z4B27\nrPsqbbBXE33FWf0QfzV7gsxxtBmFCGQYqxBU4zsH60h0OjDF49HDkyxBXJTm\nRJ65IR0G7bcqMjWPEWfdXg0IuFfJlR0NzExf4CCu3aoAn8gB0KBlcAq4tSQ5\nNZhy3CGxPHj5AskhaxTXjHuM8m8EwBxfubJUOJMY0F9Xw9RZjDCvdunNVgGq\nNAJDKO0T2vLH8C8+rRNc5tzEna6x9GEtVwDfAo2bh9+e7OPuuENP8oYnQ6pQ\nWKTvFLfwCv97AWHckV3w6NopHPEvntHDh4TKvtNF9/PoVyuw72CAEYzuq/K+\nIlBmifE7ePbsAjDo8xDh7bxIrsK9oDDbRTXjdoDydIpnpSpeJCgWLSLSn4Pi\ntYfvxByQJbod1mQlMjewvGmmFyYAIS9fWT9CY/H3BBmjp4KWYA2kLMfMU3MV\nD9hD/hBVTvmmZmVghQct+4zibu0s2aN3S2kUoGZyNi46zb7bCzdGCzN9/Ddw\n+7o+rICSp/SssjfNyR76XxjJ5h4Qs5kSr9hAOdzeduG74SR0vAFyABZhp8+g\njcB0A2bR+SL7qT5pGfDnbxs/oFDbGUTkjJmK5xKzijQCoJXOUznrpown5tKL\nMSyI597JfS7Rq5M6Da4ZFAP1IN4lCLIcPLmR5B0ODjIzkP3fqFX7dRF6ysOO\nhiTf\r\n=sVdr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG34Wdnc38OYZlvoVF0mdynVmQkGEVtoUFtnDlwT+dbQAiA65yl1ldXk/7mFDS5L2+u84rWS1WBvnOewrE1vXiACUg=="}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.2.2_1569875472039_0.7006548968085411"},"_hasShrinkwrap":false},"1.2.3":{"name":"minipass-pipeline","version":"1.2.3","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.9"},"dependencies":{"minipass":"^3.0.0"},"engines":{"node":">=8"},"gitHead":"29b2399520fa0cbe38f9932f03f9ee8205ccd12e","_id":"minipass-pipeline@1.2.3","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-cFOknTvng5vqnwOpDsZTWhNll6Jf8o2x+/diplafmxpuIymAjzoOolZG0VvQf3V2HgqzJNhnuKHYp2BqDgz8IQ==","shasum":"55f7839307d74859d6e8ada9c3ebe72cec216a34","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.2.3.tgz","fileCount":4,"unpackedSize":6968,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevC3RCRA9TVsSAnZWagAAhhIP/07kp3YonXW59RTmfqzg\nxCkoPZxwHTVccH9PeVDnXe8rG084+KLtu+B1WPe3CqmYLc0qXZ1qPi39Phdy\ndeVlDs/Cm+yvc8STrv5N42js/n1Ws/96JV36lUANKek36OAOdW64WswZNWsk\n9bgedtrRA3oi37IGrElwR6TampxJ2HEUpoDC1IzjJ1xRjWZBLiGbVFDstBu+\nnoJn0UzaB0GdOCCae6VUxZlghOff0gHEQBnA+D4Q4eD3cSZbhaxrtpTdoqol\n3X64aPJ/VfUeXXN0HJWsG4AYiRwcGCahUwRVM9lswY3t3fghFySMHye0cZzX\nPWf5tXHETQk6FfFhqPGWGo0GaREOcBCQskelU0WCuSA/LmcjPK+iSKpKdHYs\n/00EL25MbMyjmcFjy4ATptUn9tRSAW68gBiUzfrV3q/vAgLrZvwyPifZDNY1\nGiPhuYpkkuvpfirb+isFhZFEsR/lQ9bfA1gFwtRfBrllkST0ZjA+5tUDGn5g\nhFrzSAJ6jDlj1nxd7qo6Bvc3ooJml3FoNy4VLScUsnjSGdHE+USx+FaQtd+t\nz4xSNcXq3MOdXsIzFN0fi5zL9TVIH8XWMWoWAW1dlASpsK1DiZgALS8KKutq\npXmIPq9WgFqmwfpwkhmKonq1GLt60FB2T6DNbd52YLXawJsXMevkrFWRFCKb\nf23n\r\n=n9ZY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEJyeC1NE8dj+9z1AXtcgqoqJCgN6AXo8IJl8WyzW5pwIhAJLj8qWNg/yFJnAMzFyzQjVB/vohaawtzucCFahbz5Im"}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.2.3_1589390801051_0.7775142626455396"},"_hasShrinkwrap":false},"1.2.4":{"name":"minipass-pipeline","version":"1.2.4","description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"tap":{"check-coverage":true},"devDependencies":{"tap":"^14.6.9"},"dependencies":{"minipass":"^3.0.0"},"engines":{"node":">=8"},"gitHead":"ead0263f019a9ec1eeb6db5da34c62479bb0a967","_id":"minipass-pipeline@1.2.4","_nodeVersion":"14.2.0","_npmVersion":"7.0.0-beta","dist":{"integrity":"sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==","shasum":"68472f79711c084657c067c5c6ad93cddea8214c","tarball":"http://localhost:4260/minipass-pipeline/minipass-pipeline-1.2.4.tgz","fileCount":4,"unpackedSize":7004,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIHD1CRA9TVsSAnZWagAA0+kP/iYjOcMFfErbQD36koDF\nQPvdz1dvzGvT8F9VqlTy317usF4sjUXjeQRf8oEZCemvQWHUToQj2pJK7T2Y\neHb/g9kHTw68fhYgKtGtsI3jfLc41s8yWQ/LfWlmGB9M+atfKGMFt48a4lCs\nohNOCOOwV2S5SEOGon3n0E0UoN3BGTubhj0s1CKftXvmwS3ZKm+fwAW+2EzW\nqQEuZOR/s/PwOmfVbIu3zOgy+YGIWPGOHX3kLQ7o7jVpSofbzqt1Y6GvZXxZ\n+/gwCNvM4gBrvQvUprqY0DBBxLv7gRnKvkr+XWhLK4UgK+KLeAZoqxbd0maX\nxU3sYYC+L9UzcwgLZTOwM6qhIRzMHolOWpFxUCYnndxH7oJqkNeaIPEqA9MW\nMlbRo9mId0VdkYZHBesYrhxOk8vH+RaONNEckZjzqZFkEQUb3IKQ1hKS+m6E\ntt/sunCfbMyhgFZ7m5YaDBPC/tYWLP62CLe6jy9XQlE9KCSznqlqnVbFgxjE\n4FqvkoHWfyaBwBz5yavmpFeiM2Aoy87C39/XJXbk2JoNW0pP+FvhvnBWFFHe\nUWp21ql+e9dOuZOksaVdRsy6ExxMdFQtdiz0v3Om4ywzXlPQMYWQdYrCTFBA\nJkAJ8KtArBx3oPWwvfk1qFz05SUv9PsE3RVw5QU+X7jvOED+PGAAvx6dZ0Za\nMJeC\r\n=oGZg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf8v9m6p3gFue3Yjxd4e6H2T4lS3KiG/ohLPF9cT3DdAIgUryCYUg+9BioenOtYvXrslzq8FoSszqID75p3aVhCAQ="}]},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"_npmUser":{"name":"isaacs","email":"i@izs.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/minipass-pipeline_1.2.4_1595961588618_0.5447985776943918"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-15T19:01:05.848Z","1.0.0":"2019-09-15T19:01:05.991Z","modified":"2022-05-09T10:23:48.455Z","1.0.1":"2019-09-15T19:02:37.529Z","1.0.2":"2019-09-15T22:50:51.222Z","1.1.0":"2019-09-16T17:30:08.487Z","1.1.1":"2019-09-16T22:11:05.456Z","1.1.2":"2019-09-17T17:58:44.607Z","1.2.0":"2019-09-23T00:05:52.807Z","1.2.1":"2019-09-26T22:08:34.556Z","1.2.2":"2019-09-30T20:31:12.189Z","1.2.3":"2020-05-13T17:26:41.221Z","1.2.4":"2020-07-28T18:39:48.728Z"},"maintainers":[{"name":"isaacs","email":"i@izs.me"}],"description":"create a pipeline of streams using Minipass","author":{"name":"Isaac Z. Schlueter","email":"i@izs.me","url":"https://izs.me"},"license":"ISC","readme":"# minipass-pipeline\n\nCreate a pipeline of streams using Minipass.\n\nCalls `.pipe()` on all the streams in the list. Returns a stream where\nwrites got to the first pipe in the chain, and reads are from the last.\n\nErrors are proxied along the chain and emitted on the Pipeline stream.\n\n## USAGE\n\n```js\nconst Pipeline = require('minipass-pipeline')\n\n// the list of streams to pipeline together,\n// a bit like `input | transform | output` in bash\nconst p = new Pipeline(input, transform, output)\n\np.write('foo') // writes to input\np.on('data', chunk => doSomething()) // reads from output stream\n\n// less contrived example (but still pretty contrived)...\nconst decode = new bunzipDecoder()\nconst unpack = tar.extract({ cwd: 'target-dir' })\nconst tbz = new Pipeline(decode, unpack)\n\nfs.createReadStream('archive.tbz').pipe(tbz)\n\n// specify any minipass options if you like, as the first argument\n// it'll only try to pipeline event emitters with a .pipe() method\nconst p = new Pipeline({ objectMode: true }, input, transform, output)\n\n// If you don't know the things to pipe in right away, that's fine.\n// use p.push(stream) to add to the end, or p.unshift(stream) to the front\nconst databaseDecoderStreamDoohickey = (connectionInfo) => {\n const p = new Pipeline()\n logIntoDatabase(connectionInfo).then(connection => {\n initializeDecoderRing(connectionInfo).then(decoderRing => {\n p.push(connection, decoderRing)\n getUpstreamSource(upstream => {\n p.unshift(upstream)\n })\n })\n })\n // return to caller right away\n // emitted data will be upstream -> connection -> decoderRing pipeline\n return p\n}\n```\n\nPipeline is a [minipass](http://npm.im/minipass) stream, so it's as\nsynchronous as the streams it wraps. It will buffer data until there is a\nreader, but no longer, so make sure to attach your listeners before you\npipe it somewhere else.\n\n## `new Pipeline(opts = {}, ...streams)`\n\nCreate a new Pipeline with the specified Minipass options and any streams\nprovided.\n\n## `pipeline.push(stream, ...)`\n\nAttach one or more streams to the pipeline at the end (read) side of the\npipe chain.\n\n## `pipeline.unshift(stream, ...)`\n\nAttach one or more streams to the pipeline at the start (write) side of the\npipe chain.\n","readmeFilename":"README.md"} |