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

rate-limiter-flexible

Package Overview
Dependencies
Maintainers
1
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rate-limiter-flexible - npm Package Compare versions

Comparing version 0.16.4 to 0.16.5

5

lib/RateLimiterMySQL.js

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

10

lib/RateLimiterPostgres.js

@@ -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",

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