Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "p-times", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Run promise-returning & async functions a specific number of times concurrently", | ||
"license": "MIT", | ||
"repository": "sindresorhus/p-times", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
@@ -38,3 +39,3 @@ "scripts": { | ||
"dependencies": { | ||
"p-map": "^2.0.0" | ||
"p-map": "^4.0.0" | ||
}, | ||
@@ -41,0 +42,0 @@ "devDependencies": { |
@@ -1,6 +0,5 @@ | ||
# p-times [![Build Status](https://travis-ci.org/sindresorhus/p-times.svg?branch=master)](https://travis-ci.org/sindresorhus/p-times) | ||
# p-times [![Build Status](https://travis-ci.com/sindresorhus/p-times.svg?branch=master)](https://travis-ci.com/sindresorhus/p-times) | ||
> Run promise-returning & async functions a specific number of times concurrently | ||
## Install | ||
@@ -12,3 +11,2 @@ | ||
## Usage | ||
@@ -27,6 +25,5 @@ | ||
## API | ||
### pTimes(count, mapper, [options]) | ||
### pTimes(count, mapper, options?) | ||
@@ -49,8 +46,8 @@ Returns a `Promise` that is fulfilled when all promises returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in order. | ||
Type: `Object` | ||
Type: `object` | ||
##### concurrency | ||
Type: `number`<br> | ||
Default: `Infinity`<br> | ||
Type: `number`\ | ||
Default: `Infinity`\ | ||
Minimum: `1` | ||
@@ -60,3 +57,9 @@ | ||
##### stopOnError | ||
Type: `boolean`\ | ||
Default: `true` | ||
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. | ||
## Related | ||
@@ -68,6 +71,1 @@ | ||
- [More…](https://github.com/sindresorhus/promise-fun) | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
Sorry, the diff of this file is not supported yet
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
5284
67
+ Addedaggregate-error@3.1.0(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedp-map@4.0.0(transitive)
- Removedp-map@2.1.0(transitive)
Updatedp-map@^4.0.0