express-rate-limit 8.2.0 → 8.2.1
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/dist/index.cjs +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -546,8 +546,12 @@ var validations = {
|
|
|
546
546
|
passOnStoreError: true
|
|
547
547
|
};
|
|
548
548
|
const validOptions = Object.keys(optionsMap).concat(
|
|
549
|
-
"draft_polli_ratelimit_headers"
|
|
549
|
+
"draft_polli_ratelimit_headers",
|
|
550
550
|
// not a valid option anymore, but we have a more specific check for this one, so don't warn for it here
|
|
551
|
+
// from express-slow-down - https://github.com/express-rate-limit/express-slow-down/blob/main/source/types.ts#L65
|
|
552
|
+
"delayAfter",
|
|
553
|
+
"delayMs",
|
|
554
|
+
"maxDelayMs"
|
|
551
555
|
);
|
|
552
556
|
for (const key of Object.keys(passedOptions)) {
|
|
553
557
|
if (!validOptions.includes(key)) {
|
package/dist/index.mjs
CHANGED
|
@@ -517,8 +517,12 @@ var validations = {
|
|
|
517
517
|
passOnStoreError: true
|
|
518
518
|
};
|
|
519
519
|
const validOptions = Object.keys(optionsMap).concat(
|
|
520
|
-
"draft_polli_ratelimit_headers"
|
|
520
|
+
"draft_polli_ratelimit_headers",
|
|
521
521
|
// not a valid option anymore, but we have a more specific check for this one, so don't warn for it here
|
|
522
|
+
// from express-slow-down - https://github.com/express-rate-limit/express-slow-down/blob/main/source/types.ts#L65
|
|
523
|
+
"delayAfter",
|
|
524
|
+
"delayMs",
|
|
525
|
+
"maxDelayMs"
|
|
522
526
|
);
|
|
523
527
|
for (const key of Object.keys(passedOptions)) {
|
|
524
528
|
if (!validOptions.includes(key)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-rate-limit",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
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",
|