express-rate-limit
Advanced tools
Comparing version 5.5.0 to 5.5.1
@@ -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/) |
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
22105
351