p-limit
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -6,3 +6,3 @@ 'use strict'; | ||
if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) { | ||
return Promise.reject(new TypeError('Expected `concurrency` to be a number from 1 and up')); | ||
throw new TypeError('Expected `concurrency` to be a number from 1 and up'); | ||
} | ||
@@ -9,0 +9,0 @@ |
{ | ||
"name": "p-limit", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Run multiple promise-returning & async functions with limited concurrency", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
7901