rate-limiter-flexible
Advanced tools
Comparing version 0.16.4 to 0.16.5
@@ -64,3 +64,3 @@ const RateLimiterStoreAbstract = require('./RateLimiterStoreAbstract'); | ||
this._clearExpiredTimeoutId = setTimeout(() => { | ||
this.clearExpired(Date.now() - 3600000) | ||
this.clearExpired(Date.now() - 3600000) // Never rejected | ||
.then(() => { | ||
@@ -282,7 +282,6 @@ this._clearExpiredHourAgo(); | ||
resolve(res); | ||
this._releaseConnection(conn); | ||
}) | ||
.catch((err) => { | ||
reject(err); | ||
}) | ||
.finally(() => { | ||
this._releaseConnection(conn); | ||
@@ -289,0 +288,0 @@ }); |
@@ -57,6 +57,7 @@ const RateLimiterStoreAbstract = require('./RateLimiterStoreAbstract'); | ||
this._query(q) | ||
.then(() => { | ||
resolve(); | ||
}) | ||
.catch(() => { | ||
// Deleting expired query is not critical | ||
}) | ||
.finally(() => { | ||
resolve(); | ||
@@ -77,3 +78,3 @@ }); | ||
this._clearExpiredTimeoutId = setTimeout(() => { | ||
this.clearExpired(Date.now() - 3600000) | ||
this.clearExpired(Date.now() - 3600000) // Never rejected | ||
.then(() => { | ||
@@ -204,7 +205,6 @@ this._clearExpiredHourAgo(); | ||
resolve(res); | ||
this._releaseConnection(conn); | ||
}) | ||
.catch((err) => { | ||
reject(err); | ||
}) | ||
.finally(() => { | ||
this._releaseConnection(conn); | ||
@@ -211,0 +211,0 @@ }); |
{ | ||
"name": "rate-limiter-flexible", | ||
"version": "0.16.4", | ||
"version": "0.16.5", | ||
"description": "Flexible API rate limiter backed by Redis for distributed node.js applications", | ||
@@ -5,0 +5,0 @@ "main": "index.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
64786
1654