express-rate-limit 5.2.3 → 5.2.5
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/README.md +2 -3
- package/lib/express-rate-limit.js +4 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -9,12 +9,11 @@ Basic rate-limiting middleware for Express. Use to limit repeated requests to pu
|
|
|
9
9
|
|
|
10
10
|
Plays nice with [express-slow-down](https://www.npmjs.com/package/express-slow-down).
|
|
11
11
|
|
|
12
|
-
Note: this module does not share state with other processes/servers by default.
|
|
13
|
-
If you need a more robust solution, I recommend using an external store:
|
|
12
|
+
Note: this module does not share state with other processes/servers by default. It also buckets all requests to an internal clock rather than starting a new timer for each end-user. It's fine for abuse-prevention but might not produce the desired effect when attempting to strictly enforce API rate-limits or similar. If you need a more robust solution, I recommend using an external store:
|
|
14
13
|
|
|
15
14
|
### Stores
|
|
16
15
|
|
|
17
|
-
- Memory Store _(default, built-in)_ - stores hits in-memory in the Node.js process. Does not share state with other servers or processes.
|
|
16
|
+
- Memory Store _(default, built-in)_ - stores hits in-memory in the Node.js process. Does not share state with other servers or processes, and does not start a separate timer for each end user.
|
|
18
17
|
- [Redis Store](https://npmjs.com/package/rate-limit-redis)
|
|
19
18
|
- [Memcached Store](https://npmjs.org/package/rate-limit-memcached)
|
|
20
19
|
- [Mongo Store](https://www.npmjs.com/package/rate-limit-mongo)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-rate-limit",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.5",
|
|
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
|
"homepage": "https://github.com/nfriedly/express-rate-limit",
|
|
6
6
|
"author": {
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"brute-force",
|
|
32
32
|
"attack"
|
|
33
33
|
],
|
|
34
|
-
"dependencies": {},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"
|
|
37
|
-
"eslint
|
|
38
|
-
"eslint-
|
|
35
|
+
"bluebird": "^3.7.2",
|
|
36
|
+
"eslint": "^7.19.0",
|
|
37
|
+
"eslint-config-prettier": "^7.2.0",
|
|
38
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
39
39
|
"express": "^4.17.1",
|
|
40
|
-
"husky": "^4.
|
|
41
|
-
"mocha": "^
|
|
42
|
-
"prettier": "^2.
|
|
43
|
-
"pretty-quick": "^
|
|
44
|
-
"supertest": "^
|
|
40
|
+
"husky": "^4.3.8",
|
|
41
|
+
"mocha": "^8.2.1",
|
|
42
|
+
"prettier": "^2.2.1",
|
|
43
|
+
"pretty-quick": "^3.1.0",
|
|
44
|
+
"supertest": "^6.1.3"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"lint": "eslint .",
|