express-rate-limit 8.2.2 → 8.3.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/package.json +111 -110
- package/readme.md +1 -1
package/package.json
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
2
|
+
"name": "express-rate-limit",
|
|
3
|
+
"version": "8.3.1",
|
|
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
|
+
"author": {
|
|
6
|
+
"name": "Nathan Friedly",
|
|
7
|
+
"url": "http://nfriedly.com/"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"homepage": "https://github.com/express-rate-limit/express-rate-limit",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/express-rate-limit/express-rate-limit.git"
|
|
14
|
+
},
|
|
15
|
+
"funding": "https://github.com/sponsors/express-rate-limit",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"express-rate-limit",
|
|
18
|
+
"express",
|
|
19
|
+
"rate",
|
|
20
|
+
"limit",
|
|
21
|
+
"ratelimit",
|
|
22
|
+
"rate-limit",
|
|
23
|
+
"middleware",
|
|
24
|
+
"ip",
|
|
25
|
+
"auth",
|
|
26
|
+
"authorization",
|
|
27
|
+
"security",
|
|
28
|
+
"brute",
|
|
29
|
+
"force",
|
|
30
|
+
"bruteforce",
|
|
31
|
+
"brute-force",
|
|
32
|
+
"attack"
|
|
33
|
+
],
|
|
34
|
+
"type": "module",
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/index.d.mts",
|
|
39
|
+
"default": "./dist/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/index.d.cts",
|
|
43
|
+
"default": "./dist/index.cjs"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"main": "./dist/index.cjs",
|
|
48
|
+
"module": "./dist/index.mjs",
|
|
49
|
+
"types": "./dist/index.d.ts",
|
|
50
|
+
"files": [
|
|
51
|
+
"dist/",
|
|
52
|
+
"tsconfig.json"
|
|
53
|
+
],
|
|
54
|
+
"engines": {
|
|
55
|
+
"node": ">= 16"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"clean": "del-cli dist/ coverage/ *.log *.tmp *.bak *.tgz",
|
|
59
|
+
"build:cjs": "esbuild --packages=external --platform=node --bundle --target=es2022 --format=cjs --outfile=dist/index.cjs --footer:js=\"module.exports = Object.assign(rateLimit, module.exports);\" source/index.ts",
|
|
60
|
+
"build:esm": "esbuild --packages=external --platform=node --bundle --target=es2022 --format=esm --outfile=dist/index.mjs source/index.ts",
|
|
61
|
+
"build:types": "dts-bundle-generator --out-file=dist/index.d.ts source/index.ts && cp dist/index.d.ts dist/index.d.cts && cp dist/index.d.ts dist/index.d.mts",
|
|
62
|
+
"compile": "run-s clean build:*",
|
|
63
|
+
"docs": "cd docs && mintlify dev",
|
|
64
|
+
"lint:code": "biome check",
|
|
65
|
+
"lint:docs": "prettier --check docs/ *.md",
|
|
66
|
+
"lint": "run-s lint:*",
|
|
67
|
+
"format:code": "biome check --write",
|
|
68
|
+
"format:docs": "prettier --write docs/ *.md",
|
|
69
|
+
"format": "run-s format:*",
|
|
70
|
+
"test:lib": "jest",
|
|
71
|
+
"test:ext": "cd test/external/ && bash run-all-tests",
|
|
72
|
+
"test": "run-s lint test:lib",
|
|
73
|
+
"pre-commit": "lint-staged",
|
|
74
|
+
"prepare": "run-s compile && husky"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"ip-address": "10.1.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"express": ">= 4.11"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@biomejs/biome": "2.4.6",
|
|
84
|
+
"@express-rate-limit/prettier": "1.1.1",
|
|
85
|
+
"@express-rate-limit/tsconfig": "1.0.2",
|
|
86
|
+
"@jest/globals": "30.2.0",
|
|
87
|
+
"@types/express": "5.0.6",
|
|
88
|
+
"@types/jest": "30.0.0",
|
|
89
|
+
"@types/node": "25.3.3",
|
|
90
|
+
"@types/supertest": "7.2.0",
|
|
91
|
+
"del-cli": "7.0.0",
|
|
92
|
+
"dts-bundle-generator": "8.1.2",
|
|
93
|
+
"esbuild": "0.27.3",
|
|
94
|
+
"express": "5.2.1",
|
|
95
|
+
"husky": "9.1.7",
|
|
96
|
+
"jest": "30.2.0",
|
|
97
|
+
"lint-staged": "16.3.2",
|
|
98
|
+
"mintlify": "4.2.392",
|
|
99
|
+
"npm-run-all": "4.1.5",
|
|
100
|
+
"prettier": "3.8.1",
|
|
101
|
+
"ratelimit-header-parser": "0.1.0",
|
|
102
|
+
"supertest": "7.2.2",
|
|
103
|
+
"ts-jest": "29.4.6",
|
|
104
|
+
"ts-node": "10.9.2",
|
|
105
|
+
"typescript": "5.9.3"
|
|
106
|
+
},
|
|
107
|
+
"prettier": "@express-rate-limit/prettier",
|
|
108
|
+
"lint-staged": {
|
|
109
|
+
"*.{js,ts,json}": "biome check --write",
|
|
110
|
+
"*.{md,yaml}": "prettier --write"
|
|
111
|
+
}
|
|
112
|
+
}
|
package/readme.md
CHANGED
|
@@ -108,7 +108,7 @@ If you need help with something, feel free to
|
|
|
108
108
|
[start a discussion](https://github.com/express-rate-limit/express-rate-limit/discussions/new)!
|
|
109
109
|
|
|
110
110
|
If you wish to contribute to the library, thanks! First, please read
|
|
111
|
-
[the contributing guide](https://express-rate-limit.mintlify.app/
|
|
111
|
+
[the contributing guide](https://express-rate-limit.mintlify.app/guides/contributing).
|
|
112
112
|
Then you can pick up any issue and fix/implement it!
|
|
113
113
|
|
|
114
114
|
## License
|