@nestjs/throttler
Advanced tools
Comparing version 1.1.4 to 1.2.0
@@ -1,7 +0,7 @@ | ||
## [1.1.4](https://github.com/nestjs/throttler/compare/v1.1.3...v1.1.4) (2021-05-17) | ||
# [1.2.0](https://github.com/nestjs/throttler/compare/v1.1.4...v1.2.0) (2021-06-23) | ||
### Bug Fixes | ||
### Features | ||
* package name of throttler ([9321e0f](https://github.com/nestjs/throttler/commit/9321e0f6602c93c75043489bf247793253835e2d)) | ||
* Add throwThrottlingException method ([f502b74](https://github.com/nestjs/throttler/commit/f502b745cd497e332fd9fe637221cc7f207410b0)), closes [#531](https://github.com/nestjs/throttler/issues/531) | ||
@@ -8,0 +8,0 @@ |
@@ -20,2 +20,3 @@ import { CanActivate, ExecutionContext } from '@nestjs/common'; | ||
protected generateKey(context: ExecutionContext, suffix: string): string; | ||
protected throwThrottlingException(context: ExecutionContext): void; | ||
} |
@@ -64,3 +64,3 @@ "use strict"; | ||
res.header('Retry-After', nearestExpiryTime); | ||
throw new throttler_exception_1.ThrottlerException(this.errorMessage); | ||
this.throwThrottlingException(context); | ||
} | ||
@@ -84,2 +84,5 @@ res.header(`${this.headerPrefix}-Limit`, limit); | ||
} | ||
throwThrottlingException(context) { | ||
throw new throttler_exception_1.ThrottlerException(this.errorMessage); | ||
} | ||
}; | ||
@@ -86,0 +89,0 @@ ThrottlerGuard = __decorate([ |
{ | ||
"name": "@nestjs/throttler", | ||
"version": "1.1.4", | ||
"version": "1.2.0", | ||
"description": "A Rate-Limiting module for NestJS to work on Express, Fastify, Websockets, Socket.IO, and GraphQL, all rolled up into a simple package.", | ||
@@ -54,30 +54,30 @@ "author": "Jay McDoniel <me@jaymcdoniel.dev>", | ||
"@nestjs/cli": "7.6.0", | ||
"@nestjs/common": "7.6.15", | ||
"@nestjs/core": "7.6.15", | ||
"@nestjs/common": "7.6.18", | ||
"@nestjs/core": "7.6.18", | ||
"@nestjs/graphql": "7.10.6", | ||
"@nestjs/platform-express": "7.6.15", | ||
"@nestjs/platform-fastify": "7.6.15", | ||
"@nestjs/platform-socket.io": "7.6.15", | ||
"@nestjs/platform-ws": "7.6.15", | ||
"@nestjs/platform-express": "7.6.18", | ||
"@nestjs/platform-fastify": "7.6.18", | ||
"@nestjs/platform-socket.io": "7.6.18", | ||
"@nestjs/platform-ws": "7.6.18", | ||
"@nestjs/schematics": "7.3.1", | ||
"@nestjs/testing": "7.6.15", | ||
"@nestjs/websockets": "7.6.15", | ||
"@types/express": "4.17.9", | ||
"@types/express-serve-static-core": "4.17.19", | ||
"@nestjs/testing": "7.6.18", | ||
"@nestjs/websockets": "7.6.18", | ||
"@types/express": "4.17.12", | ||
"@types/express-serve-static-core": "4.17.21", | ||
"@types/jest": "26.0.23", | ||
"@types/md5": "2.3.0", | ||
"@types/node": "14.14.45", | ||
"@types/node": "14.17.4", | ||
"@types/socket.io": "3.0.1", | ||
"@types/socket.io-client": "1.4.36", | ||
"@types/supertest": "2.0.11", | ||
"@typescript-eslint/eslint-plugin": "4.23.0", | ||
"@typescript-eslint/parser": "4.23.0", | ||
"apollo-server-express": "2.24.0", | ||
"apollo-server-fastify": "2.24.0", | ||
"@typescript-eslint/eslint-plugin": "4.28.0", | ||
"@typescript-eslint/parser": "4.28.0", | ||
"apollo-server-express": "2.25.2", | ||
"apollo-server-fastify": "2.25.2", | ||
"conventional-changelog-cli": "2.1.1", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "7.26.0", | ||
"eslint": "7.29.0", | ||
"eslint-config-prettier": "7.2.0", | ||
"eslint-plugin-import": "2.23.2", | ||
"graphql": "15.5.0", | ||
"eslint-plugin-import": "2.23.4", | ||
"graphql": "15.5.1", | ||
"graphql-tools": "7.0.5", | ||
@@ -89,15 +89,15 @@ "husky": "6.0.0", | ||
"pinst": "2.1.6", | ||
"prettier": "2.3.0", | ||
"prettier": "2.3.1", | ||
"reflect-metadata": "0.1.13", | ||
"rimraf": "3.0.2", | ||
"rxjs": "7.0.1", | ||
"semantic-release": "17.4.3", | ||
"socket.io": "4.1.1", | ||
"rxjs": "7.1.0", | ||
"semantic-release": "17.4.4", | ||
"socket.io": "4.1.2", | ||
"supertest": "6.1.3", | ||
"ts-jest": "26.5.6", | ||
"ts-loader": "8.2.0", | ||
"ts-loader": "8.3.0", | ||
"ts-node": "9.1.1", | ||
"tsconfig-paths": "3.9.0", | ||
"typescript": "4.2.4", | ||
"ws": "7.4.5" | ||
"typescript": "4.3.4", | ||
"ws": "7.5.0" | ||
}, | ||
@@ -104,0 +104,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
398
130180