UNPKG

promise-settled-aggregate

Version:

Works like Promise.allSettled except it will reject with an AggregateError if some of the promises rejected, otherwise resolves with the fulfilled values.

58 lines (57 loc) 1.61 kB
{ "name": "promise-settled-aggregate", "version": "0.5.1", "main": "dist/promiseSettledAggregate.cjs", "module": "dist/promiseSettledAggregate.js", "browser": "dist/promiseSettledAggregate.cjs", "types": "promiseSettledAggregate.d.ts", "files": [ "dist/*", "promiseSettledAggregate.d.ts", "promiseSettledAggregate.ts" ], "scripts": { "prepare": "tsc && scripts/build.sh", "test": "jest", "lint": "eslint *.ts" }, "repository": { "type": "git", "url": "git+https://github.com/stefee/promise-settled-aggregate.git" }, "author": "Stef Jones <stef@srilq.email>", "license": "Unlicense", "bugs": { "url": "https://github.com/stefee/promise-settled-aggregate/issues" }, "homepage": "https://github.com/stefee/promise-settled-aggregate#readme", "description": "Works like Promise.allSettled except it will reject with an AggregateError if some of the promises rejected, otherwise resolves with the fulfilled values.", "keywords": [ "promise", "promises", "allsettled", "settle", "settled", "promise.allsettled", "promise.all", "reject", "rejected", "error", "aggregate", "aggregateerror" ], "devDependencies": { "@swc-node/jest": "1.4.1", "@swc/cli": "0.1.52", "@swc/core": "1.2.118", "@types/jest": "27.0.3", "@typescript-eslint/eslint-plugin": "5.5.0", "eslint": "8.4.0", "eslint-config-prettier": "8.3.0", "eslint-plugin-jest": "25.3.0", "eslint-plugin-prettier": "4.0.0", "jest": "27.4.3", "prettier": "2.5.1", "typescript": "4.5.2" } }