express-rate-limit 8.3.2 → 8.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-rate-limit",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Nathan Friedly",
|
package/readme.md
CHANGED
|
@@ -66,6 +66,7 @@ default values.
|
|
|
66
66
|
| [`skipFailedRequests`] | `boolean` | Uncount 4xx/5xx responses. |
|
|
67
67
|
| [`requestWasSuccessful`] | `function` | Used by `skipSuccessfulRequests` and `skipFailedRequests`. |
|
|
68
68
|
| [`validate`] | `boolean` \| `object` | Enable or disable built-in validation checks. |
|
|
69
|
+
| [`logger`] | `Logger` | Custom logger |
|
|
69
70
|
|
|
70
71
|
## Thank You
|
|
71
72
|
|
|
@@ -134,3 +135,5 @@ MIT © [Nathan Friedly](http://nfriedly.com/),
|
|
|
134
135
|
https://express-rate-limit.mintlify.app/reference/configuration#requestwassuccessful
|
|
135
136
|
[`validate`]:
|
|
136
137
|
https://express-rate-limit.mintlify.app/reference/configuration#validate
|
|
138
|
+
[`logger`]:
|
|
139
|
+
https://express-rate-limit.mintlify.app/reference/configuration#logger
|