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

express-rate-limit

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-rate-limit - npm Package Compare versions

Comparing version 5.5.0 to 5.5.1

4

lib/express-rate-limit.js

@@ -22,4 +22,4 @@ "use strict";

if (!req.ip) {
throw new Error(
"express-rate-limit: req.ip is undefined - are you sure you're using express?"
console.error(
"express-rate-limit: req.ip is undefined - you can avoid this by providing a custom keyGenerator function, but it may be indicative of a larger issue."
);

@@ -26,0 +26,0 @@ }

{
"name": "express-rate-limit",
"version": "5.5.0",
"version": "5.5.1",
"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/nfriedly/express-rate-limit",

@@ -20,2 +20,3 @@ # Express Rate Limit

- [Mongo Store](https://www.npmjs.com/package/rate-limit-mongo)
- [Precise Memory Store](https://www.npmjs.com/package/precise-memory-rate-limit) - similar to the built-in memory store except that it stores a distinct timestamp for each IP rather than bucketing them together.

@@ -43,3 +44,3 @@ ### Alternate Rate-limiters

// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB, Nginx, etc)
// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB or API Gateway, Nginx, etc)
// see https://expressjs.com/en/guide/behind-proxies.html

@@ -62,3 +63,3 @@ // app.set('trust proxy', 1);

// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB, Nginx, etc)
// Enable if you're behind a reverse proxy (Heroku, Bluemix, AWS ELB or API Gateway, Nginx, etc)
// see https://expressjs.com/en/guide/behind-proxies.html

@@ -352,2 +353,2 @@ // app.set('trust proxy', 1);

MIT © [Nathan Friedly](http://nfriedly.com/)
MIT © [Nathan Friedly](http://nfriedly.com/)
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