Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

leaky-bucket

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaky-bucket - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

4

lib/LeakyBucket.js

@@ -179,3 +179,3 @@ !function() {

if (this.queue.length && this.timer === null) {
if (debug) log.debug('started a timer for the next item to be excuted, waiting %s milliseconds ...', Math.round((cost-this.left)*this.refillRate*1000));
if (debug) log.debug('started a timer for the next item to be excuted, waiting %s milliseconds ...', Math.ceil((cost-this.left)*this.refillRate*1000));

@@ -195,3 +195,3 @@ this.timer = setTimeout(function() {

else log.warn('attempt to use item from the queue');
}.bind(this), Math.round((cost-this.left)*this.refillRate*1000));
}.bind(this), Math.ceil((cost-this.left)*this.refillRate*1000));
}

@@ -198,0 +198,0 @@ }

{
"name" : "leaky-bucket"
, "description" : "A fast and efficient leaky bucket implementation"
, "version" : "0.1.12"
, "version" : "0.1.13"
, "homepage" : "https://github.com/eventEmitter/leaky-bucket"

@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@joinbox.com> (http://joinbox.com/)"

@@ -176,3 +176,3 @@

, maxTime = 11500
, minTime = 10000
, minTime = 10500
, capacity = 60

@@ -215,3 +215,3 @@ , items = 100

, maxTime = 11500
, minTime = 10000
, minTime = 10500
, capacity = 60

@@ -218,0 +218,0 @@ , items = 100

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc