{"_id":"async-promise-queue","_rev":"9-0b6e9f7b582f79ff7ee7cb05d0a4f6be","name":"async-promise-queue","description":"wrapper around async.queue to make some common usages simpler","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"dependencies":{"async":"^2.4.1"},"name":"async-promise-queue","version":"1.0.0","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"5689cc8cf31cd99d53a7f9194c684a13c16487d7","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.0","_npmVersion":"5.0.2","_nodeVersion":"7.4.0","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"integrity":"sha512-IB9qEzuDqplISHRDsrODtYTZkziDTKyLR8nk1YLOVHjR2671bEB6mxn/OY8yPa4OV3LawAEJS7tKy3+hd4t4jw==","shasum":"02ea8de451ad7b87d12b3c86bb3fa28f6d93d929","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiyZIxf0LfycEmp/wQZLdtlQanBpk43cAHGYgzQ8IghwIhAPQLLG/GXD5o0hMi8Uytz6AlRLIUyNT9ryeHy8uYCkTl"}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-1.0.0.tgz_1496693105767_0.8971629776060581"},"directories":{}},"1.0.1":{"dependencies":{"async":"^2.4.1"},"name":"async-promise-queue","version":"1.0.1","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"ea86df90efb65039942febb24d07d05d49f1a610","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.1","_npmVersion":"5.0.2","_nodeVersion":"7.4.0","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"integrity":"sha512-eAoVyM+nE1BxPdh4iOoggyuVRg25xae07aX8EsJ+OEqBw6xyxHqWSqIeQwZRee0z417KzaxA3/xRd3BHwz/Piw==","shasum":"1e67ad8f2fca104d09ff63b424bb2181771338f1","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBwd37HcrruhNpKHz4Dwi0+xYCtqG+oGfB/U++LdmkQAiBBED6HBC4bLm0nPd560fMzPojvzMqRgG1NstLToLq/4Q=="}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-1.0.1.tgz_1496693191823_0.7993104758206755"},"directories":{}},"1.0.2":{"dependencies":{"async":"^2.4.1"},"name":"async-promise-queue","version":"1.0.2","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"31ecd63a7e7d883b7c0d38e6c5910d9b08d05bbd","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.2","_npmVersion":"5.0.2","_nodeVersion":"7.4.0","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"integrity":"sha512-4nG4V5QMYVmt7J/XOXWIVDdUMjeOJaMCbcQHapPBg7ZZHJyFUTPJhGCKbEVHQt19vMtlg3QyJFlXC6N501y/0Q==","shasum":"62ed555a7be2b63e58c07fe9c83332fede9950fa","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdmxW9IDd3WwB87Iqif6T/SeJOa0Dlhoue49iQ7HQVpQIhAO5BACt1pwg0PJf97QIfA5sc/G05HhjZY/jLhbnj9u6j"}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-1.0.2.tgz_1496694333057_0.050797838950529695"},"directories":{}},"2.4.2":{"dependencies":{"async":"^2.4.1"},"name":"async-promise-queue","version":"2.4.2","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"93170e2ddc19e9c3b290481badabb1dc2742fe27","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@2.4.2","_shasum":"76dd3e69c0de3fedb1157bc7d156fdb6c5eb76c7","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"shasum":"76dd3e69c0de3fedb1157bc7d156fdb6c5eb76c7","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-2.4.2.tgz","integrity":"sha512-OukxYekFox/BhRlVRaygVGTd4u+52dAh+87ObnnieV1nReW4DotddXD8L+99O0z20fPylINsjEvo/eiHZoz6eg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx9J60BhuKOYSt0B6NFhFZytmPB7DlgvHTYo4avL0ESAIhAJv5AXewgDLpLIrQcbd8ueaZe5lojVP9HCK/ai+Vrftz"}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-2.4.2.tgz_1498782917536_0.1971177440136671"},"directories":{}},"1.0.3":{"dependencies":{"async":"^2.4.1"},"name":"async-promise-queue","version":"1.0.3","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"95f80fcee49732969ccd161d155dddb97f40b48d","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.3","_shasum":"70c9c37635620f894978814b6c65e6e14e2573ee","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"shasum":"70c9c37635620f894978814b6c65e6e14e2573ee","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.3.tgz","integrity":"sha512-7RP/JjnPHB1VPq9ALR7bHxGKDz12/biev6H6MNAjDHQ1IfmbuyprdYF1SgCKpLEhW7QLv0KVhgvtNfEHHg1YlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBucR7DOnd7qIxcfvbTlaOIHFpseuBw7LOjb1Cp8bEh9AiEA8SlhjuaJ610sBIBKSzI/rI3d3cbZ05yein7RZRjzhNQ="}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-1.0.3.tgz_1498783176251_0.3479734400752932"},"directories":{}},"1.0.4":{"dependencies":{"async":"^2.4.1","debug":"^2.6.8"},"name":"async-promise-queue","version":"1.0.4","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test","test:debug":"mocha debug test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"781c8a482c60d530e50e06650473eafb089297c4","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.4","_npmVersion":"5.1.0","_nodeVersion":"8.1.3","_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"dist":{"integrity":"sha512-GQ5X3DT+TefYuFPHdvIPXFTlKnh39U7dwtl+aUBGeKjMea9nBpv3c91DXgeyBQmY07vQ97f3Sr9XHqkamEameQ==","shasum":"308baafbc74aff66a0bb6e7f4a18d4fe8434440c","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID2SZhdKdKvERYKt1eC6VYFVfLSms7qp3wRxhvmPhioLAiB410OYXRK03YWJg2TDl0fiDWeHZhxTY1hE024qqCxDdA=="}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue-1.0.4.tgz_1501107728974_0.6531703677028418"},"directories":{}},"1.0.5":{"dependencies":{"async":"^2.4.1","debug":"^2.6.8"},"name":"async-promise-queue","version":"1.0.5","description":"wrapper around async.queue to make some common usages simpler","main":"index.js","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"license":"MIT","scripts":{"test":"mocha test","test:debug":"mocha debug test"},"devDependencies":{"chai":"^4.0.2","mocha":"^3.4.2"},"gitHead":"df3461390f8a62f6501c2f3141895d6bd527f72d","bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","_id":"async-promise-queue@1.0.5","_nodeVersion":"11.12.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-xi0aQ1rrjPWYmqbwr18rrSKbSaXIeIwSd1J4KAgVfkq8utNbdZoht7GfvfY6swFUAMJ9obkc4WPJmtGwl+B8dw==","shasum":"cb23bce9fce903a133946a700cc85f27f09ea49d","tarball":"https://registry.npmjs.org/async-promise-queue/-/async-promise-queue-1.0.5.tgz","fileCount":7,"unpackedSize":16569,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1XOhCRA9TVsSAnZWagAAUmIP/1lBPkJ17hPgSYNtUCw7\nP9np7myVJMwUa4s3JudSiM8AlKyvzmJUUvdtTEvpcpaXVNFwxb990+AELnHU\nt04huzNgP6g336qbDVr87N393N3dC4LKJRWeFtIkg8b5h3qz28LEQMoNXLCM\ncoEKcnhJn2bmD6lERphb9xeXV+B/Gcyidd0zNFIAN7YEGj+9Ry0EcB64+aO9\nMeUWAfXsKVKE73PniZnhQ7BAGbpYYelunIYZ2XSmEABbk5kB/jOqs29dEXuF\nzY+tjNpCWcemuxbiMVuot2kqZa86Tdr0k0slKi9TzoeuL44ZQpsvHrfF0DRO\nMY/tjIG63FA3qS4VvbJVGg4+7o/P93AG22NMqfi48g658k81SomQrz4QmfjT\nJRLvYtS/UegwyjP3nM8VMSRSqhzmYlfxlreMoO5i554XOdxlFAmb9zLRuNa+\nlwxnIX4l66TRo80rpNLpx5m+Zx3pfde7b0WC+U/fqdYbRNr16GA9VjRDbjeT\nLRdljoTFI1JCHvEHxy9T8josHsN8HhHtWgXGNndzMP29QKWmGbeIL1jSFkGI\n9My7b8kgZHVo1XUckaUdVpt0YfZ99nk+gKggBAq3U64ZJipMOvz2A+G7DUnm\ncjueWCtv92+yBkwZ4ttV1BKsdMRAdQcCUHTb2NwM1zZ0bDqUXiNRSFZdgB0H\n13BX\r\n=8QBE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQevPtmcgDL3t7/JH+2fT9rKzgptBfCDxW6fCIAoAU8gIhAOJKvhbhSr6bKUwNGSAkfUiwyb+irS4tTv+1J5iP0Hcs"}]},"maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_npmUser":{"name":"stefanpenner","email":"stefan.penner@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-promise-queue_1.0.5_1557492641122_0.5083106593463289"},"_hasShrinkwrap":false}},"readme":"# async-promise-queue\n\n[![Build Status](https://travis-ci.org/stefanpenner/async-promise-queue.svg?branch=master)](https://travis-ci.org/stefanpenner/async-promise-queue)\n\nA wrapper around the `async` module, that provides an improved promise queue.\n\nSome highlights:\n\n* promiseified method (all wired up)\n* in a failure scenario, it will wait for pending work before rejecting. This prevents the run-away work problem.\n\n## Usage\n\n```sh\nnpm install async-promise-queue\n```\n\nor\n\n```sh\nyarn add async-promise-queue\n```\n\n### Debug logging\n\n```\nDEBUG=\"async-promise-queue*\" node <your program>\n```\n\nAnd you will be informed when a queue is used, and what its concurrency becomes (note: we can always add more logging, submit your ideas as pull requests!)\n\n## Example\n\n```js\n'use strict';\n\nconst queue = require('async-promise-queue');\n\nqueue.async // a reference to the `async` module which `async-promise-queue` is requiring.\n\n// the example worker\nconst worker = queue.async.asyncify(function(work) {\n  console.log('work', work.file);\n  return new Promise(resolve => {\n    if (work.file === '/path-2') { throw new Error('/path-2'); }\n    if (work.file === '/path-3') { throw new Error('/path-3'); }\n    setTimeout(resolve, work.duration);\n  });\n});\n\n// the work\nconst work = [\n  { file:'/path-1',  duration: 1000 },\n  { file:'/path-2',  duration: 50 },\n  { file:'/path-3',  duration: 100 },\n  { file:'/path-4',  duration: 50 },\n];\n\n// calling our queue helper\nqueue(worker, work, 3)\n  .catch(reason => console.error(reason))\n  .then(value   => console.log('complete!!', value))\n```\n","maintainers":[{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"time":{"modified":"2022-06-13T03:37:30.989Z","created":"2017-06-05T20:05:05.824Z","1.0.0":"2017-06-05T20:05:05.824Z","1.0.1":"2017-06-05T20:06:31.944Z","1.0.2":"2017-06-05T20:25:33.215Z","2.4.2":"2017-06-30T00:35:17.652Z","1.0.3":"2017-06-30T00:39:36.462Z","1.0.4":"2017-07-26T22:22:09.788Z","1.0.5":"2019-05-10T12:50:41.262Z"},"homepage":"https://github.com/stefanpenner/async-promise-queue#readme","repository":{"type":"git","url":"git+https://github.com/stefanpenner/async-promise-queue.git"},"author":{"name":"Stefan Penner","email":"stefan.penner@gmail.com"},"bugs":{"url":"https://github.com/stefanpenner/async-promise-queue/issues"},"license":"MIT","readmeFilename":"README.md"}