{"_id":"polyfill-promise","_rev":"27-1a1b79838986eec9a4c937a33e1b0926","name":"polyfill-promise","description":"polyfill standard Promises to old versions of node","dist-tags":{"latest":"4.0.1"},"versions":{"0.0.0":{"name":"polyfill-promise","version":"0.0.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"polyfill-promise@0.0.0","dist":{"shasum":"a2bcdaf278d3568d64e95b6721dbb44aec02108a","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-0.0.0.tgz","integrity":"sha512-we3VNO+irU+gXO/H07ua1i8TDxUPLhxI6XRJ3Mj0b10N7Nv6QNKUXx10yjV7tZPcCYgpVJRtPN81OuZM8z6y5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0G3MPzDsa93lz2tD6ruLcw7oVN73QdXTo0gyg+R1EPAIgGzL7izdDWWL+KkKPxgKLY4juOG2XYg2qzS9twoYXVg0="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"0.1.0":{"name":"polyfill-promise","version":"0.1.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"polyfill-promise@0.1.0","dist":{"shasum":"d36e97b7390fdcd64cf5cae358e9d7f9ce0bd914","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-0.1.0.tgz","integrity":"sha512-1pPMPiBorYVITBHXJ36Mk07fZUsfyux6txU9iPQd+dw1YssnSb8uM+eljDEU5o4XwVP5tHl6DjuEemg4CAugww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8JeYxv5hd3t3bag0EjoxyWpeGS3LLW2NLTEkCrlDzcAiEA3I3GbnW+7HGfYQd7coZblbnSaDLpmsLT7ip5GP//Dr8="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"0.1.1":{"name":"polyfill-promise","version":"0.1.1","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","dependencies":{"bluebird":"^1.2.4"},"_id":"polyfill-promise@0.1.1","dist":{"shasum":"07ec99130b2b4ff4121be59ee485746f9c79bc67","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-0.1.1.tgz","integrity":"sha512-9kfyrd2IgJuaYHRC291BWb4devZomcgZpUB6ib0jSpv5s9aEsA6X/cQL56n+W4PWzLkL+NaMlZRS7wTB3RJhGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCuu7qDSFIrTRkGzzG9ZiVRMgaDB6zwvMihWtRsC50XYAIgGzhfAPvZAQYExCIJX1gVafJ6a+bdFrOaj9aoSB0qn1c="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"0.1.2":{"name":"polyfill-promise","version":"0.1.2","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","dependencies":{"bluebird":"^1.2.4"},"_id":"polyfill-promise@0.1.2","dist":{"shasum":"8323e95635aa286d3eb507cd5479989a3774082f","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-0.1.2.tgz","integrity":"sha512-c+8MMO1qymPmg6FQOcfLPvvKHRoMd+SeSNhGwNHrYfYof3CcHNAqoHlkKD0SU/kX51TDawW+G0NS0dB19lN1Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEluRNoTkh8p0eY9h22Kf5lGI/34lfyDVe9ZRSFvDey2AiBSU07bmL4j5oSVhUtXa5kKC0M446Jnj2aOoILZ/m+zcw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"0.1.3":{"name":"polyfill-promise","version":"0.1.3","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^1.2.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@0.1.3","dist":{"shasum":"71e6914dfed8413071f37ac87451067de8ae1fa9","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-0.1.3.tgz","integrity":"sha512-9eqDdkUIbIfE80FKAYAOKahWdebXYkTjV19CjgxHb8Q53so3RDH7rYn+129binoMQDjUNj84On/HeibOv5MEZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBigcVZFbivO85NzlQ+xSA5DeZV+vsV6kXyDpEpJAISIAiABeX+XozUe27QV8I6xcNG+jQhWxlsZquzN/rxsV0FNDQ=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"1.0.0":{"name":"polyfill-promise","version":"1.0.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^1.2.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@1.0.0","dist":{"shasum":"f4a1340fe4386bbd0171bad90575778aa1cb64ae","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-1.0.0.tgz","integrity":"sha512-FGdiXXdqeaHy9Pmj30pLjNabLVGl7GNGpZISDGhZBASYrHh8axi/OMCHckRSr02IUK+50b/PS6iMLtNahRxeCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkB7A3nYUgL6F1+C4KkytdXGypD7R60kCfYnxtZQ3P7AIhAPQqRCZnTZRC087WTn94BSbI9VMESwUWins6HWLgor0j"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"2.0.0":{"name":"polyfill-promise","version":"2.0.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^1.2.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@2.0.0","dist":{"shasum":"f0007808dae49b9191fef00e27ab05838661a05e","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-2.0.0.tgz","integrity":"sha512-eeVZ7BoPtXmhXX++EgYEZUnLz7eFPzcJ4R/3+6PTw7/7JxnbFkMOGvGWygFGwni1dMu5BJMlF6pA9ToJWqIHgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlMAVa8v3TH331XhApQuJ5mbnt8Sj4S/UbhY00Gnp6pAiEA+B+reELsJ7aAAR/K3LdtkfTSRco490LZYy42LGiiMV0="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"2.2.0":{"name":"polyfill-promise","version":"2.2.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^2.6.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@2.2.0","dist":{"shasum":"c1d3a0ab6481ac37d01e7c7babe4eaa29a9e1f67","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-2.2.0.tgz","integrity":"sha512-SGoWsLRqf1uTvxddDdoW7Y45dLrNrJ/pLmd2wfKWsqC+gmCqAfT8bNE/uDW1BvImCDkB8Yl3ILeMe+nQhriT7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCewNie5lS87fEr4yYU4K26PWhRHXbwCUZFirRmXPQUzQIgBsOF8ELn8rBVArPogpXn2qEl0xRQi6Pvked5y+wbzHk="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"2.3.0":{"name":"polyfill-promise","version":"2.3.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^2.9.8"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"gitHead":"13eb00dd78700384ee17f609d94debf6092285d1","bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@2.3.0","_shasum":"9da4bcb64f7b14ed4fa13f0d7a3a22ef2519761b","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"dist":{"shasum":"9da4bcb64f7b14ed4fa13f0d7a3a22ef2519761b","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-2.3.0.tgz","integrity":"sha512-UrEW41dc9KgZc5wRT1LK3wYjwjL1O9MKhKOBTQZotGalP3Oxr/yAuWqmuAocwhAawALTGmTqxlHf4QpTi+ekmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFLkm4OEyMyXXftQw/5A4/OeAIFwzI+limH7kUMYxbdiAiEAmBkjmRF70BWFRXF7pwAk6S8VTgYSrcu/VrPK5gFSosM="}]},"directories":{}},"3.0.0":{"name":"polyfill-promise","version":"3.0.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^2.9.8"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"gitHead":"e6138e7770f395cad433f75bc54f4c98580f580d","bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@3.0.0","_shasum":"cd0f6fb7f1eaed21bfe4e32bf4512160ba7263b7","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jden","email":"jason@denizac.org"},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"dist":{"shasum":"cd0f6fb7f1eaed21bfe4e32bf4512160ba7263b7","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-3.0.0.tgz","integrity":"sha512-Ld0rdlysuHIKaxi16LnSzGc75HXVOYlEoWVXh4E1p3CqeWIiVDnUKTnixFJBDTRabLF8z4yhtGg0rx40iuEc/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb3kGh+9uGpQHueacokxBaNHWdvzO+U7f7dnwagyUUXgIgDsFj5r78nmcHitmc8+/5Z0mt8tWmA7pPWWZVk1sfwno="}]},"directories":{}},"4.0.0":{"name":"polyfill-promise","version":"4.0.0","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^2.9.13"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0"},"gitHead":"78b580fdf5253bcdf1277e7e0e46c7ef3701c5ad","bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@4.0.0","_shasum":"69bec7df9843591ea75ab31afee9fde5151a7700","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jden","email":"jason@denizac.org"},"dist":{"shasum":"69bec7df9843591ea75ab31afee9fde5151a7700","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-4.0.0.tgz","integrity":"sha512-1oGbA7T/jrvi204Af1dMR0VGizcRnQUh43cCH6P4Zd7izedrnSUOK+kXYLkF70mwXD+0zujDdI816cKRVZ1r8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9bpD7BiYUscsuTyQ/rj1lJFfCeZEu6x5NS5HETvvZlwIhAPjSyqRgNnKNb2uV7gZCQ/5+84cz1doWQiv58WasJath"}]},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}},"4.0.1":{"name":"polyfill-promise","version":"4.0.1","description":"polyfill standard Promises to old versions of node","main":"index.js","scripts":{"test":"mocha"},"author":{"name":"jden","email":"jason@denizac.org"},"repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"license":"ISC","dependencies":{"bluebird":"^2.9.27"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.19.0","standard":"^4.0.1"},"gitHead":"cb8e1fdb946c8afd0b37f4b30c9affd6019948ce","bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"},"homepage":"https://github.com/jden/node-polyfill-promise","_id":"polyfill-promise@4.0.1","_shasum":"f8448dc27c3b967d5f67fc060f56ed64e2286b49","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.36","_npmUser":{"name":"jden","email":"jason@denizac.org"},"dist":{"shasum":"f8448dc27c3b967d5f67fc060f56ed64e2286b49","tarball":"https://registry.npmjs.org/polyfill-promise/-/polyfill-promise-4.0.1.tgz","integrity":"sha512-FUxvBZAq47X+r4YKKoKfGtk4RKUxKqY0Ni0/xBgwr3kutuwZrJBentc0aVbVIT20ybWALH0nyq50aq374zjrCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJ3eEUfjzo2wu88jlLYh/yO5a6EuPrcmCBEi3zuJehYAIgMUo6iCQUiFTeNWl1royRBPkzPlTepJO5cW9DGrVJsQI="}]},"maintainers":[{"name":"jden","email":"jason@denizac.org"}],"directories":{}}},"readme":"# polyfill-promise\n\nUse this to ensure the Promise constructor is available, even in old versions of node (< 0.12) or browsers\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n## usage\n\n```js\nvar Promise = require('polyfill-promise')\n// either native or polyfilled\n\nvar foo = Promise.resolve('foo')\nfoo.then(...)\n```\n\nor\n\n```js\nrequire('polyfill-promise/register')\n// global Promise constructor is now available\nvar foo = Promise.resolve('foo')\nfoo.then(...)\n```\n\n## API\n\n### `Promise.polyfilled : Boolean?`\nIf polyfill is used, this read-only property is set to true. If a native implementation is available, this property is undefined.\n\nadditionally, implements the [Promise api](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). Quick reference:\n\n### `class Promise(factory : (resolve: Function, reject: Function) => void)`\n\nCreates a pending promise. Pass it a `factory` function which wraps the asynchronous operation. `factory` is called with two functions, `reject` and `resolve` which should be called when the asynchronous operation is complete or an exception ocurrs.\n\nExample: delay a value by an amount of time\n```js\nfunction delay(value, timeout) {\n  return new Promise(function (resolve, reject) {\n    setTimeout(function () {\n      resolve(value)\n    }, timeout)\n  })\n}\n```\n\nExample: wrap a node-style callback\n```js\nvar result = new Promise(function (resolve, reject) {\n  asyncFn(function (err, result) {\n    if (err) { reject(err); return }\n    resolve(result)\n  })  \n})\n```\n\n### `Promise.reject(reason?: Value) => Promise`\nCreate a Promise which is immediately rejected with an optional `reason`.\n\n### `Promise.resolve(val?: Value) => Promise`\nCreate a Promise which is immediately resolved with an optional `val`.\n\n### `Promise.all(promises: Array<Promise>) => Promise<Array>`\nReturns a Promise which is resolved when all of the Promises in the `promises` array are resolved, or rejected if any of them is rejected. The resolved value is an Array of the resolved values in the same order.\n\n### `Promise.race(promises: Array<Promise>) => Promise`\nReturns a Promise which is resolved as soon as the first Promise in the `promises` array is resolved, or rejected when the first Promise in the `promises` array is rejected. Since a Promise can only be either resolved or rejected but not both, if one Promise in `promises` is resolved and then another one is rejected, the resulting Promise will still be resolved and will ignore the later rejection.\n\n### `Promise#then(fn?: (Value) => Value, err: (Value) => Value) => Promise`\nChains a function `fn` on the Promise to be evaluated when the Promise is resolved. The return value of `fn` is resolved to a new Promise which allows for chaining and composition.\n\nAn optional second parameter is an error handling function which is called if the Promise is rejected.\n\n### `Promise#catch(err: (Value) => Value) => Promise`\nChains an error handling function to a Promise chain which will be called if a Promise is rejected. Returns a new Promise.\n\n\n## tests\n\n```console\n$ npm test\n```\n\n## contributions\n\nnone yet\n\n## license\nby jden <jason@denizac.org>, ISC license\n","maintainers":[],"time":{"modified":"2022-06-24T06:57:13.522Z","created":"2014-04-17T21:18:57.472Z","0.0.0":"2014-04-17T21:18:57.472Z","0.1.0":"2014-05-01T04:58:07.401Z","0.1.1":"2014-05-01T04:59:32.318Z","0.1.2":"2014-05-01T05:09:37.850Z","0.1.3":"2014-05-21T13:48:29.298Z","1.0.0":"2014-08-20T21:39:38.188Z","2.0.0":"2015-01-13T22:07:05.711Z","2.2.0":"2015-01-13T22:18:26.657Z","2.3.0":"2015-02-11T21:30:52.564Z","3.0.0":"2015-02-12T01:00:21.348Z","4.0.0":"2015-04-28T23:19:33.904Z","4.0.1":"2015-06-10T17:01:23.862Z"},"license":"ISC","readmeFilename":"README.md","homepage":"https://github.com/jden/node-polyfill-promise","repository":{"type":"git","url":"git@github.com:jden/node-polyfill-promise.git"},"author":{"name":"jden","email":"jason@denizac.org"},"bugs":{"url":"https://github.com/jden/node-polyfill-promise/issues"}}