bottleneckp
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -72,4 +72,10 @@ var PriorityQueue = function(size) { | ||
Bottleneck.prototype.submit = function(clientCallback, priority) { | ||
Bottleneck.prototype.submit = function(options, clientCallback) { | ||
var self = this; | ||
var priority = null; | ||
if(typeof options == "number") { | ||
priority = parseInt(options); | ||
} else { | ||
priority = options.priority; | ||
} | ||
priority = priority && + priority | 0 || 0; | ||
@@ -76,0 +82,0 @@ priority = priority > self._priorityRange-1 ? self._priorityRange-1 : priority; |
{ | ||
"name": "bottleneckp", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "asynchronous rate limiter with priority", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Bottleneck.js", |
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
7291
151