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

p-all

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-all - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

7

index.d.ts

@@ -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

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