{"_id":"@d-fischer/promise.allsettled","_rev":"3-ebbf8b09bd5a364c163ebb1f23c1274a","name":"@d-fischer/promise.allsettled","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.0":{"name":"@d-fischer/promise.allsettled","version":"2.0.0","author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"funding":{"url":"https://github.com/sponsors/d-fischer"},"contributors":[{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"}],"description":"ES Proposal spec-compliant shim for Promise.allSettled","license":"MIT","main":"index.js","types":"types","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./package":"./package.json","./package.json":"./package.json","./auto":"./auto.js","./implementation":"./implementation.js","./polyfill":"./polyfill.js","./requirePromise":"./requirePromise.js","./shim":"./shim.js"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run --silent lint && es-shim-api --bound","test":"npm run --silent tests-only","posttest":"npx aud","tests-only":"npm run --silent test:shimmed && npm run --silent test:module && npm run --silent tests:es5","tests:es5":"npm run --silent test:promise-shimmed","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","test:promise-shimmed":"node test/promise-shimmed.js","test:native":"node --harmony-promise-finally test/native","lint":"eslint .","coverage":"covert test/*.js"},"repository":{"type":"git","url":"git://github.com/es-shims/Promise.allSettled.git"},"keywords":["Promise","promises","allsettled","settled","fulfilled","resolved","rejected","promise.allsettled","shim","polyfill","es-shim","API"],"bugs":{"url":"https://github.com/es-shims/promise.allsettled/issues"},"homepage":"https://github.com/es-shims/promise.allsettled#readme","engines":{"node":">= 0.4"},"dependencies":{"array.prototype.map":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.17.4","iterate-value":"^1.0.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.0.2","es6-shim":"^0.35.5","eslint":"^6.7.2","functions-have-names":"^1.2.0","safe-publish-latest":"^1.1.4","tape":"^4.11.0"},"gitHead":"af32ae420c3e05fab7bb69c0befd3d23631c3d6a","_id":"@d-fischer/promise.allsettled@2.0.0","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-kBGmAnl59gkQ95YFGH1lDH4HEhXkIbHu4TaQowLRr6tuZnLx89RjTf9CoAS/QgxQYWXNRSnyAVU/hsHHl4U3fA==","shasum":"c255ef6b99e9b9a48549a39b0d87a540cd764944","tarball":"https://registry.npmjs.org/@d-fischer/promise.allsettled/-/promise.allsettled-2.0.0.tgz","fileCount":28,"unpackedSize":19579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeik+XCRA9TVsSAnZWagAA16wP/2t87eXorhIcBfilC/Ja\nascf6YPJ0KeWX96xLuuT9FGUtbz+IO4SjWbyrAOJa8n3jowEGafR4L/Ncri0\n45lxQMBJjmNkj3kTDRYnLiurv69QFAY7tIABpzVNe3bnV8/DmEaSW0h0aUFy\nz+Uyq1GyrztdyYepWYG9DxGbWP4hkoF7dxpBi/1RYDCMIHAaOaL2FvUg9KwJ\ngNkLn9VT2/orWLdFREXbGiEKRAHC5NvAV+rYCF51Rwal0H2ilc06/i8jSg2O\nwN3LpINvn8+jkGEN9zB7eESEcESJMvYdYFPgBBRMK/8SwPmJI3/svoAROGMC\n+TEMkXGtMaGndH5yzlTUHjzLWa0ETqwmB4XuSIl+C2lKiEtNgmtlEDmbLSz6\nAtIourpV1bl3YDmkrfGzlZ/i+PNDZYiAppIDKRXrN0JEyELETkC2VgkRqS8+\nwAK9iQhQRZ2yF0oF5TwKcQzj/vNPAn+qsTOMeSU6+YmEUzz5YIYv+5AR7dej\nLwRHKT7qPYbcsQWzjuxIVumEsHLVOJtYXQLol9d9wOlA8OP7Vhk1EEbAbClX\n7k5oi+qwuJQDsBoe4yq1T7whYS3yLwizLiA7dh8fI2LZbkUuv7Nb+3/yEZg5\nTRaN9cW6RYYAlU4U1YFAxWQpGYFpCpHMEM10KOMqbpoIPwXESjQe36+WnK+1\nOsm2\r\n=lKoV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBZ+JV8AICMYC5JmodwizXlGtDEIbkKKZ+0ek0NpDqpGAiBrRD5krI/slpo++d9RR1eADMECMcGF2UyNWqpO923ECQ=="}]},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise.allsettled_2.0.0_1586122646450_0.4729033209965665"},"_hasShrinkwrap":false},"2.0.1":{"name":"@d-fischer/promise.allsettled","version":"2.0.1","author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"funding":{"url":"https://github.com/sponsors/d-fischer"},"contributors":[{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"}],"description":"ES Proposal spec-compliant shim for Promise.allSettled","license":"MIT","main":"index.js","types":"types","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./package":"./package.json","./package.json":"./package.json","./auto":"./auto.js","./implementation":"./implementation.js","./polyfill":"./polyfill.js","./requirePromise":"./requirePromise.js","./shim":"./shim.js"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run --silent lint && es-shim-api --bound","test":"npm run --silent tests-only","posttest":"npx aud","tests-only":"npm run --silent test:shimmed && npm run --silent test:module && npm run --silent tests:es5","tests:es5":"npm run --silent test:promise-shimmed","test:shimmed":"node test/shimmed.js","test:module":"node test/index.js","test:promise-shimmed":"node test/promise-shimmed.js","test:native":"node --harmony-promise-finally test/native","lint":"eslint .","coverage":"covert test/*.js"},"repository":{"type":"git","url":"git://github.com/es-shims/Promise.allSettled.git"},"keywords":["Promise","promises","allsettled","settled","fulfilled","resolved","rejected","promise.allsettled","shim","polyfill","es-shim","API"],"bugs":{"url":"https://github.com/es-shims/promise.allsettled/issues"},"homepage":"https://github.com/es-shims/promise.allsettled#readme","engines":{"node":">= 0.4"},"dependencies":{"array.prototype.map":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.17.4","iterate-value":"^1.0.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^15.0.2","es6-shim":"^0.35.5","eslint":"^6.7.2","functions-have-names":"^1.2.0","safe-publish-latest":"^1.1.4","tape":"^4.11.0"},"gitHead":"c04b2d9b25f4c72ef7264d75f7024ee9ddf7b8f2","_id":"@d-fischer/promise.allsettled@2.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-n3DCu++HfQBsuTRzwCk4hABtjQm+RgyPHecGTg6ze8ocCPKzSllsXQWTX7PEoQHKwoHEEoDiHzddTC62n+HZBA==","shasum":"3da8996ec95fd25017d0ec8289302c1b0afdce00","tarball":"https://registry.npmjs.org/@d-fischer/promise.allsettled/-/promise.allsettled-2.0.1.tgz","fileCount":28,"unpackedSize":19558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqgKNCRA9TVsSAnZWagAAORIP/32T06N96qsm4cWQBgLE\nptLgCEHdwioUvektLyhMW5WzYIh/OFf6NntPJL/mU1WWYe1T/U/UOaUBGbnZ\nxphOrio1Wr5dijJ5mHQdaR0RaxtYOB5dO5ChgkPcZrxh3HlnNmGG91UKopxV\n2Qaieo5EK9g9nhpdz6Y2OUzqCGog0wLg+wFwb9HxaEErD4Hy6OiOzVJlKHyj\n3c8/aDa+xMdZrkBef70aB+nKEWO75A+TwmZtTHDoOEytmJk53IwoTTy8fxfn\n8itP0dYLe9p2MFPcxkIuhdZsq2GuP/0Yhjw7GS7SRA02exNBTFXp9IeNqMZW\nk2W9NX6bvqIosBGgDlOarEuGoqvKJOgX0tZJ+pVZFLUaDKg1cZYeJkyc5K/h\nho8XFKReZZSeygDnNoWBssKPxdZS6n3z7eomWnEGGPoQXwo5gKpaqaF30Uao\nrkQeEHBiBWE9X+lpLGlZtT+wWHUXO+OEXaAjrJhzhhxbKvmU4a6ukvv5vdPB\nGTDBtFXYxfh9WqHVyVL4fIPEG6xPo3VZbbVIVTikiU460gA9Z0zuYLFCBJUH\nZyaR4mHVytN6zACZGj/4ERtO9fuyYXQuKEO9WC5EDPQ3n9rTAKPcS9OmQh3v\nsFJrPR0VwCoyy9I/P8VNL8h5ulaZIvoUqICO7qzIYvywIZTud1lTj2mq5FRA\n0gu0\r\n=QqHS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6SWVwRcf/6djsa6asuMEFd+ET8cvgLwfWXCk8U2tPHwIhAJ3Bl+5/gv7kqjWMsYuLe1ji1L0mjB83TgSG5Hj4FESn"}]},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise.allsettled_2.0.1_1588200075868_0.5559940717156329"},"_hasShrinkwrap":false},"2.0.2":{"name":"@d-fischer/promise.allsettled","version":"2.0.2","author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"funding":{"url":"https://github.com/sponsors/d-fischer"},"contributors":[{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"}],"description":"ES Proposal spec-compliant shim for Promise.allSettled","license":"MIT","main":"index.js","types":"types","exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"],"./package":"./package.json","./package.json":"./package.json","./auto":"./auto.js","./implementation":"./implementation.js","./polyfill":"./polyfill.js","./requirePromise":"./requirePromise.js","./shim":"./shim.js"},"scripts":{"prepublish":"safe-publish-latest","pretest":"npm run --silent lint && es-shim-api --bound","test":"npm run --silent tests-only && npm run test:promise-shimmed","posttest":"npx aud --production","tests-only":"nyc tape test/{implementation,index,shimmed}.js","test:promise-shimmed":"nyc node test/promise-shimmed","test:native":"nyc node test/native","lint":"eslint .","version":"auto-changelog && git add CHANGELOG.md","postversion":"auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""},"repository":{"type":"git","url":"git://github.com/es-shims/Promise.allSettled.git"},"keywords":["Promise","promises","allsettled","settled","fulfilled","resolved","rejected","promise.allsettled","shim","polyfill","es-shim","API"],"bugs":{"url":"https://github.com/es-shims/promise.allsettled/issues"},"homepage":"https://github.com/es-shims/promise.allsettled#readme","engines":{"node":">= 0.4"},"dependencies":{"array.prototype.map":"^1.0.3","call-bind":"^1.0.2","define-properties":"^1.1.3","es-abstract":"^1.18.0-next.2","get-intrinsic":"^1.0.2","iterate-value":"^1.0.2"},"devDependencies":{"@es-shims/api":"^2.1.2","@ljharb/eslint-config":"^17.4.0","aud":"^1.1.3","auto-changelog":"^2.2.1","es6-shim":"^0.35.6","eslint":"^7.18.0","functions-have-names":"^1.2.2","nyc":"^10.3.2","safe-publish-latest":"^1.1.4","tape":"^5.1.1"},"auto-changelog":{"output":"CHANGELOG.md","template":"keepachangelog","unreleased":false,"commitLimit":false,"backfillLimit":false,"hideCredit":true},"gitHead":"43686ff079bb8b7273a25ca0e785adf7ca71c99d","_id":"@d-fischer/promise.allsettled@2.0.2","_nodeVersion":"14.16.0","_npmVersion":"7.19.0","dist":{"integrity":"sha512-xY0vYDwJYFe22MS5ccQ50N4Mcc2nQ8J4eWE5Y354IxZwW32O5uTT6mmhFSuVF6ZrKvzHOCIrK+9WqOR6TI3tcA==","shasum":"2f8d55dba8412f656d62885e723e9b591d45f71c","tarball":"https://registry.npmjs.org/@d-fischer/promise.allsettled/-/promise.allsettled-2.0.2.tgz","fileCount":36,"unpackedSize":31345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7FC3CRA9TVsSAnZWagAAgFkQAJtFHXi6M12vPu8qcOx2\nEHUpDMvBRZKImPKmT8BS2hNUN1copaS+k6cCYCjb2HDtkxU9HWgsOKr1jNhd\n3svCBrcbB9gRZYJ4XxPci0Kf/KCmwjCluz5GXhLrK/3IZ6E/o24iPMX2GiJJ\npQvfcWVjANPca2c/9gAZPaQ0/FVVYaavoSQxGKN0z2YSNRotk5/FdkAxD91g\nFKaLRNG/4amtsP6O+nyTFEDNBPJH6hbXN9uRSxJ7fjMcHVqsezO6A7rnNoZE\n5qgoNnzUdxF9x0Sa+dW9ZFTJg1CIXZ22BsGedubs/q0e0tQd9juNmQosfbuS\nIqJlPmEaejySCXjyGt685HCU1TYsXMsFESgn8Meaqt4OTa275BOdv6J0yTI+\nF9DdDZNul8AelkBxYjDcn3HDR+DuQU68BHrlt/JtcOPDNOrHYrBjqj4n+E4e\nnlh2MeqQmuOgcnj7myqcr9al+fmKoHtJ0Rp0zL3Jtj1ErM93Mim9C9ZbHZIH\nfH4RgsGnZeGnJqZtKlzD7Vv7jFW7SEt/fdhfudkOpQ5tWxWLvxu+LkuNU15M\nF3nsdp+2l5O7wkLMJmpulGPrvRN64gL4Nb8yUKm2aMP67fY/CEEQiE9oPWSw\nfVas79D2x3XdUwMUScP1bx7Elz/4z3Hj0pIirUaonA8hjg2VO/VusCNZIbif\npTxE\r\n=Iz3T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEleRSdgi95GC78P1l9h9A98e2F6VEqQANX3IBDzV91zAiBBMYwaHD2sHDzzpS+8lp/qPkjnL/93IbqmgtNXCYdrIw=="}]},"_npmUser":{"name":"d-fischer","email":"daniel@d-fischer.dev"},"directories":{},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/promise.allsettled_2.0.2_1626099895052_0.35653971693340125"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-05T21:37:26.179Z","2.0.0":"2020-04-05T21:37:26.645Z","modified":"2022-04-05T02:28:22.684Z","2.0.1":"2020-04-29T22:41:15.984Z","2.0.2":"2021-07-12T14:24:55.252Z"},"maintainers":[{"name":"d-fischer","email":"daniel@d-fischer.dev"}],"description":"ES Proposal spec-compliant shim for Promise.allSettled","homepage":"https://github.com/es-shims/promise.allsettled#readme","keywords":["Promise","promises","allsettled","settled","fulfilled","resolved","rejected","promise.allsettled","shim","polyfill","es-shim","API"],"repository":{"type":"git","url":"git://github.com/es-shims/Promise.allSettled.git"},"contributors":[{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"}],"author":{"name":"Daniel Fischer","email":"daniel@d-fischer.dev"},"bugs":{"url":"https://github.com/es-shims/promise.allsettled/issues"},"license":"MIT","readme":"# promise.allsettled <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nES Proposal spec-compliant shim for Promise.allSettled. Invoke its \"shim\" method to shim `Promise.allSettled` if it is unavailable or noncompliant. **Note**: a global `Promise` must already exist: the [es6-shim](https://github.com/es-shims/es6-shim) is recommended.\n\nThis package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment that has `Promise` available globally, and complies with the [proposed spec](https://github.com/tc39/proposal-promise-allSettled).\n\nMost common usage:\n```js\nvar assert = require('assert');\nvar allSettled = require('promise.allsettled');\n\nvar resolved = Promise.resolve(42);\nvar rejected = Promise.reject(-1);\n\nallSettled([resolved, rejected]).then(function (results) {\n\tassert.deepEqual(results, [\n\t\t{ status: 'fulfilled', value: 42 },\n\t\t{ status: 'rejected', reason: -1 }\n\t]);\n});\n\nallSettled.shim(); // will be a no-op if not needed\n\nPromise.allSettled([resolved, rejected]).then(function (results) {\n\tassert.deepEqual(results, [\n\t\t{ status: 'fulfilled', value: 42 },\n\t\t{ status: 'rejected', reason: -1 }\n\t]);\n});\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.com/package/promise.allsettled\n[npm-version-svg]: http://versionbadg.es/es-shims/Promise.allSettled.svg\n[travis-svg]: https://travis-ci.org/es-shims/Promise.allSettled.svg\n[travis-url]: https://travis-ci.org/es-shims/Promise.allSettled\n[deps-svg]: https://david-dm.org/es-shims/Promise.allSettled.svg\n[deps-url]: https://david-dm.org/es-shims/Promise.allSettled\n[dev-deps-svg]: https://david-dm.org/es-shims/Promise.allSettled/dev-status.svg\n[dev-deps-url]: https://david-dm.org/es-shims/Promise.allSettled#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/promise.allsettled.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/promise.allsettled.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/promise.allsettled.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=promise.allsettled\n","readmeFilename":"README.md"}