feat: rate limiter (#4011)

This commit is contained in:
DarkSky
2023-08-31 20:29:25 +08:00
committed by GitHub
parent 8e48255ef8
commit 4ef1425299
15 changed files with 184 additions and 12 deletions

View File

@@ -12,7 +12,9 @@
"start": "node --loader ts-node/esm.mjs --es-module-specifier-resolution node ./src/index.ts",
"dev": "nodemon ./src/index.ts",
"test": "yarn exec ts-node-esm ./scripts/run-test.ts all",
"test:select": "yarn exec ts-node-esm ./scripts/run-test.ts",
"test:watch": "yarn exec ts-node-esm ./scripts/run-test.ts all --watch",
"test:select:watch": "yarn exec ts-node-esm ./scripts/run-test.ts --watch",
"test:coverage": "c8 yarn exec ts-node-esm ./scripts/run-test.ts all",
"postinstall": "prisma generate"
},
@@ -28,6 +30,7 @@
"@nestjs/graphql": "^12.0.8",
"@nestjs/platform-express": "^10.2.2",
"@nestjs/platform-socket.io": "^10.2.2",
"@nestjs/throttler": "^4.2.1",
"@nestjs/websockets": "^10.2.2",
"@node-rs/argon2": "^1.5.2",
"@node-rs/crc32": "^1.7.2",
@@ -55,6 +58,7 @@
"graphql-upload": "^16.0.2",
"ioredis": "^5.3.2",
"lodash-es": "^4.17.21",
"nestjs-throttler-storage-redis": "^0.3.3",
"next-auth": "4.22.5",
"nodemailer": "^6.9.4",
"on-headers": "^1.0.2",