New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alkihis/express-rate-limit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alkihis/express-rate-limit - npm Package Compare versions

Comparing version 5.1.4 to 5.1.5

3

lib/memory-store.js

@@ -15,3 +15,3 @@ "use strict";

this.resetTime = calculateNextResetTime(windowMs);
const interval = setInterval(this.resetAll, windowMs);
const interval = setInterval(this.resetAll.bind(this), windowMs);
if (interval.unref) {

@@ -35,2 +35,3 @@ interval.unref();

resetAll() {
console.log('reseting');
this.hits = {};

@@ -37,0 +38,0 @@ this.resetTime = calculateNextResetTime(this.windowMs);

{
"name": "@alkihis/express-rate-limit",
"version": "5.1.4",
"version": "5.1.5",
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/alkihis/express-rate-limit",

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