riot-ratelimiter-temp
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -157,2 +157,3 @@ "use strict"; | ||
this.resetTimeout = setTimeout(() => { this.reset(); }, this._seconds * 1000); | ||
this.resetTimeout.unref(); | ||
} | ||
@@ -159,0 +160,0 @@ } |
@@ -277,2 +277,3 @@ "use strict"; | ||
this.intervalProcessQueue = setInterval(() => { this.processBurstQueue(); }, 1000 + factorForEqualRights); | ||
this.intervalProcessQueue.unref(); | ||
} | ||
@@ -285,2 +286,3 @@ } | ||
}, this.getSpreadInterval()); | ||
this.intervalNextSpreadExecution.unref(); | ||
} | ||
@@ -287,0 +289,0 @@ execute(fn, onSuccess, onError) { |
@@ -20,3 +20,5 @@ "use strict"; | ||
if (!this.limitersPerPlatformId[platformId][apiMethod]) { | ||
console.log('creating sync rate limiter for ', platformId, apiMethod); | ||
if (this.debug) { | ||
console.log('creating sync rate limimter for ', platformId, apiMethod); | ||
} | ||
this.limitersPerPlatformId[platformId][apiMethod] = new RateLimiter_1.RateLimiter({ | ||
@@ -23,0 +25,0 @@ limits: [RateLimiter_1.RateLimiter.createSyncRateLimit(this.debug)], |
{ | ||
"name": "riot-ratelimiter-temp", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A temporary fork of ColorfulStans ratelimiter with POST/PUT?PATCH functionality. Will be used until I write proper tests for the code I have added.", | ||
@@ -135,2 +135,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
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
59002
1067