async-lock
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -0,1 +1,5 @@ | ||
1.2.6 | ||
================== | ||
* Fix `maxPending = Infinity` no longer allowed (thank you @coderaiser) | ||
1.2.5 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -19,3 +19,7 @@ 'use strict'; | ||
this.timeout = opts.timeout || AsyncLock.DEFAULT_TIMEOUT; | ||
this.maxPending = Number.isInteger(opts.maxPending) && opts.maxPending >= 0 ? opts.maxPending : AsyncLock.DEFAULT_MAX_PENDING; | ||
if (opts.maxPending === Infinity || (Number.isInteger(opts.maxPending) && opts.maxPending >= 0)) { | ||
this.maxPending = opts.maxPending; | ||
} else { | ||
this.maxPending = AsyncLock.DEFAULT_MAX_PENDING; | ||
} | ||
}; | ||
@@ -22,0 +26,0 @@ |
{ | ||
"name": "async-lock", | ||
"description": "Lock on asynchronous code", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Rogier Schouten", |
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
14734
230