Skip to content

Commit

Permalink
feat: update old npm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Nov 26, 2023
1 parent ebb307b commit 8243179
Show file tree
Hide file tree
Showing 3 changed files with 3,511 additions and 2,551 deletions.
122 changes: 61 additions & 61 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,81 +36,81 @@
"prepare": "husky install"
},
"dependencies": {
"@aws-sdk/client-cloudwatch-logs": "^3.245.0",
"@faker-js/faker": "^7.6.0",
"@nestjs-modules/mailer": "^1.8.1",
"@nestjs/bull": "^0.6.2",
"@nestjs/common": "^9.2.1",
"@nestjs/core": "^9.2.1",
"@nestjs/jwt": "^10.0.1",
"@nestjs/mapped-types": "^1.2.0",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-express": "^9.2.1",
"@nestjs/serve-static": "^3.0.0",
"@nestjs/swagger": "^6.1.4",
"@nestjs/throttler": "^3.1.0",
"@nestjs/typeorm": "^9.0.1",
"@types/cookie-parser": "^1.4.3",
"aws-sdk": "^2.1290.0",
"bcrypt": "^5.1.0",
"bull": "^4.10.2",
"@aws-sdk/client-cloudwatch-logs": "^3.454.0",
"@faker-js/faker": "^8.3.1",
"@nestjs-modules/mailer": "^1.9.1",
"@nestjs/bull": "^10.0.1",
"@nestjs/common": "^10.2.10",
"@nestjs/core": "^10.2.10",
"@nestjs/jwt": "^10.2.0",
"@nestjs/mapped-types": "^2.0.4",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-express": "^10.2.10",
"@nestjs/serve-static": "^4.0.0",
"@nestjs/swagger": "^7.1.16",
"@nestjs/throttler": "^5.0.1",
"@nestjs/typeorm": "^10.0.1",
"@types/cookie-parser": "^1.4.6",
"aws-sdk": "^2.1502.0",
"bcrypt": "^5.1.1",
"bull": "^4.11.5",
"class-transformer": "^0.5.1",
"class-validator": "0.13.2",
"config": "^3.3.8",
"class-validator": "0.14.0",
"config": "^3.3.9",
"cookie-parser": "^1.4.6",
"coveralls": "^3.1.1",
"helmet": "^6.0.1",
"ioredis": "^5.2.4",
"nest-winston": "^1.8.0",
"nestjs-i18n": "^10.2.4",
"nestjs-throttler-storage-redis": "^0.2.2",
"nodemailer": "^6.8.0",
"helmet": "^7.1.0",
"ioredis": "^5.3.2",
"nest-winston": "^1.9.4",
"nestjs-i18n": "^10.3.7",
"nestjs-throttler-storage-redis": "^0.4.1",
"nodemailer": "^6.9.7",
"otplib": "^12.0.1",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"pg": "^8.8.0",
"pg": "^8.11.3",
"pug": "^3.0.2",
"qrcode": "^1.5.1",
"rate-limiter-flexible": "^2.4.1",
"qrcode": "^1.5.3",
"rate-limiter-flexible": "^3.0.4",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.0",
"swagger-ui-express": "^4.6.0",
"typeorm": "^0.3.11",
"ua-parser-js": "^1.0.32",
"uuid": "^9.0.0",
"winston": "^3.8.2",
"winston-cloudwatch": "^6.1.1"
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.17",
"ua-parser-js": "^1.0.37",
"uuid": "^9.0.1",
"winston": "^3.11.0",
"winston-cloudwatch": "^6.2.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@nestjs/cli": "^9.1.8",
"@nestjs/schematics": "^9.0.4",
"@nestjs/testing": "^9.2.1",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@nestjs/cli": "^10.2.1",
"@nestjs/schematics": "^10.0.3",
"@nestjs/testing": "^10.2.10",
"@types/bull": "^4.10.0",
"@types/express": "^4.17.15",
"@types/jest": "^29.2.5",
"@types/multer": "^1.4.7",
"@types/node": "18.11.18",
"@types/passport-jwt": "^3.0.8",
"@types/supertest": "^2.0.12",
"@types/ua-parser-js": "^0.7.36",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.10",
"@types/multer": "^1.4.11",
"@types/node": "20.10.0",
"@types/passport-jwt": "^3.0.13",
"@types/supertest": "^2.0.16",
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"husky": "^8.0.3",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"prettier": "^2.8.2",
"rimraf": "^3.0.2",
"jest": "^29.7.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"supertest": "^6.3.3",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.2",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.2",
"typescript": "^4.9.4"
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.2"
},
"jest": {
"moduleFileExtensions": [
Expand Down
9 changes: 7 additions & 2 deletions src/config/throttle-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ import config from 'config';
const throttleConfigVariables = config.get('throttle.global');
const redisConfig = config.get('queue');
export const throttleConfig: ThrottlerModuleOptions = {
ttl: process.env.THROTTLE_TTL || throttleConfigVariables.get('ttl'),
limit: process.env.THROTTLE_LIMIT || throttleConfigVariables.get('limit'),
throttlers: [
{
ttl: process.env.THROTTLE_TTL || throttleConfigVariables.get('ttl'),
limit: process.env.THROTTLE_LIMIT || throttleConfigVariables.get('limit'),
name: 'auth'
}
],
storage: new ThrottlerStorageRedisService({
host: process.env.REDIS_HOST || redisConfig.host,
port: process.env.REDIS_PORT || redisConfig.port,
Expand Down
Loading

0 comments on commit 8243179

Please sign in to comment.