{ "_id": "promise.allsettled", "_rev": "7-5ce07e8704d8373165221b5994431e2b", "name": "promise.allsettled", "dist-tags": { "latest": "1.0.2" }, "versions": { "1.0.0": { "name": "promise.allsettled", "version": "1.0.0", "author": { "name": "Jordan Harband" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "description": "ES Proposal spec-compliant shim for Promise.allSettled", "license": "MIT", "main": "index.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/ljharb/Promise.allSettled.git" }, "keywords": [ "Promise", "promises", "allsettled", "settled", "fulfilled", "resolved", "rejected", "promise.allsettled", "shim", "polyfill", "es-shim", "API" ], "bugs": { "url": "https://github.com/ljharb/promise.allsettled/issues" }, "homepage": "https://github.com/ljharb/promise.allsettled#readme", "engines": { "node": ">= 0.4" }, "dependencies": { "define-properties": "^1.1.3", "es-abstract": "^1.13.0", "function-bind": "^1.1.1" }, "devDependencies": { "@es-shims/api": "^2.1.2", "@ljharb/eslint-config": "^13.1.1", "es6-shim": "^0.35.5", "eslint": "^5.15.3", "safe-publish-latest": "^1.1.2", "tape": "^4.10.1" }, "gitHead": "3f6f4f60c8f208cda94493281661d3bc2f4b11be", "_id": "promise.allsettled@1.0.0", "_nodeVersion": "11.12.0", "_npmVersion": "6.7.0", "dist": { "integrity": "sha512-a5EYfJtZucSSziPrZYNBj5+C+oBik9i0cztXpGwotyXJbnLFPOPMksGMDYnY3YZTd45e3tPYH/5VdjjSF8kDYg==", "shasum": "a718290c5695c346f372297187e788b4e8c731f4", "tarball": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.0.tgz", "fileCount": 20, "unpackedSize": 22464, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnNPFCRA9TVsSAnZWagAAA0oP/RdP0yykGkPbCv79e2xk\n1wgZmxaKMHeRs0th928AwNKQEDC0qzUSmFqC/S2aE6M9LpnLT8GKLJ0MrnzF\n2n5mRpB3bCG0Od28od/QqgquwCbkVoEr1N8ipW7FR2LP/KWyTFyWUGVoDD5L\nOYVDC28MTqGHtLeokgJzgfPeRcdK/hg7I/0VGzVrzx1DoE38U9rpDQx5T8CX\nA2jiU6vBZDnoBNulRZcAp2DbAdgKs5H9vGnnRGaGXlA9srsME+dULtFd+PRg\nFR82eQ7pqD/Ojk+Erz10ug/f5R/zv0LfKSXM//+PpTMdDikqJCePa6dEeOXr\nbFqHSvFU70CEQmOXfZUtWjWbXdAZOKHolFX0yqsH/5CS/ZLVyBhKpIdPgH8Z\nvK7f7LJ+RtVLFujYRgw8NIPvqR3AP+GpvuIzl1D0Xs56FwRDjRomfEFgMWCn\nQzVKo+LfZmFm+gvD6R0KmyKU5LXyiaLXvZTrTJxhj1zJbqmmAxJJiGXDOZNr\nDyG6D+2jALt83gE4H9w1xVDtWKLVngRgK4fYT7UqjQDTjAVwcyPO5Z/6vHQz\nwNoXIJ6KK/YgZRJxk8nwEpKhhW7y1rKqbxZwsP0US3O9vp/Y6nMEjbrk1Di2\nA/9Uyb7yCKf7QPNh7eQ6b23ftH0yjvJDrfkLxbCpr7m1O3euqh8vgYFG35dP\nglQE\r\n=3bf6\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "ljharb@gmail.com", "name": "ljharb" } ], "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/promise.allsettled_1.0.0_1553781700292_0.6649737526699995" }, "_hasShrinkwrap": false }, "1.0.1": { "name": "promise.allsettled", "version": "1.0.1", "author": { "name": "Jordan Harband" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "description": "ES Proposal spec-compliant shim for Promise.allSettled", "license": "MIT", "main": "index.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/ljharb/Promise.allSettled.git" }, "keywords": [ "Promise", "promises", "allsettled", "settled", "fulfilled", "resolved", "rejected", "promise.allsettled", "shim", "polyfill", "es-shim", "API" ], "bugs": { "url": "https://github.com/ljharb/promise.allsettled/issues" }, "homepage": "https://github.com/ljharb/promise.allsettled#readme", "engines": { "node": ">= 0.4" }, "dependencies": { "define-properties": "^1.1.3", "es-abstract": "^1.13.0", "function-bind": "^1.1.1" }, "devDependencies": { "@es-shims/api": "^2.1.2", "@ljharb/eslint-config": "^13.1.1", "es6-shim": "^0.35.5", "eslint": "^5.16.0", "safe-publish-latest": "^1.1.2", "tape": "^4.10.1" }, "gitHead": "d4a530028d7d717bef9e0328a79c149a4482775c", "_id": "promise.allsettled@1.0.1", "_nodeVersion": "12.1.0", "_npmVersion": "6.9.0", "dist": { "integrity": "sha512-3ST7RS7TY3TYLOIe+OACZFvcWVe1osbgz2x07nTb446pa3t4GUZWidMDzQ4zf9jC2l6mRa1/3X81icFYbi+D/g==", "shasum": "afe4bfcc13b26e2263a97a7fbbb19b8ca6eb619c", "tarball": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.1.tgz", "fileCount": 20, "unpackedSize": 21694, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc0J3BCRA9TVsSAnZWagAAqA0P/jGt6TykFvli8xhDPQmI\nCpnFuFKCNMy64ijDOTQZlEBGbFRFFjBzF3Fa2TenjTCjJ8NQ2J5AZW3csv9L\n3PYajSowQh5yaO4vUDaZ6zo/6GXTx68o0h/2AAcghAYF1r8HFBoVpqReLvJ3\nTxk1N7JTXNgm0gZ8kNc0T9TlTRoX0WcxTTVJVg5DL9+cevxcZ8895DRE1nVs\nYoksHOT5vUMJTKZjPb6KXA/DJg1CM5Wvt7qTuRqhDBCK2UEQVHxfVFk6AaQ7\nE7Pqd9/7WOzVnxU4avfeL9hiXUYbt/ejFtNAedXCYhnDF4vrG0KmEk0DYsqa\nPE1tvINKiQzKbV7YxQMxF7RIfG41Hvs8Jl/ZQ7Y8DM24+5v2LWgOZ7UyTBkG\n2AEkxIQAKBxosdWXkzuZV5SBjzbTcX0BoV8MguE0N30GT8eVcmi0dHDpXt4z\nHwE63onp8aQp8RtC61Gy99LPZqo7Cy0sCEu7cgcRIuT2uMQHitNr7wiW2ap5\nvByUMAkan/Z7GPztFJLfR7zR2X1Sc8weZ3hVW3e7MSKDfaOFs9mCHvrnSMbw\nk/7T4eydh0LyExJzHrvQ0YDqamaxVJdjAnsUW49fZuPWpjPo+cSLmO23YJMi\nRWt4wl2/ySH7A2k4oS92DvsHEku7QDCWI1faEZKZxAVl9ZgI4XLGTduIwCgY\nIm1a\r\n=hZ6d\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "ljharb@gmail.com", "name": "ljharb" } ], "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/promise.allsettled_1.0.1_1557175744404_0.3974403149083181" }, "_hasShrinkwrap": false }, "1.0.2": { "name": "promise.allsettled", "version": "1.0.2", "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "description": "ES Proposal spec-compliant shim for Promise.allSettled", "license": "MIT", "main": "index.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.1", "define-properties": "^1.1.3", "es-abstract": "^1.17.0-next.1", "function-bind": "^1.1.1", "iterate-value": "^1.0.0" }, "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": "a30b6094af96e840308aa6d6012292b9427decc7", "_id": "promise.allsettled@1.0.2", "_nodeVersion": "13.3.0", "_npmVersion": "6.13.1", "dist": { "integrity": "sha512-UpcYW5S1RaNKT6pd+s9jp9K9rlQge1UXKskec0j6Mmuq7UJCvlS2J2/s/yuPN8ehftf9HXMxWlKiPbGGUzpoRg==", "shasum": "d66f78fbb600e83e863d893e98b3d4376a9c47c9", "tarball": "https://registry.npmjs.org/promise.allsettled/-/promise.allsettled-1.0.2.tgz", "fileCount": 20, "unpackedSize": 15806, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9AUYCRA9TVsSAnZWagAAdyMP/1FT3C7lUy1v10wyzPMG\nXFEFCVSvn4ic0LavkoPvsun2l8HPqdkte7JX/4Kjsot5cfhkhzQKnXkFl5zN\nFKRJbKUF7+STWh2AQKl9np82amAqj46pERVHPIfJkU4yKEtqMMRIV8JmGTO5\nY389cSb72prrIeV1WFzCNKn6v2vCgwxiWq8HRH6psDu1xSjZOhfBN0r8VOlj\neHwTvmYPPfdRWSpwYu5+HxfpbQ1Zbf/Dlgm2H2amB8Rchq6TDf+SXOVk1b+G\nGc+kwNYWwhCE4mLfZBGuD5TmuxmqIJ2DkYtXJzobnsL+CvnVrTBgzkXmZEps\nbryA8DtybkQkjQS+QytkY+no/sispE1zcZPWynVTQf6vZzRztgvviO0J145x\nH4GU7afnUZc+4sX+KowVCAZ6ObPx9A/IryY+IsT5pkZPqDlVDJvPcAB26ZhC\nlo7+N1BqsuUPbNLfiCMh+WknSlTu7gifkRBF3wlgpME3Vuu+dhdR8aCTjNN5\nmCly7pDcsGfKPjPxBXt3XZQJD2LT/AhNBak+M8iUglBR9kMGVhoRZRDWXP6E\nLBHAwS0y4K0/qzWTFnbys6BI0AXOg0/9LHma3ayWEI991TSBba5DfTtfxP1x\nqUwPLq65PgdRhn3LvZFDlTK/ZFD3bvIv6L4h8unvbjH1g/jNS9wLlEObPK4X\nMJQl\r\n=rpB7\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "email": "ljharb+esshims@gmail.com", "name": "es-shims-owner" }, { "email": "ljharb@gmail.com", "name": "ljharb" } ], "_npmUser": { "name": "ljharb", "email": "ljharb@gmail.com" }, "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/promise.allsettled_1.0.2_1576273176155_0.9027802761177506" }, "_hasShrinkwrap": false } }, "time": { "created": "2019-03-28T13:46:37.151Z", "0.0.1-security": "2019-03-28T13:46:37.352Z", "modified": "2020-03-28T22:27:17.206Z", "1.0.0": "2019-03-28T14:01:40.448Z", "1.0.1": "2019-05-06T20:49:04.511Z", "1.0.2": "2019-12-13T21:39:36.299Z" }, "maintainers": [ { "email": "ljharb@gmail.com", "name": "ljharb" } ], "description": "ES Proposal spec-compliant shim for Promise.allSettled", "homepage": "https://github.com/es-shims/promise.allsettled#readme", "repository": { "type": "git", "url": "git://github.com/es-shims/Promise.allSettled.git" }, "bugs": { "url": "https://github.com/es-shims/promise.allsettled/issues" }, "readme": "# promise.allsettled [![Version Badge][npm-version-svg]][package-url]\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", "keywords": [ "Promise", "promises", "allsettled", "settled", "fulfilled", "resolved", "rejected", "promise.allsettled", "shim", "polyfill", "es-shim", "API" ], "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "author": { "name": "Jordan Harband", "email": "ljharb@gmail.com" }, "license": "MIT" }