{
"_id": "p-cancelable",
"_rev": "12-d71b5c3598412c28c50687609c2b907a",
"name": "p-cancelable",
"description": "Create a promise that can be canceled",
"dist-tags": {
"latest": "2.0.0"
},
"versions": {
"0.1.0": {
"name": "p-cancelable",
"version": "0.1.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^1.3.1",
"xo": "*"
},
"xo": {
"esnext": true
},
"gitHead": "5e1f5b4d5b8b0f7549c87dbae0417c4afe9c6d8f",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.1.0",
"_shasum": "7a551d2b87cd825e927683ab996b13abdbd53ed2",
"_from": ".",
"_npmVersion": "2.15.11",
"_nodeVersion": "4.6.2",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"shasum": "7a551d2b87cd825e927683ab996b13abdbd53ed2",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.1.0.tgz"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/p-cancelable-0.1.0.tgz_1480330568731_0.36330019892193377"
},
"directories": {}
},
"0.2.0": {
"name": "p-cancelable",
"version": "0.2.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"xo": "*"
},
"gitHead": "3da2d57d79c0ba9c68db62822cae124dcc5a0d9f",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.2.0",
"_shasum": "3152f4f30be7606b60ebfe8bb93b3fdf69085e46",
"_from": ".",
"_npmVersion": "4.2.0",
"_nodeVersion": "7.9.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"shasum": "3152f4f30be7606b60ebfe8bb93b3fdf69085e46",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.2.0.tgz"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/p-cancelable-0.2.0.tgz_1493962754416_0.057322570122778416"
},
"directories": {}
},
"0.3.0": {
"name": "p-cancelable",
"version": "0.3.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"xo": "*"
},
"gitHead": "0ea492a3a02e5b8bb984b7a7f1db60a31f66da0b",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.3.0",
"_npmVersion": "5.0.0",
"_nodeVersion": "8.0.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==",
"shasum": "b9e123800bcebb7ac13a479be195b507b98d30fa",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable-0.3.0.tgz_1498837734166_0.038153667002916336"
},
"directories": {}
},
"0.4.0": {
"name": "p-cancelable",
"version": "0.4.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"xo": "*"
},
"gitHead": "172141757dff0acaf3d6a93473c1ba3c2e78a7aa",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.4.0",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.9.4",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-/AodqPe1y/GYbhSlnMjxukLGQfQIgsmjSy2CXCNB96kg4ozKvmlovuHEKICToOO/yS3LLWgrWI1dFtFfrePS1g==",
"shasum": "bcb41d35bf6097fc4367a065b6eb84b9b124eff0",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.0.tgz",
"fileCount": 4,
"unpackedSize": 6866
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_0.4.0_1520348511879_0.719711445299539"
},
"_hasShrinkwrap": false
},
"0.4.1": {
"name": "p-cancelable",
"version": "0.4.1",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^2.0.0",
"promise.prototype.finally": "^3.1.0",
"xo": "*"
},
"gitHead": "50d66ce7228c23511a754a03d52aebf55e0229b1",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.4.1",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.10.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==",
"shasum": "35f363d67d52081c8d9585e37bcceb7e0bbcb2a0",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",
"fileCount": 4,
"unpackedSize": 6976
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_0.4.1_1522581779099_0.05425666370241489"
},
"_hasShrinkwrap": false
},
"0.5.0": {
"name": "p-cancelable",
"version": "0.5.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js"
],
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^3.0.0",
"promise.prototype.finally": "^3.1.0",
"xo": "*"
},
"gitHead": "54b12bba45d3b38180f7a490bc2bc24e384612ac",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.5.0",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.11.2",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-UTykUaG4vhPAMNi1/GZKGdCNDj4qGnq6taAjnOG0KCx5Fva3b1vtskXtagAePmgIhUrdcoDGEvAQIHaSPXEZWg==",
"shasum": "65b8dfbcacf27983421ee4c044ebf5e35816c7c8",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.5.0.tgz",
"fileCount": 4,
"unpackedSize": 7032,
"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"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_0.5.0_1530685295652_0.4673471413509742"
},
"_hasShrinkwrap": false
},
"0.5.1": {
"name": "p-cancelable",
"version": "0.5.1",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
},
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "*",
"delay": "^3.0.0",
"promise.prototype.finally": "^3.1.0",
"xo": "^0.23.0"
},
"gitHead": "b7e75aa16c846286e7426b31d659dd1a6da09fb5",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@0.5.1",
"_npmVersion": "5.6.0",
"_nodeVersion": "8.11.4",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-vkOBXQgQb03QTOoMeeB5/uS2W3iafXzQLaIh7ChHjEb8DDT06sWJizhdOACL1Sittl5dFqsyumJ4rD1WUF8Isw==",
"shasum": "b797a33c43c645cd70d5a838b1d25352b9e29e75",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.5.1.tgz",
"fileCount": 4,
"unpackedSize": 7724,
"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"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_0.5.1_1536597133529_0.9791231164444081"
},
"_hasShrinkwrap": false
},
"1.0.0": {
"name": "p-cancelable",
"version": "1.0.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
},
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "^0.25.0",
"delay": "^4.1.0",
"promise.prototype.finally": "^3.1.0",
"xo": "^0.23.0"
},
"gitHead": "354c4000c3b7602faa601e7e060a05d581b89419",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@1.0.0",
"_npmVersion": "6.4.1",
"_nodeVersion": "8.12.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-USgPoaC6tkTGlS831CxsVdmZmyb8tR1D+hStI84MyckLOzfJlYQUweomrwE3D8T7u5u5GVuW064LT501wHTYYA==",
"shasum": "07e9c6d22c31f9c6784cb4f1e1454a79b6d9e2d6",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.0.0.tgz",
"fileCount": 4,
"unpackedSize": 7859,
"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"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_1.0.0_1540193391787_0.31877812620970536"
},
"_hasShrinkwrap": false
},
"1.1.0": {
"name": "p-cancelable",
"version": "1.1.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=6"
},
"scripts": {
"test": "xo && ava && tsd-check"
},
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "^1.3.1",
"delay": "^4.1.0",
"promise.prototype.finally": "^3.1.0",
"tsd-check": "^0.3.0",
"xo": "^0.24.0"
},
"gitHead": "8746e2a93a925e4e28a7848b6e08cad799f33ddd",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@1.1.0",
"_nodeVersion": "8.15.0",
"_npmVersion": "6.8.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==",
"shasum": "d078d15a3af409220c886f1d9a0ca2e441ab26cc",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
"fileCount": 5,
"unpackedSize": 12515,
"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"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_1.1.0_1552034587600_0.8347780998024625"
},
"_hasShrinkwrap": false
},
"2.0.0": {
"name": "p-cancelable",
"version": "2.0.0",
"description": "Create a promise that can be canceled",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"devDependencies": {
"ava": "^1.4.1",
"delay": "^4.1.0",
"promise.prototype.finally": "^3.1.0",
"tsd": "^0.7.1",
"xo": "^0.24.0"
},
"gitHead": "5bcb7bcf966fc416755b50c24c4d7eb2fbf44b0e",
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"_id": "p-cancelable@2.0.0",
"_nodeVersion": "8.15.0",
"_npmVersion": "6.9.0",
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"dist": {
"integrity": "sha512-wvPXDmbMmu2ksjkB4Z3nZWTSkJEb9lqVdMaCKpZUGJG9TMiNp9XcbG3fn9fPKjem04fJMJnXoyFPk2FmgiaiNg==",
"shasum": "4a3740f5bdaf5ed5d7c3e34882c6fb5d6b266a6e",
"tarball": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.0.0.tgz",
"fileCount": 5,
"unpackedSize": 12795,
"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"
},
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"directories": {},
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/p-cancelable_2.0.0_1554062519912_0.7909646907529038"
},
"_hasShrinkwrap": false
}
},
"readme": "# p-cancelable [](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`.
\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/)
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",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"time": {
"modified": "2019-03-31T20:02:02.855Z",
"created": "2016-11-28T10:56:08.946Z",
"0.1.0": "2016-11-28T10:56:08.946Z",
"0.2.0": "2017-05-05T05:39:17.492Z",
"0.3.0": "2017-06-30T15:48:55.134Z",
"0.4.0": "2018-03-06T15:01:51.923Z",
"0.4.1": "2018-04-01T11:22:59.190Z",
"0.5.0": "2018-07-04T06:21:35.707Z",
"0.5.1": "2018-09-10T16:32:13.688Z",
"1.0.0": "2018-10-22T07:29:51.952Z",
"1.1.0": "2019-03-08T08:43:07.840Z",
"2.0.0": "2019-03-31T20:02:00.172Z"
},
"homepage": "https://github.com/sindresorhus/p-cancelable#readme",
"keywords": [
"promise",
"cancelable",
"cancel",
"canceled",
"canceling",
"cancellable",
"cancellation",
"abort",
"abortable",
"aborting",
"cleanup",
"task",
"token",
"async",
"function",
"await",
"promises",
"bluebird"
],
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/p-cancelable.git"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/p-cancelable/issues"
},
"license": "MIT",
"readmeFilename": "readme.md",
"users": {
"rocket0191": true,
"drewigg": true
}
}