@nestjs/throttler
Advanced tools
Comparing version 4.0.0 to 4.1.0
export declare const Throttle: (limit?: number, ttl?: number) => MethodDecorator & ClassDecorator; | ||
export declare const SkipThrottle: (skip?: boolean) => MethodDecorator & ClassDecorator; | ||
export declare const InjectThrottlerOptions: () => (target: object, key: string | symbol, index?: number) => void; | ||
export declare const InjectThrottlerStorage: () => (target: object, key: string | symbol, index?: number) => void; | ||
export declare const InjectThrottlerOptions: () => PropertyDecorator & ParameterDecorator; | ||
export declare const InjectThrottlerStorage: () => PropertyDecorator & ParameterDecorator; |
@@ -23,3 +23,3 @@ "use strict"; | ||
const throttler_exception_1 = require("./throttler.exception"); | ||
let ThrottlerGuard = class ThrottlerGuard { | ||
let ThrottlerGuard = exports.ThrottlerGuard = class ThrottlerGuard { | ||
constructor(options, storageService, reflector) { | ||
@@ -88,3 +88,3 @@ this.options = options; | ||
}; | ||
ThrottlerGuard = __decorate([ | ||
exports.ThrottlerGuard = ThrottlerGuard = __decorate([ | ||
(0, common_1.Injectable)(), | ||
@@ -95,3 +95,2 @@ __param(0, (0, throttler_decorator_1.InjectThrottlerOptions)()), | ||
], ThrottlerGuard); | ||
exports.ThrottlerGuard = ThrottlerGuard; | ||
//# sourceMappingURL=throttler.guard.js.map |
@@ -14,3 +14,3 @@ "use strict"; | ||
const throttler_providers_1 = require("./throttler.providers"); | ||
let ThrottlerModule = ThrottlerModule_1 = class ThrottlerModule { | ||
let ThrottlerModule = exports.ThrottlerModule = ThrottlerModule_1 = class ThrottlerModule { | ||
static forRoot(options = {}) { | ||
@@ -60,7 +60,6 @@ const providers = [...(0, throttler_providers_1.createThrottlerProviders)(options), throttler_providers_1.ThrottlerStorageProvider]; | ||
}; | ||
ThrottlerModule = ThrottlerModule_1 = __decorate([ | ||
exports.ThrottlerModule = ThrottlerModule = ThrottlerModule_1 = __decorate([ | ||
(0, common_1.Global)(), | ||
(0, common_1.Module)({}) | ||
], ThrottlerModule); | ||
exports.ThrottlerModule = ThrottlerModule; | ||
//# sourceMappingURL=throttler.module.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
const common_1 = require("@nestjs/common"); | ||
let ThrottlerStorageService = class ThrottlerStorageService { | ||
let ThrottlerStorageService = exports.ThrottlerStorageService = class ThrottlerStorageService { | ||
constructor() { | ||
@@ -52,6 +52,5 @@ this._storage = {}; | ||
}; | ||
ThrottlerStorageService = __decorate([ | ||
exports.ThrottlerStorageService = ThrottlerStorageService = __decorate([ | ||
(0, common_1.Injectable)() | ||
], ThrottlerStorageService); | ||
exports.ThrottlerStorageService = ThrottlerStorageService; | ||
//# sourceMappingURL=throttler.service.js.map |
124
package.json
{ | ||
"name": "@nestjs/throttler", | ||
"version": "4.0.0", | ||
"version": "4.1.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.", | ||
@@ -27,22 +27,2 @@ "author": "Jay McDoniel <me@jaymcdoniel.dev>", | ||
], | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"preversion": "yarn run format && yarn run lint && yarn build", | ||
"build": "nest build", | ||
"commit": "git-cz", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"start:dev": "nodemon --watch '{src,test/app}/**/*.ts' --ignore '**/*.spec.ts' --exec 'ts-node' test/app/main.ts", | ||
"lint": "eslint \"{src,test}/**/*.ts\" --fix", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:cov": "jest --coverage", | ||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", | ||
"test:e2e": "jest --config ./test/jest-e2e.json --detectOpenHandles", | ||
"test:e2e:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --config test/jest-e2e.json --runInBand", | ||
"test:e2e:dev": "yarn test:e2e --watchAll", | ||
"_postinstall": "husky install", | ||
"postpublish": "pinst --enable", | ||
"prepublishOnly": "pinst --disable", | ||
"release": "changeset publish" | ||
}, | ||
"dependencies": { | ||
@@ -52,55 +32,55 @@ "md5": "^2.2.1" | ||
"devDependencies": { | ||
"@changesets/cli": "2.26.0", | ||
"@commitlint/cli": "17.4.2", | ||
"@commitlint/config-angular": "17.4.2", | ||
"@nestjs/cli": "9.1.8", | ||
"@nestjs/common": "9.2.1", | ||
"@nestjs/core": "9.2.1", | ||
"@nestjs/graphql": "10.1.7", | ||
"@nestjs/platform-express": "9.2.1", | ||
"@nestjs/platform-fastify": "9.2.1", | ||
"@nestjs/platform-socket.io": "9.2.1", | ||
"@nestjs/platform-ws": "9.2.1", | ||
"@nestjs/schematics": "9.0.4", | ||
"@nestjs/testing": "9.2.1", | ||
"@nestjs/websockets": "9.2.1", | ||
"@changesets/cli": "2.26.1", | ||
"@commitlint/cli": "17.6.5", | ||
"@commitlint/config-angular": "17.6.5", | ||
"@nestjs/cli": "10.0.1", | ||
"@nestjs/common": "10.0.0", | ||
"@nestjs/core": "10.0.0", | ||
"@nestjs/graphql": "11.0.6", | ||
"@nestjs/platform-express": "10.0.0", | ||
"@nestjs/platform-fastify": "10.0.0", | ||
"@nestjs/platform-socket.io": "10.0.0", | ||
"@nestjs/platform-ws": "10.0.0", | ||
"@nestjs/schematics": "10.0.1", | ||
"@nestjs/testing": "10.0.0", | ||
"@nestjs/websockets": "10.0.0", | ||
"@semantic-release/git": "10.0.1", | ||
"@types/express": "4.17.15", | ||
"@types/express-serve-static-core": "4.17.32", | ||
"@types/jest": "29.2.6", | ||
"@types/express": "4.17.17", | ||
"@types/express-serve-static-core": "4.17.35", | ||
"@types/jest": "29.5.2", | ||
"@types/md5": "2.3.2", | ||
"@types/node": "18.11.18", | ||
"@types/node": "18.16.18", | ||
"@types/supertest": "2.0.12", | ||
"@typescript-eslint/eslint-plugin": "5.48.2", | ||
"@typescript-eslint/parser": "5.48.2", | ||
"apollo-server-express": "3.11.1", | ||
"apollo-server-fastify": "3.11.1", | ||
"conventional-changelog-cli": "2.2.2", | ||
"@typescript-eslint/eslint-plugin": "5.59.11", | ||
"@typescript-eslint/parser": "5.59.11", | ||
"@apollo/server": "4.7.3", | ||
"apollo-server-fastify": "3.12.0", | ||
"conventional-changelog-cli": "3.0.0", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "8.32.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint": "8.42.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"graphql": "16.6.0", | ||
"graphql-tools": "8.3.15", | ||
"graphql-tools": "8.3.20", | ||
"husky": "8.0.3", | ||
"jest": "29.3.1", | ||
"lint-staged": "13.1.0", | ||
"nodemon": "2.0.20", | ||
"jest": "29.5.0", | ||
"lint-staged": "13.2.2", | ||
"nodemon": "2.0.22", | ||
"pinst": "3.0.0", | ||
"prettier": "2.8.3", | ||
"prettier": "2.8.8", | ||
"reflect-metadata": "0.1.13", | ||
"rimraf": "4.1.1", | ||
"rxjs": "7.8.0", | ||
"socket.io": "4.5.4", | ||
"rimraf": "5.0.1", | ||
"rxjs": "7.8.1", | ||
"socket.io": "4.6.2", | ||
"supertest": "6.3.3", | ||
"ts-jest": "29.0.5", | ||
"ts-loader": "9.4.2", | ||
"ts-jest": "29.1.0", | ||
"ts-loader": "9.4.3", | ||
"ts-node": "10.9.1", | ||
"tsconfig-paths": "4.1.2", | ||
"typescript": "4.9.4", | ||
"ws": "8.12.0" | ||
"tsconfig-paths": "4.2.0", | ||
"typescript": "5.1.3", | ||
"ws": "8.13.0" | ||
}, | ||
"peerDependencies": { | ||
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0", | ||
"@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0", | ||
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", | ||
"@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", | ||
"reflect-metadata": "^0.1.13" | ||
@@ -129,3 +109,21 @@ }, | ||
}, | ||
"homepage": "https://github.com/nestjs/throttler#readme" | ||
} | ||
"homepage": "https://github.com/nestjs/throttler#readme", | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"preversion": "yarn run format && yarn run lint && yarn build", | ||
"build": "nest build", | ||
"commit": "git-cz", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", | ||
"start:dev": "nodemon --watch '{src,test/app}/**/*.ts' --ignore '**/*.spec.ts' --exec 'ts-node' test/app/main.ts", | ||
"lint": "eslint \"{src,test}/**/*.ts\" --fix", | ||
"test": "jest", | ||
"test:watch": "jest --watch", | ||
"test:cov": "jest --coverage", | ||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", | ||
"test:e2e": "jest --config ./test/jest-e2e.json --detectOpenHandles", | ||
"test:e2e:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --config test/jest-e2e.json --runInBand", | ||
"test:e2e:dev": "yarn test:e2e --watchAll", | ||
"_postinstall": "husky install", | ||
"release": "changeset publish" | ||
} | ||
} |
@@ -44,2 +44,4 @@ <p align="center"> | ||
For NestJS v10, please use version 4.1.0 or above | ||
## Table of Contents | ||
@@ -46,0 +48,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
177570
310
40
435