Socket
Book a DemoSign in
Socket

p-limit

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-limit - npm Package Compare versions

Comparing version
7.1.0
to
7.1.1
+3
-3
index.d.ts

@@ -36,3 +36,3 @@ export type LimitFunction = {

map: <Input, ReturnType> (
array: Input[],
array: readonly Input[],
mapperFunction: (input: Input, index: number) => PromiseLike<ReturnType> | ReturnType

@@ -94,4 +94,4 @@ ) => Promise<ReturnType[]>;

export function limitFunction<Arguments extends unknown[], ReturnType>(
function_: (...arguments_: Arguments) => PromiseLike<ReturnType> | ReturnType,
option: Options
function_: (...arguments_: Arguments) => PromiseLike<ReturnType>,
options: Options
): (...arguments_: Arguments) => Promise<ReturnType>;
{
"name": "p-limit",
"version": "7.1.0",
"version": "7.1.1",
"description": "Run multiple promise-returning & async functions with limited concurrency",

@@ -5,0 +5,0 @@ "license": "MIT",