1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tests/registry/npm/promise-retry/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
34 KiB
JSON

{"_id":"promise-retry","_rev":"58-3326a2535547066deeee7befe9759220","name":"promise-retry","description":"Retries a function that returns a promise, leveraging the power of the retry module.","dist-tags":{"latest":"2.0.1"},"versions":{"0.1.1":{"name":"promise-retry","version":"0.1.1","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-deep-compact/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-deep-compact.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"a87d805ba09243d6757b92232b380b973de334a9","homepage":"https://github.com/IndigoUnited/node-deep-compact","_id":"promise-retry@0.1.1","_shasum":"e4e8f3573e89a20de40012be5bd9c8619308d13f","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"e4e8f3573e89a20de40012be5bd9c8619308d13f","tarball":"http://localhost:4260/promise-retry/promise-retry-0.1.1.tgz","integrity":"sha512-c9UwscVhUihFQ8vnIlOd+ijtWLmlbXRwCO0c10d9wQQ0d1UCzvm4BWfaewE5f6p4nIwWxPtUd6zZjJuzVbgxug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICUPo0a8F1xhMCs02/XebGrWrDiSDtWkprEQBcelTRHeAiAWf253t30ivMbHQk44YwR1pFEftRoO1Cxqp4MYaMiWlQ=="}]},"directories":{}},"0.2.0":{"name":"promise-retry","version":"0.2.0","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-deep-compact/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-deep-compact.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"8bdf7b3c1e127f4329350b9fe8554d488947d013","homepage":"https://github.com/IndigoUnited/node-deep-compact","_id":"promise-retry@0.2.0","_shasum":"b77f49bba369d9aa4f64e61ea7f7bb82effd785a","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"b77f49bba369d9aa4f64e61ea7f7bb82effd785a","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.0.tgz","integrity":"sha512-XUVnjTXW2UCcQ7hcdpgpUYgl6VCs6KCrZK13eApbHztprJFLx8cV/WlgarxXp1OwQOC4s5KkXvGaPkqY87wBAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaTonl3ZZeo8XgvPOc66+8dN2f2lvVmPvxHcwTUhkRewIgU9mf1mLouXsKsaE7/ttDykN+jewxXzlVHkGlWQ6qFms="}]},"directories":{}},"0.2.2":{"name":"promise-retry","version":"0.2.2","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-deep-compact/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-deep-compact.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"4befad916d5ecf5cdd740a25015bc6fb7ca6d2b1","homepage":"https://github.com/IndigoUnited/node-deep-compact","_id":"promise-retry@0.2.2","_shasum":"810eabe2411fec1627da624fc85484f25627c4cd","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"810eabe2411fec1627da624fc85484f25627c4cd","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.2.tgz","integrity":"sha512-OzSiGtPZrTXtHa/QmouEkOUKxAOxUl4HQMxm7UPzjFByJxjlJyY+4odsE8ybdG4izsKTcOh0oZuBiMxYBijAjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLvAw0aKAvKjD1X/t4z+lOJ9WVFd7YD9bdYmtXT+aKxQIgBMoMFQi3uViAHcwPbdOXHCcbjMvtFjwh08KKVbzelV8="}]},"directories":{}},"0.2.3":{"name":"promise-retry","version":"0.2.3","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-deep-compact/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-deep-compact.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"8b9a7112eac4908d336b383aa18f0e982685e828","homepage":"https://github.com/IndigoUnited/node-deep-compact","_id":"promise-retry@0.2.3","_shasum":"a0f94c563a784b086866fde73de43304c854d501","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"a0f94c563a784b086866fde73de43304c854d501","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.3.tgz","integrity":"sha512-aVBXcw7kD99Y1ozYS9ZXzwOPKsBxs/amfeQCNoCfTTLtZDe7f5/6+Bn04EWJJkD4kFTG5q1vlMpf5rPkn7smiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJJ01Ktk3N1Dr2atM3BC8BQgyNGRWhcUDGk1kaHUwtqgIgJNMFcpmVI0poEx6sDTzuRF+XdjS3i5GuFXcEN5dJ11I="}]},"directories":{}},"0.2.4":{"name":"promise-retry","version":"0.2.4","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"fe9f7f56e52bf495f84c92219ee8fd963e844b4e","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.4","_shasum":"fdf04ddfbaaf452c7430898cf045a58b7b0f1ede","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"fdf04ddfbaaf452c7430898cf045a58b7b0f1ede","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.4.tgz","integrity":"sha512-Sf5Dg/PUitUSBQdAvVhlTLsRixT4+tLhjMmsPFgFXiM5YFeNXSEkTgGmcNerH7JaBZ2wnXrc2GsLjJMVjMv98Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArO+nsIC6M80gmcM1xcJ2uA2NTe1Fq08DMTBEIAcgxbAiEAyGh9czvpJmz1PqukTRK+4oy32p+NlA2PquBA5GC+Bww="}]},"directories":{}},"0.2.5":{"name":"promise-retry","version":"0.2.5","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"dcc32b9372f38d079f2b8fe9939606f91ac5294f","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.5","_shasum":"6f586973fb798e16890a31b80c2e5a127eda5d7c","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"6f586973fb798e16890a31b80c2e5a127eda5d7c","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.5.tgz","integrity":"sha512-UxtC2haQXPnmxAZVTrq5H3APDsxrDl6GMViT6CJM91DF0eVRNjZnczE5CI0X+hJsnrPbUOkU96ACqnLM0DObBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDBeD7ehtv5CsS5XDn601LNuow2n2VinXdvUreHb7SYxAiEAok1ZoMDtnL4YO147S8sayRW2Cb0r7J3+JDcMkzRd9pc="}]},"directories":{}},"0.2.6":{"name":"promise-retry","version":"0.2.6","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"ce1206fb2c3bf0c7145abe5a547f3af59bdde814","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.6","_shasum":"cd707fca2834bc7e8fede1057797ca0f2f343638","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"cd707fca2834bc7e8fede1057797ca0f2f343638","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.6.tgz","integrity":"sha512-HEAcNQhFOX4ZJd6Zxi/c9rc24zneLiBfF68+4r/bC5vRKl3TT3xnP/pNOwsAF5b0cowNoxNlvS35hAUebIRjew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbscFPPr7C7uQHyykOMTQt6cpZDI93uuPykRRsEWnhXAiASP1u1a2Dgw3ext057tO/1xi4zuzo/9fvaxqKHrlfZGw=="}]},"directories":{}},"0.2.7":{"name":"promise-retry","version":"0.2.7","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"05f3586a8888b0ef1cceca65e96a9f8c1cd19cf3","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.7","_shasum":"8ead37cedf544a831765ce2e19cfcbd9853d07e1","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"}],"dist":{"shasum":"8ead37cedf544a831765ce2e19cfcbd9853d07e1","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.7.tgz","integrity":"sha512-cfWT4X+UJ9AEaKWKfekoUYqP9PpIGEW4hfcyvONe4n1iZyvP/+JW3Lje9QJxFQrtCq8nbUnZkmjdxzRccR9qHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/yER9TzJhNWZyWI0hcIRZKj+B9cDxTXBppwadEv2lRAiA1BtqrfUpY84j/WDlI7ra/OVGSeQ0ONRLpoUSIU81Wsg=="}]},"directories":{}},"0.2.8":{"name":"promise-retry","version":"0.2.8","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"2e6b7301d209b214cadf3a95794ea17c68f08c5c","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.8","_shasum":"ac45b42632366bbc00aac50d2af85ce56595f7ca","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.35","_npmUser":{"name":"carsy","email":"jlageb@gmail.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"ac45b42632366bbc00aac50d2af85ce56595f7ca","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.8.tgz","integrity":"sha512-h/e+KWTCmcIBCrfxTkPL0dO55JmcxqcpCylw1KMfEUcbxe9eJbwlKts54WR2xtFr43qA72fZcZH6UfBrY3NwfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+BtHaIHA8QJPQG97ax+NwsiNaXLIYE180Kzk2Q0KU3AIgAO4JBDo3tgZ+kDTHYXI5GHgP6nsA/r52hgUpvhvEai8="}]},"directories":{}},"0.2.9":{"name":"promise-retry","version":"0.2.9","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","bluebird","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.1.0"},"dependencies":{"bluebird":"^2.6.2","err-code":"^0.1.2","retry":"^0.6.1"},"gitHead":"8e31237fabccef75e09535d239f5a12328faf021","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@0.2.9","_shasum":"cef911cfe282316757d62c598bccf44ee8677c27","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.36","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"cef911cfe282316757d62c598bccf44ee8677c27","tarball":"http://localhost:4260/promise-retry/promise-retry-0.2.9.tgz","integrity":"sha512-nZ5plfxeaCHg6Td73SHqMq5FjZSSifCSfjCSsRTb14040Fol/yG/PIwOxDPxjhBVidzzxsO7VtlZlEcJI20LMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD38Hp+zn9AseSLryN1Ty9KSK/JhY2OYFTQ3sLV6O6lOQIhAJSr0KyRON8iy3kvCSUec7jsMHxJWRzlyBER84MVq2Gn"}]},"directories":{}},"1.0.0":{"name":"promise-retry","version":"1.0.0","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.3.4","sleep-promise":"^1.0.0"},"dependencies":{"err-code":"^1.0.0","promise-try":"^1.0.1","retry":"^0.8.0"},"gitHead":"6188b5fc5d5d2a40d683e332c47ef95a41049c45","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@1.0.0","_shasum":"8783f59f662de7db8020788af5028d7be9faffe8","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"8783f59f662de7db8020788af5028d7be9faffe8","tarball":"http://localhost:4260/promise-retry/promise-retry-1.0.0.tgz","integrity":"sha512-cH4fk7arHzEZMFoH8AsH/I9cpNhg92XAvmRNaalenn665gDeWm/1xo21wpYb8AKSxPO/Iw9hdp13+cCm0yfqQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDpSkr4vduHCJiNqllj432FQIabLWQ+UkiY5qC/7MS4bAiEA21R9afJp6qDpk3DQc7VuyX0a1dAth2p/N2uj4Vh4R8k="}]},"directories":{}},"1.0.1":{"name":"promise-retry","version":"1.0.1","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -R spec -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.3.4","sleep-promise":"^1.0.0"},"dependencies":{"err-code":"^1.0.0","promise-try":"^1.0.1","retry":"^0.8.0"},"engines":{"node":">=0.12"},"gitHead":"42fd2930ef98c1c463ed291cd86e2625f4f8b987","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@1.0.1","_shasum":"5d8c8920f1c255f73d668532c78759c09de20e25","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.9","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"5d8c8920f1c255f73d668532c78759c09de20e25","tarball":"http://localhost:4260/promise-retry/promise-retry-1.0.1.tgz","integrity":"sha512-xs3YJKzQNPx6p8p9ZIZ7XBTpOtejNvZORw8USFh+H8hsw0HHWKVq+cZQG5dw8A0sW/xR8JDuOVsjjqFJ0kjacg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD30b6bctKcc8ZoSAK9DF6+QxHw/+pSHWsGD44j/2d9gwIhALS2CmHWTh6/EgYPgA3XaiYQWL/hgvdkwW0APUYJh55T"}]},"directories":{}},"1.0.2":{"name":"promise-retry","version":"1.0.2","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.3.4","sleep-promise":"^1.0.0"},"dependencies":{"err-code":"^1.0.0","promise-try":"^1.0.1","retry":"^0.9.0"},"engines":{"node":">=0.12"},"gitHead":"1fd5cb202f81d09f385dad3b4e3a7d4b971494e7","homepage":"https://github.com/IndigoUnited/node-promise-retry","_id":"promise-retry@1.0.2","_shasum":"9b0d9c0201965cc46c560eddbba34d557ea0d867","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"9b0d9c0201965cc46c560eddbba34d557ea0d867","tarball":"http://localhost:4260/promise-retry/promise-retry-1.0.2.tgz","integrity":"sha512-xgtFxgjPS7wsu2vIueTLzw79HqfOln1JRyyOE1w02yTQXfroepDy7aLcce8DHzQvcS6UTGtKSi5GPY4s84Hjtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCctwzc+e4TrZDUBsUCdkdOty+A8gnDspgqDLjo8DGqxwIhANUH+7UtC330613RAxdXTgwtHTcQmbWXYvNjlqqLiPaE"}]},"directories":{}},"1.1.0":{"name":"promise-retry","version":"1.1.0","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^2.3.4","sleep-promise":"^1.0.0"},"dependencies":{"err-code":"^1.0.0","retry":"^0.9.0"},"engines":{"node":">=0.12"},"gitHead":"b353e8b1f6f2d976dca182c8d0f9aeb0f89ca7a0","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@1.1.0","_shasum":"26e0138304a2594fd18c8131d046588d9bd7c651","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.0","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"dist":{"shasum":"26e0138304a2594fd18c8131d046588d9bd7c651","tarball":"http://localhost:4260/promise-retry/promise-retry-1.1.0.tgz","integrity":"sha512-i+2WXuM+ZEZ/AlMNkw5qc2Old8Z4XRjyG8EMwjOXTgL4XHj3uA3HsPRf+AgS5uP8QcHANsXTsIXWBf5DQ8mKFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCesCvScEbQE7WUjHg0VMdd+ibodKqJf4RYyPmDBYV7cgIgTHFPlZzRTtMOJGfuNmUL4wGwi4DZ+mNcwMHiLn5AYNo="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/promise-retry-1.1.0.tgz_1458072793732_0.8005161962937564"},"directories":{}},"1.1.1":{"name":"promise-retry","version":"1.1.1","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^3.0.0","sleep-promise":"^2.0.0"},"dependencies":{"err-code":"^1.0.0","retry":"^0.10.0"},"engines":{"node":">=0.12"},"gitHead":"4f07750e903f819bcc38622fa53deb7162f5e978","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@1.1.1","_shasum":"6739e968e3051da20ce6497fb2b50f6911df3d6d","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"satazor","email":"andremiguelcruz@msn.com"},"dist":{"shasum":"6739e968e3051da20ce6497fb2b50f6911df3d6d","tarball":"http://localhost:4260/promise-retry/promise-retry-1.1.1.tgz","integrity":"sha512-StEy2osPr28o17bIW776GtwO6+Q+M9zPiZkYfosciUUMYqjhU/ffwRAH0zN2+uvGyUsn8/YICIHRzLbPacpZGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFWxa4rSd1z2OlX3VXFdlVx+xPu1jvCdsWTQQLsSNZVAIgSJB1Z9pq07fGQ/9Md/vbV/bb4hnqN9yfRfn4rwMYCVw="}]},"maintainers":[{"name":"satazor","email":"andremiguelcruz@msn.com"},{"name":"carsy","email":"jlageb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/promise-retry-1.1.1.tgz_1471689604229_0.3687993742059916"},"directories":{}},"2.0.0":{"name":"promise-retry","version":"2.0.0","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^8.0.1","sleep-promise":"^8.0.1"},"dependencies":{"err-code":"^2.0.2","retry":"^0.12.0"},"engines":{"node":">=0.12"},"gitHead":"a3dae32edaf0259c9608b266e4ee2f2f180e94f1","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@2.0.0","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-9xvYQR8F5bGAheAj2pvgc9y6lwV9dWM8mgxTExz5qy2vTLKsFV8MomsXCvXfECkHcLVcaR60CVDI84qzj8tCUg==","shasum":"254fe52144efb2956c66c6bd19a4473b7165601d","tarball":"http://localhost:4260/promise-retry/promise-retry-2.0.0.tgz","fileCount":8,"unpackedSize":15558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5KZ2CRA9TVsSAnZWagAACfoQAIah0DSqMH5jx6VayZFB\n3M8L9AU/xBWl8Ab4OjRG6TDgLLOFuxbyIr+N5F1i8Djq9epLStQLsIHfGSFd\nmhOBriYeRfohLNxLhsc0CH6LFFNX5stadu+bhysT7hBokIVpqb5j5g8QPJtv\nUHFY5whHSb45zh95Q07orfQOsBMx9Z3qfmPTHf40Rf9v6n4/FYLOep48EgYG\nIhZ1AqvR9A6I0YOWPrY5sr1hI5SFbqMYALYVKecnOWqwBNmTC2ltJ1Se4StX\nBpTyE4jIkBIG/D0Brq9B5v0/YNiPI0RxL1qrTertvYj7fmmjMWywr05CZ9If\n8mDq4lrImJXJH26ivlVYzsJppASLNOQrFgErdcyVr2oAeE1MfDQAgJKRpCad\nsua4y/x2eGj09n3UZCO13kvsb+oNoAgV1kn284k9E/JCrnWFdCtn4bEzWEky\nmGg1Kn4olPtTPQQeUVDx0SHJMq3PcuR+gSjdFrccx2kptmV4dd1BFGnvFEJT\nmUNkpU6buHNN3AfRstivWjG5+XfMDXnVS3G+4uRWgw+jrazVHe6g+f0dr8z7\nrAQ42EBRv9NMLYRz/dRlRoHdt45AEbRPLD7/I96iXK2T7cbbLKudvSkLzqE9\nGm1ocF7/fgj/5rzKP4TLSrVBkMfEVuCAW7bnSrXYYVFYvDkUWP0j7PBEzJur\nG/ad\r\n=3yQm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKLDFC7LDqKEj5EqeGh7C0t1SPzoBUOdfsCSkHw5E+QAIgb8/QEFn1hhQxQHhTiTvFZQQxd3C355Rl6Cx/GSyjR8A="}]},"maintainers":[{"name":"carsy","email":"jlageb@gmail.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry_2.0.0_1592043126205_0.5743071486372056"},"_hasShrinkwrap":false},"2.0.1":{"name":"promise-retry","version":"2.0.1","description":"Retries a function that returns a promise, leveraging the power of the retry module.","main":"index.js","scripts":{"test":"mocha --bail -t 10000"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"keywords":["retry","promise","backoff","repeat","replay"],"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"license":"MIT","devDependencies":{"expect.js":"^0.3.1","mocha":"^8.0.1","sleep-promise":"^8.0.1"},"dependencies":{"err-code":"^2.0.2","retry":"^0.12.0"},"engines":{"node":">=10"},"gitHead":"7fb08491112cffe5a0dd11805eff20ca6b6133ac","homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","_id":"promise-retry@2.0.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.1","dist":{"integrity":"sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==","shasum":"ff747a13620ab57ba688f5fc67855410c370da22","tarball":"http://localhost:4260/promise-retry/promise-retry-2.0.1.tgz","fileCount":8,"unpackedSize":15556,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5iFvCRA9TVsSAnZWagAAs+sP/3gQa2kWX2l2wsTAhqem\ngWWXM7Ds/O+GFqE5it5MOiMsoz6eDqKJPgpKJmC0snJbvewZ5qRzvKcRkax1\nzqVPPJStGYVnnM55DYcfciG2QBxE2dgX2h3iE/oxXP54TxbtVGRWoL2vWIQ1\nb+CyY8EKu7hVwXmBPqA0k2LUEVI8x8dluWFr3cNc/uPP0y7aCft5ylXN5HCb\nSs46NvxKnKHX98s8UdXH5Qcqc9t3H03je1dn5o6faq00Yh4JbxzrxL4a3q2N\n4oq8yE97naYSfvHrfjUdfLu/FDCXgC6cksdVJMm/lEtz4bRz1TGhKftmM7BN\nUVX3JqL8UCU+FUUv0XQLXl73ydQR3soutYM2TtIFlmanoXi4SsGOLHZ+jXtX\nPgDVdRc+uCQiX1ro0SLHZO8ZOxnjkAFg2VIzSbD3uClk9YwyNkE7FIF0ZsCq\nF4NLWn8B08fKDDpBFtEmiNAdf/+EtCti3Sy2dPsAjbfMPUIJkt0un3cDpdDU\nKtfrCCNInT1irEyx3xvdTmDVY184KHKxJ28F4yi9I7IdqjdrL696dMUYaqJt\nUpi6nTW3rlhZ9JWPOeRPwZinGLeADN0RlTjfixazctDpFzqRo9dClXiud63u\nmsAF+XjtzzJTJP0QBY2D+wKtcJBUj3GnrIZFGWVxbLoGQTMq7PbArx4A3RIC\n6yBc\r\n=YUSa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuoveu5MeEupK25Y5ewNOYZMy+5SF1GM5edr4BD1TBLwIgWATsYaSUW6HxeuaRuu8bSRjKtAe4SPpu1s90VYNrN4w="}]},"maintainers":[{"name":"carsy","email":"jlageb@gmail.com"},{"name":"satazor","email":"andremiguelcruz@msn.com"}],"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise-retry_2.0.1_1592140142698_0.932374012007849"},"_hasShrinkwrap":false}},"readme":"# node-promise-retry\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/promise-retry\n[downloads-image]:http://img.shields.io/npm/dm/promise-retry.svg\n[npm-image]:http://img.shields.io/npm/v/promise-retry.svg\n[travis-url]:https://travis-ci.org/IndigoUnited/node-promise-retry\n[travis-image]:http://img.shields.io/travis/IndigoUnited/node-promise-retry/master.svg\n[david-dm-url]:https://david-dm.org/IndigoUnited/node-promise-retry\n[david-dm-image]:https://img.shields.io/david/IndigoUnited/node-promise-retry.svg\n[david-dm-dev-url]:https://david-dm.org/IndigoUnited/node-promise-retry?type=dev\n[david-dm-dev-image]:https://img.shields.io/david/dev/IndigoUnited/node-promise-retry.svg\n[greenkeeper-image]:https://badges.greenkeeper.io/IndigoUnited/node-promise-retry.svg\n[greenkeeper-url]:https://greenkeeper.io/\n\nRetries a function that returns a promise, leveraging the power of the [retry](https://github.com/tim-kos/node-retry) module to the promises world.\n\nThere's already some modules that are able to retry functions that return promises but\nthey were rather difficult to use or do not offer an easy way to do conditional retries.\n\n\n## Installation\n\n`$ npm install promise-retry`\n\n\n## Usage\n\n### promiseRetry(fn, [options])\n\nCalls `fn` until the returned promise ends up fulfilled or rejected with an error different than\na `retry` error. \nThe `options` argument is an object which maps to the [retry](https://github.com/tim-kos/node-retry) module options:\n\n- `retries`: The maximum amount of times to retry the operation. Default is `10`.\n- `factor`: The exponential factor to use. Default is `2`.\n- `minTimeout`: The number of milliseconds before starting the first retry. Default is `1000`.\n- `maxTimeout`: The maximum number of milliseconds between two retries. Default is `Infinity`.\n- `randomize`: Randomizes the timeouts by multiplying with a factor between `1` to `2`. Default is `false`.\n\n\nThe `fn` function will receive a `retry` function as its first argument that should be called with an error whenever you want to retry `fn`. The `retry` function will always throw an error. \nIf there are retries left, it will throw a special `retry` error that will be handled internally to call `fn` again.\nIf there are no retries left, it will throw the actual error passed to it.\n\nIf you prefer, you can pass the options first using the alternative function signature `promiseRetry([options], fn)`.\n\n## Example\n```js\nvar promiseRetry = require('promise-retry');\n\n// Simple example\npromiseRetry(function (retry, number) {\n console.log('attempt number', number);\n\n return doSomething()\n .catch(retry);\n})\n.then(function (value) {\n // ..\n}, function (err) {\n // ..\n});\n\n// Conditional example\npromiseRetry(function (retry, number) {\n console.log('attempt number', number);\n\n return doSomething()\n .catch(function (err) {\n if (err.code === 'ETIMEDOUT') {\n retry(err);\n }\n\n throw err;\n });\n})\n.then(function (value) {\n // ..\n}, function (err) {\n // ..\n});\n```\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":[{"email":"alex@achingbrain.net","name":"achingbrain"},{"email":"andremiguelcruz@msn.com","name":"satazor"},{"email":"jlageb@gmail.com","name":"carsy"}],"time":{"modified":"2022-06-24T19:02:56.005Z","created":"2015-01-10T16:37:17.444Z","0.1.1":"2015-01-10T16:37:17.444Z","0.2.0":"2015-01-10T17:30:12.798Z","0.2.2":"2015-01-10T17:56:30.549Z","0.2.3":"2015-01-11T01:17:33.175Z","0.2.4":"2015-01-11T01:20:27.229Z","0.2.5":"2015-01-11T01:23:06.218Z","0.2.6":"2015-01-11T18:01:01.035Z","0.2.7":"2015-01-11T18:08:18.178Z","0.2.8":"2015-02-26T18:55:44.187Z","0.2.9":"2015-03-04T19:52:50.186Z","1.0.0":"2016-01-03T10:50:44.762Z","1.0.1":"2016-01-03T10:58:34.655Z","1.0.2":"2016-01-26T14:18:50.250Z","1.1.0":"2016-03-15T20:13:16.083Z","1.1.1":"2016-08-20T10:40:05.614Z","2.0.0":"2020-06-13T10:12:06.336Z","2.0.1":"2020-06-14T13:09:02.848Z"},"homepage":"https://github.com/IndigoUnited/node-promise-retry#readme","keywords":["retry","promise","backoff","repeat","replay"],"repository":{"type":"git","url":"git://github.com/IndigoUnited/node-promise-retry.git"},"author":{"name":"IndigoUnited","email":"hello@indigounited.com","url":"http://indigounited.com"},"bugs":{"url":"https://github.com/IndigoUnited/node-promise-retry/issues/"},"license":"MIT","readmeFilename":"README.md","users":{"satazor":true,"selenamarie":true,"carsy":true,"cslater":true,"abhisekp":true,"pjdietz":true,"yicone":true,"usex":true,"drmercer":true,"firefoxnx":true,"programmer.severson":true,"kivava":true,"temasm":true,"luoyjx":true,"smirzo":true,"duartemendes":true,"losymear":true,"mestar":true}}