Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

p-times

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-times - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc