express-rate-limit
Advanced tools
Comparing version 3.5.1 to 3.5.2
{ | ||
"name": "express-rate-limit", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.", | ||
@@ -15,3 +15,4 @@ "homepage": "https://github.com/nfriedly/express-rate-limit", | ||
"files": [ | ||
"lib/" | ||
"lib/", | ||
"index.d.ts" | ||
], | ||
@@ -18,0 +19,0 @@ "keywords": [ |
@@ -43,3 +43,5 @@ # Express Rate Limit | ||
app.enable("trust proxy"); // only 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, Nginx, etc) | ||
// see https://expressjs.com/en/guide/behind-proxies.html | ||
// app.set('trust proxy', 1); | ||
@@ -60,3 +62,5 @@ const limiter = rateLimit({ | ||
app.enable("trust proxy"); // only 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, Nginx, etc) | ||
// see https://expressjs.com/en/guide/behind-proxies.html | ||
// app.set('trust proxy', 1); | ||
@@ -77,3 +81,5 @@ const apiLimiter = rateLimit({ | ||
app.enable("trust proxy"); // only 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, Nginx, etc) | ||
// see https://expressjs.com/en/guide/behind-proxies.html | ||
// app.set('trust proxy', 1); | ||
@@ -80,0 +86,0 @@ const apiLimiter = rateLimit({ |
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
17636
5
193
287