Socket
Socket
Sign inDemoInstall

bottleneckp

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

lib/Bottleneck.js

@@ -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;

2

package.json
{
"name": "bottleneckp",
"version": "1.0.0",
"version": "1.0.1",
"description": "asynchronous rate limiter with priority",

@@ -5,0 +5,0 @@ "main": "./lib/Bottleneck.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc