async-lock
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -185,2 +185,4 @@ 'use strict'; | ||
var maxPending = opts.maxPending || self.maxPending; | ||
if (!self.queues[key]) { | ||
@@ -195,3 +197,3 @@ self.queues[key] = []; | ||
} | ||
else if (self.queues[key].length >= self.maxPending) { | ||
else if (self.queues[key].length >= maxPending) { | ||
done(false, new Error('Too many pending tasks in queue ' + key)); | ||
@@ -198,0 +200,0 @@ } |
{ | ||
"name": "async-lock", | ||
"description": "Lock on asynchronous code", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": { | ||
@@ -14,3 +14,3 @@ "name": "Rogier Schouten", | ||
"type": "git", | ||
"url": "https://github.com/rogierschouten/async-lock.git" | ||
"url": "git+https://github.com/rogierschouten/async-lock.git" | ||
}, | ||
@@ -39,3 +39,3 @@ "bugs": { | ||
"grunt-contrib-clean": "^1.1.0", | ||
"grunt-contrib-jshint": "^1.1.0", | ||
"grunt-contrib-jshint": "^3.2.0", | ||
"grunt-contrib-watch": "^1.1.0", | ||
@@ -46,3 +46,3 @@ "grunt-env": "^1.0.1", | ||
"lodash": "^4.17.20", | ||
"mocha": "^7.1.2", | ||
"mocha": "^10.2.0", | ||
"q": "^1.5.1", | ||
@@ -49,0 +49,0 @@ "should": "^13.2.1" |
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
18255
277