express-rate-limit
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "express-rate-limit", | ||
"version": "3.1.0", | ||
"version": "3.1.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", |
@@ -93,3 +93,3 @@ # Express Rate Limit | ||
A `req.rateLimit` property is added to all requests with the `limit`, `current`, and `remaining` number of requests for usage in your application code and, if the store provides it, a resetTime Date object. | ||
A `req.rateLimit` property is added to all requests with the `limit`, `current`, and `remaining` number of requests for usage in your application code and, if the store provides it, a `resetTime` Date object. | ||
@@ -188,3 +188,3 @@ ## Configuration | ||
Avaliable data stores are: | ||
Available data stores are: | ||
@@ -201,3 +201,3 @@ - MemoryStore: _(default)_ Simple in-memory option. Does not share state when app has multiple processes or servers. | ||
- Removed `delayAfter` and `delayMs` options; they were moved to a new module: [express-slow-down](https://npmjs.org/package/express-rate-limit). | ||
- Removed `delayAfter` and `delayMs` options; they were moved to a new module: [express-slow-down](https://npmjs.org/package/express-slow-down). | ||
- Simplified the default `handler` function so that it no longer changes the response format. Now uses [res.send](https://expressjs.com/en/4x/api.html#res.send). | ||
@@ -204,0 +204,0 @@ - `onLimitReached` now only triggers once for a given ip and window. only `handle` is called for every blocked request. |
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
14130