{"name":"parole","version":"1.1.29","description":"Another ES6 promise implementation (compliant with Promises/A+)","main":"dist/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":{"benchmark":"^2.1.4","chai":"^4.1.2","eslint":"^4.18.0","karma":"^2.0.2","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.1.1","karma-story-reporter":"^0.3.1","mocha":"^5.0.1","p-promise":"^0.5.0","promises-aplus-tests":"^2.1.2","rollup":"^0.63.5","uglify-js":"^3.3.11"},"dependencies":{},"gitHead":"47dadceb0123721a425791c684448e198df183cb","_id":"parole@1.1.29","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"jgermade","email":"jesus@germade.es"},"dist":{"integrity":"sha512-P2lizcyySY8PrIXQEpceJQEqbOXNbnjAsXVj6IvxX3uIC9V7EaBwAxPJ2XzKz7wrr84PPYMTxtXu2rnPnJXzUw==","shasum":"c0875e3bf453cc3ecc02bb8469d218fc4ab4f82b","tarball":"http://registry-npm.ywwl.com/parole/download/parole-1.1.29.tgz","fileCount":25,"unpackedSize":60714,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBmggCRA9TVsSAnZWagAAonYP/jStCRwON+OCnHn7QoBj\nN+5pAcsboJSeR8VJIfmDsLmclAAUQ/gV+7ohyFSwNBkB18tujUZJbRgf22By\npZ+N0xqEOQ0OQEq/7fCkrrs77EFz2g1S4dzffWr41Uh6rXSTWcRtWSlqf0R8\nwNvNR4+3FnuyHGpY442P3g7VLi3amoviUQklygpIoN6mOsJZ5M6fv8n4OLVR\nRz3vb2Hy11FWoIVWSndx0Ncin+Q+Bm7FIHz4ZOSkFlCZVMhXEpGV6gxWNCbv\n1OMKeI563QjBNWPTG+lJL7WD/LnGUkEUpfMskOft/1MgaVF/u9YKv3tBchBu\nfAm6Kh8jGt/0V9F3CKAXah25nlVWNK2Iu1R/pTCodSAOL8Oih0m6jI8r/f+A\n1yJnjoJ5KpTjJ6vWXLLh4leEL5IVPwrYqLZq2/0c6tQVAfEw8t/5bqOqKokO\nRDXnfk38kpgwiOhQ4q5saCEERcxD7K5ZKsuFQZcFpGS62ViSsPWr+6bs2nD6\nNd9GMqT0aNlure1C7po1y0otiUW5tlotXgGzgH6Q14PYEMShgWD+El0fHkms\nm5MvrsEt82TB+WOHPC3mUUBEiGdMEGiBRYAMbI15YYBhhNVzlzuoEoyip6du\nIWPdw8IqT36e8vRcpzrQWrOOMBYksW0mpIuV8XUbqbObGE/NdRYY4rTAUc9X\nhoox\r\n=sJgx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJNrD1abN5+Wc8cXllTnPMT6+wZXYgKC58M4MOjJGqUAiA550ZSJhRrG9E/1U4aDm3Y6N6IcoKolAj5oL80stIuHQ=="}],"size":11809,"noattachment":false,"key":"/parole/-/parole-1.1.29.tgz"},"maintainers":[{"name":"jgermade","email":"jesus@germade.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parole_1.1.29_1543923744088_0.12408238047707276"},"_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":1543923744263,"_cnpm_publish_time":1543923744263,"dist-tags":{"latest":"2.0.28"}}