Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/p-cancelable.json

raw
1 {
2 "_id": "p-cancelable",
3 "_rev": "12-d71b5c3598412c28c50687609c2b907a",
4 "name": "p-cancelable",
5 "description": "Create a promise that can be canceled",
6 "dist-tags": {
7 "latest": "2.0.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "p-cancelable",
12 "version": "0.1.0",
13 "description": "Create a promise that can be canceled",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "promise",
35 "cancelable",
36 "cancel",
37 "canceled",
38 "canceling",
39 "cancellable",
40 "cancellation",
41 "abort",
42 "abortable",
43 "aborting",
44 "cleanup",
45 "task",
46 "token",
47 "async",
48 "function",
49 "await",
50 "promises",
51 "bluebird"
52 ],
53 "devDependencies": {
54 "ava": "*",
55 "delay": "^1.3.1",
56 "xo": "*"
57 },
58 "xo": {
59 "esnext": true
60 },
61 "gitHead": "5e1f5b4d5b8b0f7549c87dbae0417c4afe9c6d8f",
62 "bugs": {
63 "url": "https://github.com/sindresorhus/p-cancelable/issues"
64 },
65 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
66 "_id": "[email protected]",
67 "_shasum": "7a551d2b87cd825e927683ab996b13abdbd53ed2",
68 "_from": ".",
69 "_npmVersion": "2.15.11",
70 "_nodeVersion": "4.6.2",
71 "_npmUser": {
72 "name": "sindresorhus",
73 "email": "[email protected]"
74 },
75 "dist": {
76 "shasum": "7a551d2b87cd825e927683ab996b13abdbd53ed2",
77 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.1.0.tgz"
78 },
79 "maintainers": [
80 {
81 "name": "sindresorhus",
82 "email": "[email protected]"
83 }
84 ],
85 "_npmOperationalInternal": {
86 "host": "packages-12-west.internal.npmjs.com",
87 "tmp": "tmp/p-cancelable-0.1.0.tgz_1480330568731_0.36330019892193377"
88 },
89 "directories": {}
90 },
91 "0.2.0": {
92 "name": "p-cancelable",
93 "version": "0.2.0",
94 "description": "Create a promise that can be canceled",
95 "license": "MIT",
96 "repository": {
97 "type": "git",
98 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
99 },
100 "author": {
101 "name": "Sindre Sorhus",
102 "email": "[email protected]",
103 "url": "sindresorhus.com"
104 },
105 "engines": {
106 "node": ">=4"
107 },
108 "scripts": {
109 "test": "xo && ava"
110 },
111 "files": [
112 "index.js"
113 ],
114 "keywords": [
115 "promise",
116 "cancelable",
117 "cancel",
118 "canceled",
119 "canceling",
120 "cancellable",
121 "cancellation",
122 "abort",
123 "abortable",
124 "aborting",
125 "cleanup",
126 "task",
127 "token",
128 "async",
129 "function",
130 "await",
131 "promises",
132 "bluebird"
133 ],
134 "devDependencies": {
135 "ava": "*",
136 "delay": "^2.0.0",
137 "xo": "*"
138 },
139 "gitHead": "3da2d57d79c0ba9c68db62822cae124dcc5a0d9f",
140 "bugs": {
141 "url": "https://github.com/sindresorhus/p-cancelable/issues"
142 },
143 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
144 "_id": "[email protected]",
145 "_shasum": "3152f4f30be7606b60ebfe8bb93b3fdf69085e46",
146 "_from": ".",
147 "_npmVersion": "4.2.0",
148 "_nodeVersion": "7.9.0",
149 "_npmUser": {
150 "name": "sindresorhus",
151 "email": "[email protected]"
152 },
153 "dist": {
154 "shasum": "3152f4f30be7606b60ebfe8bb93b3fdf69085e46",
155 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.2.0.tgz"
156 },
157 "maintainers": [
158 {
159 "name": "sindresorhus",
160 "email": "[email protected]"
161 }
162 ],
163 "_npmOperationalInternal": {
164 "host": "packages-18-east.internal.npmjs.com",
165 "tmp": "tmp/p-cancelable-0.2.0.tgz_1493962754416_0.057322570122778416"
166 },
167 "directories": {}
168 },
169 "0.3.0": {
170 "name": "p-cancelable",
171 "version": "0.3.0",
172 "description": "Create a promise that can be canceled",
173 "license": "MIT",
174 "repository": {
175 "type": "git",
176 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
177 },
178 "author": {
179 "name": "Sindre Sorhus",
180 "email": "[email protected]",
181 "url": "sindresorhus.com"
182 },
183 "engines": {
184 "node": ">=4"
185 },
186 "scripts": {
187 "test": "xo && ava"
188 },
189 "files": [
190 "index.js"
191 ],
192 "keywords": [
193 "promise",
194 "cancelable",
195 "cancel",
196 "canceled",
197 "canceling",
198 "cancellable",
199 "cancellation",
200 "abort",
201 "abortable",
202 "aborting",
203 "cleanup",
204 "task",
205 "token",
206 "async",
207 "function",
208 "await",
209 "promises",
210 "bluebird"
211 ],
212 "devDependencies": {
213 "ava": "*",
214 "delay": "^2.0.0",
215 "xo": "*"
216 },
217 "gitHead": "0ea492a3a02e5b8bb984b7a7f1db60a31f66da0b",
218 "bugs": {
219 "url": "https://github.com/sindresorhus/p-cancelable/issues"
220 },
221 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
222 "_id": "[email protected]",
223 "_npmVersion": "5.0.0",
224 "_nodeVersion": "8.0.0",
225 "_npmUser": {
226 "name": "sindresorhus",
227 "email": "[email protected]"
228 },
229 "dist": {
230 "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==",
231 "shasum": "b9e123800bcebb7ac13a479be195b507b98d30fa",
232 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz"
233 },
234 "maintainers": [
235 {
236 "name": "sindresorhus",
237 "email": "[email protected]"
238 }
239 ],
240 "_npmOperationalInternal": {
241 "host": "s3://npm-registry-packages",
242 "tmp": "tmp/p-cancelable-0.3.0.tgz_1498837734166_0.038153667002916336"
243 },
244 "directories": {}
245 },
246 "0.4.0": {
247 "name": "p-cancelable",
248 "version": "0.4.0",
249 "description": "Create a promise that can be canceled",
250 "license": "MIT",
251 "repository": {
252 "type": "git",
253 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
254 },
255 "author": {
256 "name": "Sindre Sorhus",
257 "email": "[email protected]",
258 "url": "sindresorhus.com"
259 },
260 "engines": {
261 "node": ">=4"
262 },
263 "scripts": {
264 "test": "xo && ava"
265 },
266 "files": [
267 "index.js"
268 ],
269 "keywords": [
270 "promise",
271 "cancelable",
272 "cancel",
273 "canceled",
274 "canceling",
275 "cancellable",
276 "cancellation",
277 "abort",
278 "abortable",
279 "aborting",
280 "cleanup",
281 "task",
282 "token",
283 "async",
284 "function",
285 "await",
286 "promises",
287 "bluebird"
288 ],
289 "devDependencies": {
290 "ava": "*",
291 "delay": "^2.0.0",
292 "xo": "*"
293 },
294 "gitHead": "172141757dff0acaf3d6a93473c1ba3c2e78a7aa",
295 "bugs": {
296 "url": "https://github.com/sindresorhus/p-cancelable/issues"
297 },
298 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
299 "_id": "[email protected]",
300 "_npmVersion": "5.6.0",
301 "_nodeVersion": "8.9.4",
302 "_npmUser": {
303 "name": "sindresorhus",
304 "email": "[email protected]"
305 },
306 "dist": {
307 "integrity": "sha512-/AodqPe1y/GYbhSlnMjxukLGQfQIgsmjSy2CXCNB96kg4ozKvmlovuHEKICToOO/yS3LLWgrWI1dFtFfrePS1g==",
308 "shasum": "bcb41d35bf6097fc4367a065b6eb84b9b124eff0",
309 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.0.tgz",
310 "fileCount": 4,
311 "unpackedSize": 6866
312 },
313 "maintainers": [
314 {
315 "name": "sindresorhus",
316 "email": "[email protected]"
317 }
318 ],
319 "directories": {},
320 "_npmOperationalInternal": {
321 "host": "s3://npm-registry-packages",
322 "tmp": "tmp/p-cancelable_0.4.0_1520348511879_0.719711445299539"
323 },
324 "_hasShrinkwrap": false
325 },
326 "0.4.1": {
327 "name": "p-cancelable",
328 "version": "0.4.1",
329 "description": "Create a promise that can be canceled",
330 "license": "MIT",
331 "repository": {
332 "type": "git",
333 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
334 },
335 "author": {
336 "name": "Sindre Sorhus",
337 "email": "[email protected]",
338 "url": "sindresorhus.com"
339 },
340 "engines": {
341 "node": ">=4"
342 },
343 "scripts": {
344 "test": "xo && ava"
345 },
346 "files": [
347 "index.js"
348 ],
349 "keywords": [
350 "promise",
351 "cancelable",
352 "cancel",
353 "canceled",
354 "canceling",
355 "cancellable",
356 "cancellation",
357 "abort",
358 "abortable",
359 "aborting",
360 "cleanup",
361 "task",
362 "token",
363 "async",
364 "function",
365 "await",
366 "promises",
367 "bluebird"
368 ],
369 "devDependencies": {
370 "ava": "*",
371 "delay": "^2.0.0",
372 "promise.prototype.finally": "^3.1.0",
373 "xo": "*"
374 },
375 "gitHead": "50d66ce7228c23511a754a03d52aebf55e0229b1",
376 "bugs": {
377 "url": "https://github.com/sindresorhus/p-cancelable/issues"
378 },
379 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
380 "_id": "[email protected]",
381 "_npmVersion": "5.6.0",
382 "_nodeVersion": "8.10.0",
383 "_npmUser": {
384 "name": "sindresorhus",
385 "email": "[email protected]"
386 },
387 "dist": {
388 "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==",
389 "shasum": "35f363d67d52081c8d9585e37bcceb7e0bbcb2a0",
390 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",
391 "fileCount": 4,
392 "unpackedSize": 6976
393 },
394 "maintainers": [
395 {
396 "name": "sindresorhus",
397 "email": "[email protected]"
398 }
399 ],
400 "directories": {},
401 "_npmOperationalInternal": {
402 "host": "s3://npm-registry-packages",
403 "tmp": "tmp/p-cancelable_0.4.1_1522581779099_0.05425666370241489"
404 },
405 "_hasShrinkwrap": false
406 },
407 "0.5.0": {
408 "name": "p-cancelable",
409 "version": "0.5.0",
410 "description": "Create a promise that can be canceled",
411 "license": "MIT",
412 "repository": {
413 "type": "git",
414 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
415 },
416 "author": {
417 "name": "Sindre Sorhus",
418 "email": "[email protected]",
419 "url": "sindresorhus.com"
420 },
421 "engines": {
422 "node": ">=6"
423 },
424 "scripts": {
425 "test": "xo && ava"
426 },
427 "files": [
428 "index.js"
429 ],
430 "keywords": [
431 "promise",
432 "cancelable",
433 "cancel",
434 "canceled",
435 "canceling",
436 "cancellable",
437 "cancellation",
438 "abort",
439 "abortable",
440 "aborting",
441 "cleanup",
442 "task",
443 "token",
444 "async",
445 "function",
446 "await",
447 "promises",
448 "bluebird"
449 ],
450 "devDependencies": {
451 "ava": "*",
452 "delay": "^3.0.0",
453 "promise.prototype.finally": "^3.1.0",
454 "xo": "*"
455 },
456 "gitHead": "54b12bba45d3b38180f7a490bc2bc24e384612ac",
457 "bugs": {
458 "url": "https://github.com/sindresorhus/p-cancelable/issues"
459 },
460 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
461 "_id": "[email protected]",
462 "_npmVersion": "5.6.0",
463 "_nodeVersion": "8.11.2",
464 "_npmUser": {
465 "name": "sindresorhus",
466 "email": "[email protected]"
467 },
468 "dist": {
469 "integrity": "sha512-UTykUaG4vhPAMNi1/GZKGdCNDj4qGnq6taAjnOG0KCx5Fva3b1vtskXtagAePmgIhUrdcoDGEvAQIHaSPXEZWg==",
470 "shasum": "65b8dfbcacf27983421ee4c044ebf5e35816c7c8",
471 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.5.0.tgz",
472 "fileCount": 4,
473 "unpackedSize": 7032,
474 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPGdvCRA9TVsSAnZWagAAjrUP/2r3TGaqEBzVojRiVLac\nke7HOPnYjAFac5zeApVwTCnWBAGzW17+KystDtptBD2FoowgA/ECX4Eo2ict\nycONqhizohEnBj82WfyCB8c/sImheni/VO7vuek1gUgzIBF3q9v5qSruoB6d\ny+wDwFuhNWwXrMaFA1MAmm9XjyVVS6z9oNzzMvcsnfvBWMZwEkbYymT/S6ml\n/U0z9v38EUPdgqCuG6GJCAzyBrqFk9msZzm9zqmBId+WCWVfDnOyFxkQuujn\ny9n+17DYRiyriSodo1VCCl7VjbP+xJFnzAoINFa7P3es8s72WTXMi2gXJatH\nWd3rNWKkEqPs4nOqReOyocZAZi6p/Z3pqxTL9naYVhRG15tC5toAW8pMawSR\n5Liw5JalMRNdJR7LcmC91s2t4YtGwIgGdzcUQ0bWEYKi8h2c/UpDuap9WFoS\nQQ6u+s59j8dBoNnqlaDB/F/Br6aGyKb1xAHWKjmKGd63/FeR1CBgz2lNa5rP\n7RN5Ew7znnb0yVmyF7nEnnKVmCQ8Jp2h9GkkZhnFsmfp+ZOmzWCiLyEjmem6\nzdl+UccLhgjfr2HbC1T9sF5oMd+dqQa1Gd9DfEyhVGrklaCpxddHhfscAexP\nWByU0G+iGZn6VRxLQm10R2nzwM0uoaqpL1KxAMPwQToDAw+LMNRA1S3b5o+L\n4V7V\r\n=0GnV\r\n-----END PGP SIGNATURE-----\r\n"
475 },
476 "maintainers": [
477 {
478 "name": "sindresorhus",
479 "email": "[email protected]"
480 }
481 ],
482 "directories": {},
483 "_npmOperationalInternal": {
484 "host": "s3://npm-registry-packages",
485 "tmp": "tmp/p-cancelable_0.5.0_1530685295652_0.4673471413509742"
486 },
487 "_hasShrinkwrap": false
488 },
489 "0.5.1": {
490 "name": "p-cancelable",
491 "version": "0.5.1",
492 "description": "Create a promise that can be canceled",
493 "license": "MIT",
494 "repository": {
495 "type": "git",
496 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
497 },
498 "author": {
499 "name": "Sindre Sorhus",
500 "email": "[email protected]",
501 "url": "sindresorhus.com"
502 },
503 "engines": {
504 "node": ">=6"
505 },
506 "scripts": {
507 "test": "xo && ava"
508 },
509 "keywords": [
510 "promise",
511 "cancelable",
512 "cancel",
513 "canceled",
514 "canceling",
515 "cancellable",
516 "cancellation",
517 "abort",
518 "abortable",
519 "aborting",
520 "cleanup",
521 "task",
522 "token",
523 "async",
524 "function",
525 "await",
526 "promises",
527 "bluebird"
528 ],
529 "devDependencies": {
530 "ava": "*",
531 "delay": "^3.0.0",
532 "promise.prototype.finally": "^3.1.0",
533 "xo": "^0.23.0"
534 },
535 "gitHead": "b7e75aa16c846286e7426b31d659dd1a6da09fb5",
536 "bugs": {
537 "url": "https://github.com/sindresorhus/p-cancelable/issues"
538 },
539 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
540 "_id": "[email protected]",
541 "_npmVersion": "5.6.0",
542 "_nodeVersion": "8.11.4",
543 "_npmUser": {
544 "name": "sindresorhus",
545 "email": "[email protected]"
546 },
547 "dist": {
548 "integrity": "sha512-vkOBXQgQb03QTOoMeeB5/uS2W3iafXzQLaIh7ChHjEb8DDT06sWJizhdOACL1Sittl5dFqsyumJ4rD1WUF8Isw==",
549 "shasum": "b797a33c43c645cd70d5a838b1d25352b9e29e75",
550 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.5.1.tgz",
551 "fileCount": 4,
552 "unpackedSize": 7724,
553 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJblpyOCRA9TVsSAnZWagAAmAoP/j2qfNZtIo31F3s2LOlM\npcy5ZwceNtPlth0py0LHXkOnMwBguQ3U74qoqrogLOwnEaf+Uo4n4NMwJ9A0\nHyvjK4FTp/vawWvyOAYdhfUnspYHGfUVN3wVGR+BOliV+i6axeZuVgK2W9WX\nlxHVdfm8lhcaxOO8b42iamCWTjcASlFTqvNUzQbW5jT8LLw/Fvj4o+F9dKmE\nM4RmIzfXmvY/wNJrDgOVuy1mM8Tg6enOBIaK1yLCVcBnWZtbm7C24CbUkmxO\n0aOBiO4ATJ3ZtzbTks0egtWBYCt72wCIyyCVrYn7NeOKqeSUgRbHRxlcZshJ\nKJ0PJHfCezHssGBh6TIgIAL/lD77RK3i8tqriBLaIxxy01as6PqT+FjHfrhE\nEHyplFkSBXOCGiB53WkX4h2ghBZg8uI2znEMoz5RIqAtaupK8YDz7bRQUK7Z\ndyrpdfIVLAlL2egLOrU0PDFAbzGYbyjIHObd7R01z0aSS+UgwByU2Hu5p2wu\n8HNx6uMMM6xM9yACrpsZjkMybGVzej5MaeLpg2m0m6i6Mh/Gry4L03JN5kbw\nrUlx6Rnr0MGuuzulMc3sft/6zs8zL3KEYPRQWySlkvt5E171QM0NdNHywN4v\nTrajXow63H/Lw6gjGtxgpZlhFwbuOUUijhN192r1LU/F+sD7PkiXCjS87NZZ\ncL7a\r\n=DMF0\r\n-----END PGP SIGNATURE-----\r\n"
554 },
555 "maintainers": [
556 {
557 "name": "sindresorhus",
558 "email": "[email protected]"
559 }
560 ],
561 "directories": {},
562 "_npmOperationalInternal": {
563 "host": "s3://npm-registry-packages",
564 "tmp": "tmp/p-cancelable_0.5.1_1536597133529_0.9791231164444081"
565 },
566 "_hasShrinkwrap": false
567 },
568 "1.0.0": {
569 "name": "p-cancelable",
570 "version": "1.0.0",
571 "description": "Create a promise that can be canceled",
572 "license": "MIT",
573 "repository": {
574 "type": "git",
575 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
576 },
577 "author": {
578 "name": "Sindre Sorhus",
579 "email": "[email protected]",
580 "url": "sindresorhus.com"
581 },
582 "engines": {
583 "node": ">=6"
584 },
585 "scripts": {
586 "test": "xo && ava"
587 },
588 "keywords": [
589 "promise",
590 "cancelable",
591 "cancel",
592 "canceled",
593 "canceling",
594 "cancellable",
595 "cancellation",
596 "abort",
597 "abortable",
598 "aborting",
599 "cleanup",
600 "task",
601 "token",
602 "async",
603 "function",
604 "await",
605 "promises",
606 "bluebird"
607 ],
608 "devDependencies": {
609 "ava": "^0.25.0",
610 "delay": "^4.1.0",
611 "promise.prototype.finally": "^3.1.0",
612 "xo": "^0.23.0"
613 },
614 "gitHead": "354c4000c3b7602faa601e7e060a05d581b89419",
615 "bugs": {
616 "url": "https://github.com/sindresorhus/p-cancelable/issues"
617 },
618 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
619 "_id": "[email protected]",
620 "_npmVersion": "6.4.1",
621 "_nodeVersion": "8.12.0",
622 "_npmUser": {
623 "name": "sindresorhus",
624 "email": "[email protected]"
625 },
626 "dist": {
627 "integrity": "sha512-USgPoaC6tkTGlS831CxsVdmZmyb8tR1D+hStI84MyckLOzfJlYQUweomrwE3D8T7u5u5GVuW064LT501wHTYYA==",
628 "shasum": "07e9c6d22c31f9c6784cb4f1e1454a79b6d9e2d6",
629 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.0.0.tgz",
630 "fileCount": 4,
631 "unpackedSize": 7859,
632 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbzXxwCRA9TVsSAnZWagAA+pcP/j/rFF2dyPsgk5AoA0Iv\nlemfjn4JasBh9DSXOzLG5PRKwwQhq1ABbIOgScGQQzIStQPRccVOguNYvNnI\nYxqBY+SOd9gUEoB7bDBLLMn+Ein7fa9yfzR4+skCD+8FdYrq+upXT6OueRtu\n3VoymSyDf6lfl2DQ+zvii/ZzP4gVPFEwtjBAMlxUciQflNn0PkfxHLEgSgzd\naosWznFKQXDSTYWq1K6U/6rX+kL0eGfFbCD6usiVBrnV4nKAqfoJNF2l8C90\nOPKDFDpIC8pq7mo8K8uIoV2+/vggq+7QzNzEzaVvSkqt1Jvebp6NWT6h+rVA\nygZfxul30f60Nm8UYrF5ph6Ve/6agdmj5CUiRZe62RYlYexzoJX/vkNfRHNA\nigRgmQePSRbfFiosv7wrlWlKlJPzEGn2FussbaHL96ygM27G3bArbCtA0Rxt\n2poS21agi3L1LONuuBG4/8WpcJEcZg5UkIvdh1B/92XSSbx7dyl9wSgf5/Jt\nT9WV6x3NmNjZc0RzmPtVlx7+xJ19ffNaCgUkKwJSHtzk7/vUlyEem4Avv3Pv\nOHdHj1pxSee+XKlqmJWpggPdjxMtkl4WQrZRGYdOheeZ9zK7+esniT//9P+d\nlbY15NCLPm6poc1M8rQhG85lnE8EFDvh4B8WTU6eSCQF/8dyK7N2o43vbV7X\n0wK+\r\n=v59/\r\n-----END PGP SIGNATURE-----\r\n"
633 },
634 "maintainers": [
635 {
636 "name": "sindresorhus",
637 "email": "[email protected]"
638 }
639 ],
640 "directories": {},
641 "_npmOperationalInternal": {
642 "host": "s3://npm-registry-packages",
643 "tmp": "tmp/p-cancelable_1.0.0_1540193391787_0.31877812620970536"
644 },
645 "_hasShrinkwrap": false
646 },
647 "1.1.0": {
648 "name": "p-cancelable",
649 "version": "1.1.0",
650 "description": "Create a promise that can be canceled",
651 "license": "MIT",
652 "repository": {
653 "type": "git",
654 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
655 },
656 "author": {
657 "name": "Sindre Sorhus",
658 "email": "[email protected]",
659 "url": "sindresorhus.com"
660 },
661 "engines": {
662 "node": ">=6"
663 },
664 "scripts": {
665 "test": "xo && ava && tsd-check"
666 },
667 "keywords": [
668 "promise",
669 "cancelable",
670 "cancel",
671 "canceled",
672 "canceling",
673 "cancellable",
674 "cancellation",
675 "abort",
676 "abortable",
677 "aborting",
678 "cleanup",
679 "task",
680 "token",
681 "async",
682 "function",
683 "await",
684 "promises",
685 "bluebird"
686 ],
687 "devDependencies": {
688 "ava": "^1.3.1",
689 "delay": "^4.1.0",
690 "promise.prototype.finally": "^3.1.0",
691 "tsd-check": "^0.3.0",
692 "xo": "^0.24.0"
693 },
694 "gitHead": "8746e2a93a925e4e28a7848b6e08cad799f33ddd",
695 "bugs": {
696 "url": "https://github.com/sindresorhus/p-cancelable/issues"
697 },
698 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
699 "_id": "[email protected]",
700 "_nodeVersion": "8.15.0",
701 "_npmVersion": "6.8.0",
702 "_npmUser": {
703 "name": "sindresorhus",
704 "email": "[email protected]"
705 },
706 "dist": {
707 "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
708 "shasum": "d078d15a3af409220c886f1d9a0ca2e441ab26cc",
709 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
710 "fileCount": 5,
711 "unpackedSize": 12515,
712 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcgiscCRA9TVsSAnZWagAAlT4P/RRYuvZxdtzqjQ1Qne9s\nN9IfUkgrXB8HDImsX3t6rVchQIsLB1FRr0K2IT8ORf2WFTNUDQ3h9GxgMRNv\nMP5jQpVwTsN2ZR+hBp74PG+600x0eTTyVZO6L6yUo4YtazFssaLT0bMvSYZx\nAIP48RG2D2CaS7xo3fd2dQjXC2EtgmIGprUTUQVHByd/mIeyr4UV5cMywpJF\nTrVSX5hD/ZG+r1q4dNJ31piAyAK925gkMOOPlpBn9pljN57FB7uOukS/e2FX\nzmMzYhFU1AkTZmhbiQgon7kb7XGHC1R3KPTuE1/boB0rLZkQGBrEy8taKxXg\ncJ8q5Lgn8XhFl+Ou1t2aC1CelBXn0yWA+nBSsE1UyqS+cblw2HoPJOB0vt9N\noSWgcxAB2Tpkk0xsuOIcP/Y1Dan+Py6uO3IfC7PEydt7EFap9JJAL0R0Wnxw\nf+Ht0OoteCovHg2Yumdqui39yNuHwX8IxmyJWizCFT0Qhr5pUhdIusOoWx45\nVAqe5XGsIIosoXpW760u9iPGnlMGx3qul2zwLysDk+kw7czBZvmzNHGe4F03\n+0GF5x+xi5YRVqauLPmJc+2BesAoszit0FJ0fCbc6+krMlC0sD4bxxeTOJ7o\nP8Vqan2Z9DrV38av6En+ys8Zs+NRSESZRng6wAP3KGqZH13KfueDIB5TfLU/\nsPQG\r\n=uzFX\r\n-----END PGP SIGNATURE-----\r\n"
713 },
714 "maintainers": [
715 {
716 "name": "sindresorhus",
717 "email": "[email protected]"
718 }
719 ],
720 "directories": {},
721 "_npmOperationalInternal": {
722 "host": "s3://npm-registry-packages",
723 "tmp": "tmp/p-cancelable_1.1.0_1552034587600_0.8347780998024625"
724 },
725 "_hasShrinkwrap": false
726 },
727 "2.0.0": {
728 "name": "p-cancelable",
729 "version": "2.0.0",
730 "description": "Create a promise that can be canceled",
731 "license": "MIT",
732 "repository": {
733 "type": "git",
734 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
735 },
736 "author": {
737 "name": "Sindre Sorhus",
738 "email": "[email protected]",
739 "url": "sindresorhus.com"
740 },
741 "engines": {
742 "node": ">=8"
743 },
744 "scripts": {
745 "test": "xo && ava && tsd"
746 },
747 "keywords": [
748 "promise",
749 "cancelable",
750 "cancel",
751 "canceled",
752 "canceling",
753 "cancellable",
754 "cancellation",
755 "abort",
756 "abortable",
757 "aborting",
758 "cleanup",
759 "task",
760 "token",
761 "async",
762 "function",
763 "await",
764 "promises",
765 "bluebird"
766 ],
767 "devDependencies": {
768 "ava": "^1.4.1",
769 "delay": "^4.1.0",
770 "promise.prototype.finally": "^3.1.0",
771 "tsd": "^0.7.1",
772 "xo": "^0.24.0"
773 },
774 "gitHead": "5bcb7bcf966fc416755b50c24c4d7eb2fbf44b0e",
775 "bugs": {
776 "url": "https://github.com/sindresorhus/p-cancelable/issues"
777 },
778 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
779 "_id": "[email protected]",
780 "_nodeVersion": "8.15.0",
781 "_npmVersion": "6.9.0",
782 "_npmUser": {
783 "name": "sindresorhus",
784 "email": "[email protected]"
785 },
786 "dist": {
787 "integrity": "sha512-wvPXDmbMmu2ksjkB4Z3nZWTSkJEb9lqVdMaCKpZUGJG9TMiNp9XcbG3fn9fPKjem04fJMJnXoyFPk2FmgiaiNg==",
788 "shasum": "4a3740f5bdaf5ed5d7c3e34882c6fb5d6b266a6e",
789 "tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.0.0.tgz",
790 "fileCount": 5,
791 "unpackedSize": 12795,
792 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoRy4CRA9TVsSAnZWagAA1KYP/iZN1N2lQelTHAi8CMUK\np4nnbIq/6g/2rJddpmptDgiPRdV24nqonvc+6NRC7oFRzFfdyWqwh6PYyHDo\nTckiL/+1mVtwh6g61dyX6X3ddOIwfUSjxMdCAsdw4lFUknH9oANotcwuYEhH\ni/h+jiNQvXA2FjpeFy7uNAbx5nMCn5RAGVxXuZlnh+5zA/0RoAzKD2A1UbPm\nFHYM0eVyjhggG0dWO12doO2WjrIVAZHJ3Q/pYr6s5e02/ZUXeihaBlzHyWNJ\ngqQpyiDRwF7FpHLx6h6Hn1zZu45Udq9FyAC+Mzx0syd5iLTH/bdQrSJwmnkz\ntY9ygsgWZ9WhsO0CPe7A6Nb71ZT33BeqMsRswxw8lThB98yM7bqTxWEqEBq0\nUtnBK9DxTDW5a1mBdyMwzpe2mxcaLwjsSFZOKLIDOQqDWMN94yH/JgU0o2Nb\n9wYeBFqPYkCu2Xm3uhNdaaC3EVGy5USc5XbyXjNDfkeueYfyNxpaudWITcQM\ng6c6iRLtkbtWSVDA0hTGxGMwnLEaORa1EL7wmyg4tZwcafOyHF6HY2yaloI4\nPPTCJagqbqPPiX8Ze5frad0F+s+wQRFX32YrWWl80G83QGphwBBwF9sCMrKw\nQGymS1nBIo23PtJkKX3gtLetw390gBBtiicJ6AAZvnMG/EAeFMgluuxiCa6o\noOC3\r\n=Gugh\r\n-----END PGP SIGNATURE-----\r\n"
793 },
794 "maintainers": [
795 {
796 "name": "sindresorhus",
797 "email": "[email protected]"
798 }
799 ],
800 "directories": {},
801 "_npmOperationalInternal": {
802 "host": "s3://npm-registry-packages",
803 "tmp": "tmp/p-cancelable_2.0.0_1554062519912_0.7909646907529038"
804 },
805 "_hasShrinkwrap": false
806 }
807 },
808 "readme": "# p-cancelable [![Build Status](https://travis-ci.org/sindresorhus/p-cancelable.svg?branch=master)](https://travis-ci.org/sindresorhus/p-cancelable)\n\n> Create a promise that can be canceled\n\nUseful for animation, loading resources, long-running async computations, async iteration, etc.\n\n\n## Install\n\n```\n$ npm install p-cancelable\n```\n\n\n## Usage\n\n```js\nconst PCancelable = require('p-cancelable');\n\nconst cancelablePromise = new PCancelable((resolve, reject, onCancel) => {\n\tconst worker = new SomeLongRunningOperation();\n\n\tonCancel(() => {\n\t\tworker.close();\n\t});\n\n\tworker.on('finish', resolve);\n\tworker.on('error', reject);\n});\n\n(async () => {\n\ttry {\n\t\tconsole.log('Operation finished successfully:', await cancelablePromise);\n\t} catch (error) {\n\t\tif (cancelablePromise.isCanceled) {\n\t\t\t// Handle the cancelation here\n\t\t\tconsole.log('Operation was canceled');\n\t\t\treturn;\n\t\t}\n\n\t\tthrow error;\n\t}\n})();\n\n// Cancel the operation after 10 seconds\nsetTimeout(() => {\n\tcancelablePromise.cancel('Unicorn has changed its color');\n}, 10000);\n```\n\n\n## API\n\n### new PCancelable(executor)\n\nSame as the [`Promise` constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise), but with an appended `onCancel` parameter in `executor`.<br>\nCancelling will reject the promise with `PCancelable.CancelError`. To avoid that, set `onCancel.shouldReject` to `false`.\n\n```js\nconst PCancelable = require('p-cancelable');\n\nconst cancelablePromise = new PCancelable((resolve, reject, onCancel) => {\n\tconst job = new Job();\n\n\tonCancel.shouldReject = false;\n\tonCancel(() => {\n\t\tjob.stop();\n\t});\n\n\tjob.on('finish', resolve);\n});\n\ncancelablePromise.cancel(); // Doesn't throw an error\n```\n\n`PCancelable` is a subclass of `Promise`.\n\n#### onCanceled(fn)\n\nType: `Function`\n\nAccepts a function that is called when the promise is canceled.\n\nYou're not required to call this function. You can call this function multiple times to add multiple cancel handlers.\n\n### PCancelable#cancel([reason])\n\nType: `Function`\n\nCancel the promise and optionally provide a reason.\n\nThe cancellation is synchronous. Calling it after the promise has settled or multiple times does nothing.\n\n### PCancelable#isCanceled\n\nType: `boolean`\n\nWhether the promise is canceled.\n\n### PCancelable.CancelError\n\nType: `Error`\n\nRejection reason when `.cancel()` is called.\n\nIt includes a `.isCanceled` property for convenience.\n\n### PCancelable.fn(fn)\n\nConvenience method to make your promise-returning or async function cancelable.\n\nThe function you specify will have `onCancel` appended to its parameters.\n\n```js\nconst PCancelable = require('p-cancelable');\n\nconst fn = PCancelable.fn((input, onCancel) => {\n\tconst job = new Job();\n\n\tonCancel(() => {\n\t\tjob.cleanup();\n\t});\n\n\treturn job.start(); //=> Promise\n});\n\nconst cancelablePromise = fn('input'); //=> PCancelable\n\n// …\n\ncancelablePromise.cancel();\n```\n\n\n## FAQ\n\n### Cancelable vs. Cancellable\n\n[In American English, the verb cancel is usually inflected canceled and canceling—with one l.](http://grammarist.com/spelling/cancel/)<br>Both a [browser API](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable) and the [Cancelable Promises proposal](https://github.com/tc39/proposal-cancelable-promises) use this spelling.\n\n### What about the official [Cancelable Promises proposal](https://github.com/tc39/proposal-cancelable-promises)?\n\n~~It's still an early draft and I don't really like its current direction. It complicates everything and will require deep changes in the ecosystem to adapt to it. And the way you have to use cancel tokens is verbose and convoluted. I much prefer the more pragmatic and less invasive approach in this module.~~ The proposal was withdrawn.\n\n\n## Related\n\n- [p-progress](https://github.com/sindresorhus/p-progress) - Create a promise that reports progress\n- [p-lazy](https://github.com/sindresorhus/p-lazy) - Create a lazy promise that defers execution until `.then()` or `.catch()` is called\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
809 "maintainers": [
810 {
811 "name": "sindresorhus",
812 "email": "[email protected]"
813 }
814 ],
815 "time": {
816 "modified": "2019-03-31T20:02:02.855Z",
817 "created": "2016-11-28T10:56:08.946Z",
818 "0.1.0": "2016-11-28T10:56:08.946Z",
819 "0.2.0": "2017-05-05T05:39:17.492Z",
820 "0.3.0": "2017-06-30T15:48:55.134Z",
821 "0.4.0": "2018-03-06T15:01:51.923Z",
822 "0.4.1": "2018-04-01T11:22:59.190Z",
823 "0.5.0": "2018-07-04T06:21:35.707Z",
824 "0.5.1": "2018-09-10T16:32:13.688Z",
825 "1.0.0": "2018-10-22T07:29:51.952Z",
826 "1.1.0": "2019-03-08T08:43:07.840Z",
827 "2.0.0": "2019-03-31T20:02:00.172Z"
828 },
829 "homepage": "https://github.com/sindresorhus/p-cancelable#readme",
830 "keywords": [
831 "promise",
832 "cancelable",
833 "cancel",
834 "canceled",
835 "canceling",
836 "cancellable",
837 "cancellation",
838 "abort",
839 "abortable",
840 "aborting",
841 "cleanup",
842 "task",
843 "token",
844 "async",
845 "function",
846 "await",
847 "promises",
848 "bluebird"
849 ],
850 "repository": {
851 "type": "git",
852 "url": "git+https://github.com/sindresorhus/p-cancelable.git"
853 },
854 "author": {
855 "name": "Sindre Sorhus",
856 "email": "[email protected]",
857 "url": "sindresorhus.com"
858 },
859 "bugs": {
860 "url": "https://github.com/sindresorhus/p-cancelable/issues"
861 },
862 "license": "MIT",
863 "readmeFilename": "readme.md",
864 "users": {
865 "rocket0191": true,
866 "drewigg": true
867 }
868 }