putil-taskqueue
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -23,2 +23,3 @@ /* putil-taskqueue | ||
this._cancelOnError = options.cancelOnError; | ||
this._maxQueue = options.maxQueue; | ||
} | ||
@@ -34,2 +35,4 @@ | ||
proto.enqueue = function(resolver) { | ||
if (this._maxQueue && this._queue.length >= this._maxQueue) | ||
throw new Error('Queue limit exceeds max quee size'); | ||
this._queue.push(resolver); | ||
@@ -36,0 +39,0 @@ this.next(); |
{ | ||
"name": "putil-taskqueue", | ||
"description": "Very simple async task queue for ES6", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -8,3 +8,3 @@ # putil-taskqueue | ||
Very simple async task queue for ES6. | ||
Very simple async task queue for Javascript. | ||
@@ -17,3 +17,3 @@ ## Installation | ||
- node `>= 6.x`; | ||
- node `>= 4.x`; | ||
@@ -20,0 +20,0 @@ ### License |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5240
69
0