async-lock
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -1,16 +0,14 @@ | ||
1.1.4 / 2019-02-02 | ||
1.2.0 | ||
================== | ||
* Fix for #17 Promise.defer() resulting in console warnings | ||
* Fix for npm audit vulnerabilities (one remaining in dev deps) | ||
* ES5 compatibility (#21) | ||
1.1.3 / 2018-06-08 | ||
1.1.4 | ||
================== | ||
* Fix for #14 tarball has wrong permissions | ||
* Updates to dev dependencies | ||
* Fix for #17, update dependencies | ||
1.1.2 / 2018-02-28 | ||
1.1.3 | ||
================== | ||
* README.md improvements | ||
* Fix for #14 | ||
1.1.1 / 2018-02-14 | ||
1.1.1 | ||
================== | ||
@@ -23,2 +21,6 @@ * Fix result Promise not resolving when locking empty key array | ||
1.1.0 / 2017-10-17 | ||
================== | ||
* Add option to add waiters to the front of the queue | ||
1.0.0 / 2017-06-29 | ||
@@ -25,0 +27,0 @@ ================== |
@@ -52,3 +52,3 @@ 'use strict'; | ||
// will return a promise | ||
deferred = new this.Promise((resolve, reject) => { | ||
deferred = new this.Promise(function(resolve, reject) { | ||
deferredResolve = resolve; | ||
@@ -213,3 +213,3 @@ deferredReject = reject; | ||
else { | ||
return new this.Promise((resolve, reject) => { | ||
return new this.Promise(function (resolve, reject) { | ||
// check for promise mode in case keys is empty array | ||
@@ -258,2 +258,1 @@ if (fnx.length === 1) { | ||
module.exports = AsyncLock; | ||
{ | ||
"name": "async-lock", | ||
"description": "Lock on asynchronous code", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"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
13841