@nestjs/throttler 1.2.1 → 3.0.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/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +37 -4
- package/dist/index.js +27 -46
- package/dist/index.js.map +1 -1
- package/dist/throttler-module-options.interface.js +3 -3
- package/dist/throttler-storage.interface.js +3 -3
- package/dist/throttler.constants.js +4 -8
- package/dist/throttler.decorator.js +27 -31
- package/dist/throttler.decorator.js.map +1 -1
- package/dist/throttler.exception.js +7 -7
- package/dist/throttler.guard.js +85 -110
- package/dist/throttler.guard.js.map +1 -1
- package/dist/throttler.module.js +58 -77
- package/dist/throttler.module.js.map +1 -1
- package/dist/throttler.providers.js +18 -22
- package/dist/throttler.service.js +37 -47
- package/dist/throttler.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +50 -52
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/throttler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A Rate-Limiting module for NestJS to work on Express, Fastify, Websockets, Socket.IO, and GraphQL, all rolled up into a simple package.",
|
|
5
5
|
"author": "Jay McDoniel <me@jaymcdoniel.dev>",
|
|
6
6
|
"contributors": [],
|
|
@@ -39,70 +39,68 @@
|
|
|
39
39
|
"test:e2e": "jest --config ./test/jest-e2e.json --detectOpenHandles",
|
|
40
40
|
"test:e2e:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --config test/jest-e2e.json --runInBand",
|
|
41
41
|
"test:e2e:dev": "yarn test:e2e --watchAll",
|
|
42
|
-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
|
|
43
42
|
"_postinstall": "husky install",
|
|
44
43
|
"postpublish": "pinst --enable",
|
|
45
|
-
"prepublishOnly": "pinst --disable"
|
|
44
|
+
"prepublishOnly": "pinst --disable",
|
|
45
|
+
"release": "changeset publish"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"md5": "^2.2.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@
|
|
52
|
-
"@commitlint/
|
|
53
|
-
"@
|
|
54
|
-
"@nestjs/
|
|
55
|
-
"@nestjs/
|
|
56
|
-
"@nestjs/
|
|
57
|
-
"@nestjs/
|
|
58
|
-
"@nestjs/platform-
|
|
59
|
-
"@nestjs/platform-
|
|
60
|
-
"@nestjs/platform-
|
|
61
|
-
"@nestjs/
|
|
62
|
-
"@nestjs/
|
|
63
|
-
"@nestjs/
|
|
64
|
-
"@
|
|
51
|
+
"@changesets/cli": "2.23.1",
|
|
52
|
+
"@commitlint/cli": "17.0.3",
|
|
53
|
+
"@commitlint/config-angular": "17.0.3",
|
|
54
|
+
"@nestjs/cli": "9.0.0",
|
|
55
|
+
"@nestjs/common": "9.0.1",
|
|
56
|
+
"@nestjs/core": "9.0.1",
|
|
57
|
+
"@nestjs/graphql": "10.0.18",
|
|
58
|
+
"@nestjs/platform-express": "9.0.1",
|
|
59
|
+
"@nestjs/platform-fastify": "9.0.1",
|
|
60
|
+
"@nestjs/platform-socket.io": "9.0.1",
|
|
61
|
+
"@nestjs/platform-ws": "9.0.1",
|
|
62
|
+
"@nestjs/schematics": "9.0.1",
|
|
63
|
+
"@nestjs/testing": "9.0.1",
|
|
64
|
+
"@nestjs/websockets": "9.0.1",
|
|
65
|
+
"@semantic-release/git": "10.0.1",
|
|
65
66
|
"@types/express": "4.17.13",
|
|
66
|
-
"@types/express-serve-static-core": "4.17.
|
|
67
|
-
"@types/jest": "
|
|
68
|
-
"@types/md5": "2.3.
|
|
69
|
-
"@types/node": "16.
|
|
70
|
-
"@types/
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"apollo-server-fastify": "2.25.2",
|
|
77
|
-
"conventional-changelog-cli": "2.1.1",
|
|
67
|
+
"@types/express-serve-static-core": "4.17.29",
|
|
68
|
+
"@types/jest": "28.1.4",
|
|
69
|
+
"@types/md5": "2.3.2",
|
|
70
|
+
"@types/node": "16.11.43",
|
|
71
|
+
"@types/supertest": "2.0.12",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "5.30.5",
|
|
73
|
+
"@typescript-eslint/parser": "5.30.5",
|
|
74
|
+
"apollo-server-express": "3.9.0",
|
|
75
|
+
"apollo-server-fastify": "3.9.0",
|
|
76
|
+
"conventional-changelog-cli": "2.2.2",
|
|
78
77
|
"cz-conventional-changelog": "3.3.0",
|
|
79
|
-
"eslint": "
|
|
80
|
-
"eslint-config-prettier": "8.
|
|
81
|
-
"eslint-plugin-import": "2.
|
|
82
|
-
"graphql": "
|
|
83
|
-
"graphql-tools": "
|
|
84
|
-
"husky": "
|
|
85
|
-
"jest": "
|
|
86
|
-
"lint-staged": "
|
|
87
|
-
"nodemon": "2.0.
|
|
88
|
-
"pinst": "
|
|
89
|
-
"prettier": "2.
|
|
78
|
+
"eslint": "8.19.0",
|
|
79
|
+
"eslint-config-prettier": "8.5.0",
|
|
80
|
+
"eslint-plugin-import": "2.26.0",
|
|
81
|
+
"graphql": "16.5.0",
|
|
82
|
+
"graphql-tools": "8.3.0",
|
|
83
|
+
"husky": "8.0.1",
|
|
84
|
+
"jest": "28.1.2",
|
|
85
|
+
"lint-staged": "13.0.3",
|
|
86
|
+
"nodemon": "2.0.19",
|
|
87
|
+
"pinst": "3.0.0",
|
|
88
|
+
"prettier": "2.7.1",
|
|
90
89
|
"reflect-metadata": "0.1.13",
|
|
91
90
|
"rimraf": "3.0.2",
|
|
92
|
-
"rxjs": "7.
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"ts-
|
|
97
|
-
"ts-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"ws": "7.5.2"
|
|
91
|
+
"rxjs": "7.5.5",
|
|
92
|
+
"socket.io": "4.5.1",
|
|
93
|
+
"supertest": "6.2.4",
|
|
94
|
+
"ts-jest": "28.0.5",
|
|
95
|
+
"ts-loader": "9.3.1",
|
|
96
|
+
"ts-node": "10.8.2",
|
|
97
|
+
"tsconfig-paths": "4.0.0",
|
|
98
|
+
"typescript": "4.7.4",
|
|
99
|
+
"ws": "8.8.0"
|
|
102
100
|
},
|
|
103
101
|
"peerDependencies": {
|
|
104
|
-
"@nestjs/common": "^7.0.0 || ^8.0.0",
|
|
105
|
-
"@nestjs/core": "^7.0.0 || ^8.0.0",
|
|
102
|
+
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
103
|
+
"@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
106
104
|
"reflect-metadata": "^0.1.13"
|
|
107
105
|
},
|
|
108
106
|
"jest": {
|