Comparing version 2.4.0 to 2.4.1
25
index.js
@@ -96,12 +96,17 @@ 'use strict'; | ||
Promise.resolve(fn()).then( | ||
val => { | ||
resolve(val); | ||
this._next(); | ||
}, | ||
err => { | ||
reject(err); | ||
this._next(); | ||
} | ||
); | ||
try { | ||
Promise.resolve(fn()).then( | ||
val => { | ||
resolve(val); | ||
this._next(); | ||
}, | ||
err => { | ||
reject(err); | ||
this._next(); | ||
} | ||
); | ||
} catch (err) { | ||
reject(err); | ||
this._next(); | ||
} | ||
}; | ||
@@ -108,0 +113,0 @@ |
{ | ||
"name": "p-queue", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Promise queue with concurrency control", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
10973
154