async-lock
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -0,1 +1,5 @@ | ||
1.2.7 | ||
================== | ||
* Fix #37 process not set when acquiring lock (Thank you @Philipp91) | ||
1.2.6 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -18,5 +18,5 @@ 'use strict'; | ||
this.timeout = opts.timeout || AsyncLock.DEFAULT_TIMEOUT; | ||
this.timeout = opts.timeout || AsyncLock.DEFAULT_TIMEOUT; | ||
if (opts.maxPending === Infinity || (Number.isInteger(opts.maxPending) && opts.maxPending >= 0)) { | ||
this.maxPending = opts.maxPending; | ||
this.maxPending = opts.maxPending; | ||
} else { | ||
@@ -57,3 +57,3 @@ this.maxPending = AsyncLock.DEFAULT_MAX_PENDING; | ||
// will return a promise | ||
deferred = new this.Promise(function(resolve, reject) { | ||
deferred = new this.Promise(function(resolve, reject) { | ||
deferredResolve = resolve; | ||
@@ -60,0 +60,0 @@ deferredReject = reject; |
{ | ||
"name": "async-lock", | ||
"description": "Lock on asynchronous code", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Rogier Schouten", |
Sorry, the diff of this file is not supported yet
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
14865