express-rate-limit
Advanced tools
Comparing version 7.3.1 to 7.4.0
@@ -405,2 +405,6 @@ // Generated by dts-bundle-generator v8.0.1 | ||
max?: number | ValueDeterminingMiddleware<number>; | ||
/** | ||
* If the Store generates an error, allow the request to pass. | ||
*/ | ||
passOnStoreError: boolean; | ||
}; | ||
@@ -407,0 +411,0 @@ /** |
{ | ||
"name": "express-rate-limit", | ||
"version": "7.3.1", | ||
"version": "7.4.0", | ||
"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 @@ "author": { |
@@ -58,2 +58,3 @@ <h1 align="center"> <code>express-rate-limit</code> </h1> | ||
| [`store`] | `Store` | Use a custom store to share hit counts across multiple nodes. | | ||
| [`passOnStoreError`] | `boolean` | Allow (`true`) or block (`false`, default) traffic if the store becomes unavailable. | | ||
| [`keyGenerator`] | `function` | Identify users (defaults to IP address). | | ||
@@ -130,2 +131,4 @@ | [`requestPropertyName`] | `string` | Add rate limit info to the `req` object. | | ||
[`store`]: https://express-rate-limit.mintlify.app/reference/configuration#store | ||
[`passOnStoreError`]: | ||
https://express-rate-limit.mintlify.app/reference/configuration#passOnStoreError | ||
[`keyGenerator`]: | ||
@@ -132,0 +135,0 @@ https://express-rate-limit.mintlify.app/reference/configuration#keygenerator |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
116886
2073
145
8