Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/run-queue.json

raw
1 {
2 "_id": "run-queue",
3 "_rev": "6-152e9fa845e18d5defdb06fe10849a0b",
4 "name": "run-queue",
5 "description": "A promise based, dynamic priority queue runner, with concurrency limiting.",
6 "dist-tags": {
7 "latest": "2.0.1"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "run-queue",
12 "version": "1.0.0",
13 "description": "Process a dynamic queue of data, possibly concurrently",
14 "main": "queue.js",
15 "scripts": {
16 "test": "standard && tap -J test"
17 },
18 "keywords": [],
19 "author": {
20 "name": "Rebecca Turner",
21 "email": "[email protected]",
22 "url": "http://re-becca.org/"
23 },
24 "license": "ISC",
25 "devDependencies": {
26 "standard": "^8.6.0",
27 "tap": "^10.2.0"
28 },
29 "files": [
30 "queue.js"
31 ],
32 "directories": {
33 "test": "test"
34 },
35 "dependencies": {
36 "standard": "^8.6.0"
37 },
38 "repository": {
39 "type": "git",
40 "url": "git+https://github.com/iarna/run-queue.git"
41 },
42 "bugs": {
43 "url": "https://github.com/iarna/run-queue/issues"
44 },
45 "homepage": "https://npmjs.com/package/run-queue",
46 "gitHead": "f0e7a12f9720352ee386e2c2ce5be9c0bd4c3b7f",
47 "_id": "[email protected]",
48 "_shasum": "5d4da75ba1589e9aec294d3fce987dd60f1def3d",
49 "_from": ".",
50 "_npmVersion": "4.4.0",
51 "_nodeVersion": "4.6.1",
52 "_npmUser": {
53 "name": "iarna",
54 "email": "[email protected]"
55 },
56 "dist": {
57 "shasum": "5d4da75ba1589e9aec294d3fce987dd60f1def3d",
58 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.0.tgz"
59 },
60 "maintainers": [
61 {
62 "name": "iarna",
63 "email": "[email protected]"
64 }
65 ],
66 "_npmOperationalInternal": {
67 "host": "packages-12-west.internal.npmjs.com",
68 "tmp": "tmp/run-queue-1.0.0.tgz_1488149007258_0.8681126337032765"
69 }
70 },
71 "1.0.1": {
72 "name": "run-queue",
73 "version": "1.0.1",
74 "description": "Process a dynamic queue of data, possibly concurrently",
75 "main": "queue.js",
76 "scripts": {
77 "test": "standard && tap -J test"
78 },
79 "keywords": [],
80 "author": {
81 "name": "Rebecca Turner",
82 "email": "[email protected]",
83 "url": "http://re-becca.org/"
84 },
85 "license": "ISC",
86 "devDependencies": {
87 "standard": "^8.6.0",
88 "tap": "^10.2.0"
89 },
90 "files": [
91 "queue.js"
92 ],
93 "directories": {
94 "test": "test"
95 },
96 "dependencies": {
97 "standard": "^8.6.0"
98 },
99 "repository": {
100 "type": "git",
101 "url": "git+https://github.com/iarna/run-queue.git"
102 },
103 "bugs": {
104 "url": "https://github.com/iarna/run-queue/issues"
105 },
106 "homepage": "https://npmjs.com/package/run-queue",
107 "gitHead": "2fc7ffce3f7ed31ecd17ae16a792beab43b948ad",
108 "_id": "[email protected]",
109 "_shasum": "f4b0ab80b75f416aea140b13f059af1224844710",
110 "_from": ".",
111 "_npmVersion": "4.4.0",
112 "_nodeVersion": "4.6.1",
113 "_npmUser": {
114 "name": "iarna",
115 "email": "[email protected]"
116 },
117 "dist": {
118 "shasum": "f4b0ab80b75f416aea140b13f059af1224844710",
119 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.1.tgz"
120 },
121 "maintainers": [
122 {
123 "name": "iarna",
124 "email": "[email protected]"
125 }
126 ],
127 "_npmOperationalInternal": {
128 "host": "packages-12-west.internal.npmjs.com",
129 "tmp": "tmp/run-queue-1.0.1.tgz_1488154288448_0.6650912221521139"
130 }
131 },
132 "1.0.2": {
133 "name": "run-queue",
134 "version": "1.0.2",
135 "description": "A promise based, dynamic priority queue runner, with concurrency limiting.",
136 "main": "queue.js",
137 "scripts": {
138 "test": "standard && tap -J test"
139 },
140 "keywords": [],
141 "author": {
142 "name": "Rebecca Turner",
143 "email": "[email protected]",
144 "url": "http://re-becca.org/"
145 },
146 "license": "ISC",
147 "devDependencies": {
148 "standard": "^8.6.0",
149 "tap": "^10.2.0"
150 },
151 "files": [
152 "queue.js"
153 ],
154 "directories": {
155 "test": "test"
156 },
157 "dependencies": {
158 "standard": "^8.6.0"
159 },
160 "repository": {
161 "type": "git",
162 "url": "git+https://github.com/iarna/run-queue.git"
163 },
164 "bugs": {
165 "url": "https://github.com/iarna/run-queue/issues"
166 },
167 "homepage": "https://npmjs.com/package/run-queue",
168 "gitHead": "1fb0c4025eb91fb65b0492d626f9f876432b4a50",
169 "_id": "[email protected]",
170 "_shasum": "a9396e5962a5b0b022a81c125017e95302a6f76a",
171 "_from": ".",
172 "_npmVersion": "4.4.0",
173 "_nodeVersion": "4.6.1",
174 "_npmUser": {
175 "name": "iarna",
176 "email": "[email protected]"
177 },
178 "dist": {
179 "shasum": "a9396e5962a5b0b022a81c125017e95302a6f76a",
180 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.2.tgz"
181 },
182 "maintainers": [
183 {
184 "name": "iarna",
185 "email": "[email protected]"
186 }
187 ],
188 "_npmOperationalInternal": {
189 "host": "packages-12-west.internal.npmjs.com",
190 "tmp": "tmp/run-queue-1.0.2.tgz_1488154367416_0.6272554455790669"
191 }
192 },
193 "1.0.3": {
194 "name": "run-queue",
195 "version": "1.0.3",
196 "description": "A promise based, dynamic priority queue runner, with concurrency limiting.",
197 "main": "queue.js",
198 "scripts": {
199 "test": "standard && tap -J test"
200 },
201 "keywords": [],
202 "author": {
203 "name": "Rebecca Turner",
204 "email": "[email protected]",
205 "url": "http://re-becca.org/"
206 },
207 "license": "ISC",
208 "devDependencies": {
209 "standard": "^8.6.0",
210 "tap": "^10.2.0"
211 },
212 "files": [
213 "queue.js"
214 ],
215 "directories": {
216 "test": "test"
217 },
218 "dependencies": {
219 "aproba": "^1.1.1"
220 },
221 "repository": {
222 "type": "git",
223 "url": "git+https://github.com/iarna/run-queue.git"
224 },
225 "bugs": {
226 "url": "https://github.com/iarna/run-queue/issues"
227 },
228 "homepage": "https://npmjs.com/package/run-queue",
229 "gitHead": "3c315b738d0578c2c54be2beb0469d00ccf1dc25",
230 "_id": "[email protected]",
231 "_shasum": "e848396f057d223f24386924618e25694161ec47",
232 "_from": ".",
233 "_npmVersion": "2.15.0",
234 "_nodeVersion": "0.12.13",
235 "_npmUser": {
236 "name": "iarna",
237 "email": "[email protected]"
238 },
239 "dist": {
240 "shasum": "e848396f057d223f24386924618e25694161ec47",
241 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz"
242 },
243 "maintainers": [
244 {
245 "name": "iarna",
246 "email": "[email protected]"
247 }
248 ],
249 "_npmOperationalInternal": {
250 "host": "packages-18-east.internal.npmjs.com",
251 "tmp": "tmp/run-queue-1.0.3.tgz_1488161288446_0.14580746600404382"
252 }
253 },
254 "2.0.0": {
255 "name": "run-queue",
256 "version": "2.0.0",
257 "description": "A promise based, dynamic priority queue runner, with concurrency limiting.",
258 "main": "queue.js",
259 "scripts": {
260 "test": "standard && tap -J --100 test"
261 },
262 "keywords": [],
263 "author": {
264 "name": "Rebecca Turner",
265 "email": "[email protected]",
266 "url": "http://re-becca.org/"
267 },
268 "license": "ISC",
269 "devDependencies": {
270 "standard": "^8.6.0",
271 "tap": "^10.2.0"
272 },
273 "directories": {
274 "test": "test"
275 },
276 "dependencies": {
277 "aproba": "^1.1.1"
278 },
279 "repository": {
280 "type": "git",
281 "url": "git+https://github.com/iarna/run-queue.git"
282 },
283 "bugs": {
284 "url": "https://github.com/iarna/run-queue/issues"
285 },
286 "homepage": "https://npmjs.com/package/run-queue",
287 "gitHead": "a302a574191ae2c7a184d1479216f47725efbd0e",
288 "_id": "[email protected]",
289 "_npmVersion": "6.4.1",
290 "_nodeVersion": "10.6.0",
291 "_npmUser": {
292 "name": "iarna",
293 "email": "[email protected]"
294 },
295 "dist": {
296 "integrity": "sha512-/9w+VOBVduLMu6x6GBF2C4YgRX3xHGFu/Nyzk61y0mLZb6tAeDP9rZ9hX7r3AbheR2lx2tltqjXaKfuOuul7Ow==",
297 "shasum": "6d6a48c5291fa50b0ccb0b60ae5fdf77c9979643",
298 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-2.0.0.tgz",
299 "fileCount": 4,
300 "unpackedSize": 6488,
301 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbjvrHCRA9TVsSAnZWagAAI3wP/0tmfFyw6nD2sY3GwBsa\nu3MeZ7kcHdmCvl1IwgfB63Y/B3WOf9aeJQqzwSbxpI6OyfbX9hvqQqM/Jnxn\ninpHV5QEf1j6ud7giucM7uiZaFGQc+A/0Xjok52+TaL9xeZFV4jtIR1MBxEy\nd8EzpaDRd56bHpdRR/gJH7MvFo6adErx0oRQez54HbT5w9CnR2zk31t8eWVD\n+O8RIp9bq0fGU8fg1FhsrJvY8u1i0fHqlrvMQliatPCXlGZAGOrbxtUzNTyV\nXo1/zat150zifAHW7FQxw59G/rWAyPN6q8ULEGR/KGZMUl6SFFJPgMHEvX3n\nvsrGHGM59LQzzwhq+IO/qepES6CVRLJUdQt40LkTxIgUxWo/NzN4oiy2RVnB\nqcy4hZF+oiYlQs3JhdaBazwkNYTuCnJfApkUacp2XFYVznMGpwFpzojYV5go\nAOCXON2JOfRczahUOJ5JyW0uPwXcmNoCEN//hNWQ5D84L0kMt4kh3NeDOIn4\nj6KP64fwELl82lWb5+zIADuNJFq0Msua4Bm7FspmiVa/99VceVvzIRT3j/1M\np4TVGWtqp9tNVD3p0r45Hxjno9vwWGED+dxxm961PwWh64WWd3QmUt3Zjyve\nRmUlFFAKplKGBLsxsICeLTLdZGbzZPQv7Kd4zRxRPSpr+/ZjSiio/3yHo1C6\n55Y2\r\n=xIko\r\n-----END PGP SIGNATURE-----\r\n"
302 },
303 "maintainers": [
304 {
305 "name": "iarna",
306 "email": "[email protected]"
307 }
308 ],
309 "_npmOperationalInternal": {
310 "host": "s3://npm-registry-packages",
311 "tmp": "tmp/run-queue_2.0.0_1536096967105_0.7691035061880602"
312 },
313 "_hasShrinkwrap": false
314 },
315 "2.0.1": {
316 "name": "run-queue",
317 "version": "2.0.1",
318 "description": "A promise based, dynamic priority queue runner, with concurrency limiting.",
319 "main": "queue.js",
320 "scripts": {
321 "test": "iarna-standard && tap --100 test",
322 "test-v4": "tap --100 test"
323 },
324 "keywords": [],
325 "author": {
326 "name": "Rebecca Turner",
327 "email": "[email protected]",
328 "url": "http://re-becca.org/"
329 },
330 "license": "ISC",
331 "devDependencies": {
332 "@iarna/standard": "^2.0.0",
333 "tap": "^12.4.0"
334 },
335 "directories": {
336 "test": "test"
337 },
338 "dependencies": {
339 "aproba": "^2.0.0"
340 },
341 "repository": {
342 "type": "git",
343 "url": "git+https://github.com/iarna/run-queue.git"
344 },
345 "bugs": {
346 "url": "https://github.com/iarna/run-queue/issues"
347 },
348 "homepage": "https://npmjs.com/package/run-queue",
349 "gitHead": "cbbe521279426e1786fc494ee1b9b695e1b9bd9e",
350 "_id": "[email protected]",
351 "_nodeVersion": "10.11.0",
352 "_npmVersion": "6.6.0",
353 "_npmUser": {
354 "name": "iarna",
355 "email": "[email protected]"
356 },
357 "dist": {
358 "integrity": "sha512-dkU5pUwpmeNKdsApBU6eBdUdkoSwx+yRnoi3Ax745evJDNx7NQRsE2o3AsXbye5GqbKqZ9HJFYxZ2laOoNE1Dg==",
359 "shasum": "2fa9302a32897f3d7bd8b2267842272804d7db11",
360 "tarball": "https://registry.npmjs.org/run-queue/-/run-queue-2.0.1.tgz",
361 "fileCount": 4,
362 "unpackedSize": 6535,
363 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcS7IzCRA9TVsSAnZWagAAFKMP/Rn6Mou/8CX1FDzhk5Ph\nxhKUWeu//52pQdrKLuoFEALrZd2TIUGIr2n37GIdw79e4wK9hilj7Z6onSKG\nz65fKtr2rd8S3YxvpATynDj+xc+B8RuWnHi3BJULlThNf3/+/nglBVbbe9qg\nAgssiI343GICCM0eldGa74srZxzE9Ypjk9U/MmuBDFJBvWBsnv6mm5YsHJix\nDcmfkSj9/v/JOldmilFk2E4O8kUC0DMl5z9mjq7RMiHc8iKyUoNDO+snWgHF\nPmcAO/xrZt7wIt4Jfgbi2tIXX85hoemUtVC7TRstnuEJYU+nLrhWmPdfUdC8\nOhdinWT8UcBPX8V3fyEoSrmXaIjeAOyC8vYuFBx+ucIR70hkT8SPqt2odqRw\n3kJIGJ6XyG54ul8QAGrEuVKx6RSMi7nJHOZ4/mtHWoIbMFo27lcLyVIfd2RN\np3cK3YgY7yFkFG0G6/vHZWtL5OxmJE0PMBbaK3d0McUkjw/YPC69+VKAoh9x\nR8rFdWCbVig3WQxzJ98D0QNYlFA3TQ67v4E9u6XN2Epwq3lJrLEVsWrpAm9k\nEdXm8imQs1UlZz3ejjsM/2P8U0uZSp/jb94W+eT3zYg1BR3j3J/eWJiHKKTa\nJeLOFP2xI9pNUEB4l4yHyS2Yw56S4MJ4OUsWwsuMPKwVnJPivp7HJNckxeLM\nP3Ub\r\n=k5D9\r\n-----END PGP SIGNATURE-----\r\n"
364 },
365 "maintainers": [
366 {
367 "name": "iarna",
368 "email": "[email protected]"
369 }
370 ],
371 "_npmOperationalInternal": {
372 "host": "s3://npm-registry-packages",
373 "tmp": "tmp/run-queue_2.0.1_1548464690940_0.443462412986239"
374 },
375 "_hasShrinkwrap": false
376 }
377 },
378 "readme": "# run-queue\n\nA promise based, dynamic priority queue runner, with concurrency limiting.\n\n```js\nconst RunQueue = require('run-queue')\n\nconst queue = new RunQueue({\n maxConcurrency: 1\n})\n\nqueue.add(1, example, [-1])\nfor (let ii = 0; ii < 5; ++ii) {\n queue.add(0, example, [ii])\n}\nconst finished = []\nqueue.run().then(\n console.log(finished)\n})\n\nfunction example (num, next) {\n setTimeout(() => {\n finished.push(num)\n next()\n }, 5 - Math.abs(num))\n}\n```\n\nwould output\n\n```\n[ 0, 1, 2, 3, 4, -1 ]\n```\n\nIf you bump concurrency to `2`, then you get:\n\n```\n[ 1, 0, 3, 2, 4, -1 ]\n```\n\nThe concurrency means that they don't finish in order, because some take\nlonger than others. Each priority level must finish entirely before the\nnext priority level is run. See\n[PRIORITIES](https://github.com/iarna/run-queue#priorities) below. This is\neven true if concurrency is set high enough that all of the regular queue\ncan execute at once, for instance, with `maxConcurrency: 10`:\n\n```\n[ 4, 3, 2, 1, 0, -1 ]\n```\n\n## API\n\n### const queue = new RunQueue(options)\n\nCreate a new queue. Options may contain:\n\n* maxConcurrency - (Default: `1`) The maximum number of jobs to execute at once.\n* Promise - (Default: global.Promise) The promise implementation to use.\n\n### queue.add (prio, fn, args)\n\nAdd a new job to the end of the queue at priority `prio` that will run `fn`\nwith `args`. If `fn` is async then it should return a Promise.\n\n### queue.run ()\n\nStart running the job queue. Returns a Promise that resolves when either\nall the jobs are complete or a job ends in error (throws or returns a\nrejected promise). If a job ended in error then this Promise will be rejected\nwith that error and no further queue running will be done.\n\n## PRIORITIES\n\nPriorities are any integer value >= 0.\n\nLowest is executed first.\n\nPriorities essentially represent distinct job queues. All jobs in a queue\nmust complete before the next highest priority job queue is executed.\n\nThis means that if you have two queues, `0` and `1` then ALL jobs in `0`\nmust complete before ANY execute in `1`. If you add new `0` level jobs\nwhile `1` level jobs are running then it will switch back processing the `0`\nqueue and won't execute any more `1` jobs till all of the new `0` jobs\ncomplete.\n",
379 "maintainers": [
380 {
381 "name": "iarna",
382 "email": "[email protected]"
383 }
384 ],
385 "time": {
386 "modified": "2019-01-26T01:04:53.736Z",
387 "created": "2017-02-26T22:43:27.507Z",
388 "1.0.0": "2017-02-26T22:43:27.507Z",
389 "1.0.1": "2017-02-27T00:11:28.664Z",
390 "1.0.2": "2017-02-27T00:12:47.664Z",
391 "1.0.3": "2017-02-27T02:08:10.231Z",
392 "2.0.0": "2018-09-04T21:36:07.290Z",
393 "2.0.1": "2019-01-26T01:04:51.121Z"
394 },
395 "homepage": "https://npmjs.com/package/run-queue",
396 "keywords": [],
397 "repository": {
398 "type": "git",
399 "url": "git+https://github.com/iarna/run-queue.git"
400 },
401 "author": {
402 "name": "Rebecca Turner",
403 "email": "[email protected]",
404 "url": "http://re-becca.org/"
405 },
406 "bugs": {
407 "url": "https://github.com/iarna/run-queue/issues"
408 },
409 "license": "ISC",
410 "readmeFilename": "README.md",
411 "users": {
412 "iarna": true
413 }
414 }