{"name":"parole","version":"2.0.25","description":"Another ES6 promise implementation (compliant with Promises/A+)","main":"dist/cjs/main.js","module":"dist/esm/parole.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git+ssh://git@github.com/kiltjs/parole.git"},"keywords":["promise","polyfill","add-ons","when","es6"],"author":{"name":"Jesús Germade","email":"jesus@germade.es"},"license":"MIT","bugs":{"url":"https://github.com/kiltjs/parole/issues"},"homepage":"https://github.com/kiltjs/parole#readme","devDependencies":{"@types/node":"^18.11.0","@typescript-eslint/eslint-plugin":"^5.40.0","@typescript-eslint/parser":"^5.40.0","esbuild":"^0.15.11","eslint":"8.25.0","eslint-config-standard":"17.0.0","eslint-config-standard-with-typescript":"23.0.0","eslint-plugin-import":"2.26.0","eslint-plugin-n":"^15.3.0","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.0","eslint-plugin-react":"7.31.10","nyc":"^15.1.0","promises-aplus-tests":"^2.1.2","typescript":"^4.8.4"},"dependencies":{},"gitHead":"9aa99bd71e300c7b0d677fcdf02023df435c5cba","_id":"parole@2.0.25","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-uPlhUv82IP+llXvkdvWJA/IdJ5wDQhITNqMmlmHHz3HDNh3y1dPFWetI+TkYLVTvPTSX8YPv9ScgvSU1uhjsiw==","shasum":"daf1f35c972fe648ce35bae8db49cee26a0f68a7","tarball":"http://registry-npm.ywwl.com/parole/download/parole-2.0.25.tgz","fileCount":16,"unpackedSize":29835,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjURzKKv2WWdC5xhjci/8hPB+IQYs/rWLJu5ooSdAeBQIgDrJ8ucqAP2GjlK0+qJ62WuS9IE4ht8Oaic9QgwDASc0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPzE2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp69Q/+MZ5dX3cfHYb6cqj/9aTfjRgXUomDOiQ5gwtSKPnleJ3RCBWq\r\nUYTxajdgpBSvX/bYpR3+wJmmtg2v6RN9eEb/vAPPyTEFHfDQNAtoSHbe2hzg\r\nEuoKyYRL+N57/wXDC8JC2TbFXamGL0na+FQULywLjB6RvvU2Hw+pTIshCGZM\r\nmpE6sT4htPPQPt7kthX7j5+YzWI5UWuqutY9Q/vQ3KNCprG65FwyQs3AW9Ti\r\nl7ECy1CFMS8IKvw1Mt6Vbt4TvGlNUFh5DnP0zPdz6leGkS08gjl0xeHlrkPl\r\nbdjXWL4I35B2+AhrhUpfVBnduKg0M43gy10KX2CfX6KHmuQ2DolH/FELC9bt\r\ncEtApfEUBdz9Hl1iSx+Hx1IeS4uxwjEplCWqikzbHaA90+hO96bALikQcskA\r\nEHBH8Y+W2YAao47kEMbb7urTE5feVmj6IybpvWK5eX/gAR7hJXaJkblPDKKQ\r\nqGHXSzexv5eqyUkMS/hJBleGIP0pog9+UGXbpOGxC6BCDCn4pzdOF4aXnNv+\r\nT0+3LTCwdzkSLdrI3aeBZ7KhxA1brh7Tu1VntKjbyVAv+BJb7Ds4w0PO2sFT\r\nOwG8bwxaYwbcBW1B37bb5x0cepfBTO8WLury/O5dofksR6UaQITyR+JyVf4m\r\nFNmdcnEiLpolkQt1QR5rltJWcewFXLfhWx4=\r\n=ijit\r\n-----END PGP SIGNATURE-----\r\n","size":8311,"noattachment":false,"key":"/parole/-/parole-2.0.25.tgz"},"_npmUser":{"name":"jgermade","email":"jesus@germade.es"},"directories":{},"maintainers":[{"name":"jgermade","email":"jesus@germade.es"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parole_2.0.25_1681862966328_0.03952775774980233"},"_hasShrinkwrap":false,"readme":"\n# Parole\n\n[<img src=\"https://raw.githubusercontent.com/promises-aplus/promises-spec/master/logo.svg\" alt=\"Promises/A+ logo\" width=\"82px\" height=\"82px\" title=\"Promises/A+ 1.0 compliant\" align=\"right\" />](https://promisesaplus.com/)\n\n<!-- [<img src=\"https://promisesaplus.com/assets/logo-small.png\" alt=\"Promises/A+ logo\" title=\"Promises/A+ 1.0 compliant\" align=\"right\" />](https://promisesaplus.com/) -->\n\nAnother ES6 promise implementation ([compliant](https://github.com/promises-aplus/promises-tests) with [Promises/A+](https://github.com/promises-aplus/promises-spec))\n\n[![ᴋɪʟᴛ ᴊs](https://jesus.germade.dev/assets/images/badge-kiltjs.svg)](https://github.com/kiltjs)\n[![npm](https://img.shields.io/npm/v/parole.svg)](https://www.npmjs.com/package/parole)\n[![Build Status](https://cloud.drone.io/api/badges/kiltjs/parole/status.svg)](https://cloud.drone.io/kiltjs/parole)\n[![codecov](https://codecov.io/gh/jgermade/parole/branch/master/graph/badge.svg?token=TA3W7MIMB9)](https://codecov.io/gh/jgermade/parole)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n## Installation\n```.sh\nnpm install parole\n\n# alternatively you can use bower (minified version by default)\nyarn add parole\n```\n\n### ES6 fulfill\n\n> `Parole` implements [ES6 Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) specs\n\nImplements:\n- Promise.prototype.then\n- Promise.prototype.catch\n- Promise.prototype.finally\n\nAlso static methods\n- Promise.resolve\n- Promise.reject\n- Promise.all\n- Promise.allSettled\n- Promise.any\n- Promise.race\n\nIncludes:\n- Promise.defer\n\n``` js\n// parole respects the es6 promise specification\n// you can use parole as global polyfill\n\nif( !window.Promise ) {\n  window.Promise = Parole;\n}\n```\n\n### Example\n``` js\nnew Parole((resolve, reject) => {\n    resolve('gogogo!')\n  })\n\n  .then((result) => {\n    console.log('checkpoint 1', result)\n    throw 'whoops!'\n  })\n\n  .then(\n    (result) => {\n      console.log('checkpoint 2', result)\n    },\n    (result) => {\n      console.log('checkpoint 2.1', result)\n      return new Parole((resolve, reject) => {\n        setTimeout(() => resolve('all right!'), 400)\n      })\n    },\n  )\n\n  .then(\n    (result) => console.log('checkpoint 3', result),\n    (reason) => console.log('checkpoint 3.1', reason),\n  )\n;\n```\n> output\n\n```.sh\ncheckpoint 1 gogogo!\ncheckpoint 2.1 whoops!\n# elapsed 400ms\ncheckpoint 3 all right!\n```\n\n","publish_time":1681862966492,"_cnpm_publish_time":1681862966492,"dist-tags":{"latest":"2.0.28"}}