Comparing version 4.0.0 to 5.0.0
@@ -1,8 +0,5 @@ | ||
import {Options} from 'p-map'; | ||
import {type Options} from 'p-map'; | ||
type PromiseFactory<T> = () => PromiseLike<T>; | ||
// From: https://github.com/microsoft/TypeScript/blob/4f5b3299fee9a54b692aba9df7a9e894bd86e81d/src/lib/es2015.promise.d.ts#L1 | ||
type Awaited<T> = T extends undefined ? T : T extends PromiseLike<infer U> ? U : T; | ||
/** | ||
@@ -36,2 +33,2 @@ Run promise-returning & async functions concurrently with optional limited concurrency. | ||
export {Options}; | ||
export {type Options} from 'p-map'; |
{ | ||
"name": "p-all", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "Run promise-returning & async functions concurrently with optional limited concurrency", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=12.20" | ||
"node": ">=16" | ||
}, | ||
@@ -50,10 +50,10 @@ "scripts": { | ||
"dependencies": { | ||
"p-map": "^5.0.0" | ||
"p-map": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"ava": "^5.2.0", | ||
"delay": "^5.0.0", | ||
"tsd": "^0.16.0", | ||
"xo": "^0.40.1" | ||
"tsd": "^0.28.1", | ||
"xo": "^0.54.1" | ||
} | ||
} |
@@ -13,5 +13,5 @@ # p-all | ||
```sh | ||
npm install p-all | ||
``` | ||
$ npm install p-all | ||
``` | ||
@@ -63,3 +63,3 @@ ## Usage | ||
When set to `false`, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [aggregated error](https://github.com/sindresorhus/aggregate-error) containing all the errors from the rejected promises. | ||
When set to `false`, instead of stopping when a promise rejects, it will wait for all the promises to settle and then reject with an [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) containing all the errors from the rejected promises. | ||
@@ -66,0 +66,0 @@ ## Related |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5423
30
+ Addedp-map@6.0.0(transitive)
- Removedaggregate-error@4.0.1(transitive)
- Removedclean-stack@4.2.0(transitive)
- Removedescape-string-regexp@5.0.0(transitive)
- Removedindent-string@5.0.0(transitive)
- Removedp-map@5.5.0(transitive)
Updatedp-map@^6.0.0