@nestjs/throttler
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,2 @@ | ||
## [1.1.1](https://github.com/nestjs/throttler/compare/v1.1.0...v1.1.1) (2021-02-26) | ||
## [1.1.2](https://github.com/nestjs/throttler/compare/v1.1.1...v1.1.2) (2021-03-24) | ||
@@ -6,3 +6,3 @@ | ||
* change in readme to trigger release ([d5a89d5](https://github.com/nestjs/throttler/commit/d5a89d511457d51e9f42bb811162cf32429b2e7c)) | ||
* **guard:** fix access to options and service in guard ([6d2cc31](https://github.com/nestjs/throttler/commit/6d2cc31ad1c4e998736aa734c94979eb64cbb07d)) | ||
@@ -9,0 +9,0 @@ |
@@ -6,5 +6,5 @@ import { CanActivate, ExecutionContext } from '@nestjs/common'; | ||
export declare class ThrottlerGuard implements CanActivate { | ||
private readonly options; | ||
private readonly storageService; | ||
private readonly reflector; | ||
protected readonly options: ThrottlerModuleOptions; | ||
protected readonly storageService: ThrottlerStorage; | ||
protected readonly reflector: Reflector; | ||
protected headerPrefix: string; | ||
@@ -11,0 +11,0 @@ protected errorMessage: string; |
{ | ||
"name": "@nestjs/throttler", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A Rate-Limiting module for NestJS to work on Express, Fastify, Websockets, Socket.IO, and GraphQL, all rolled up into a simple package.", | ||
@@ -42,3 +42,6 @@ "author": "Jay McDoniel <me@jaymcdoniel.dev>", | ||
"test:e2e:dev": "yarn test:e2e --watchAll", | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md" | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", | ||
"_postinstall": "husky install", | ||
"postpublish": "pinst --enable", | ||
"prepublishOnly": "pinst --disable" | ||
}, | ||
@@ -49,30 +52,30 @@ "dependencies": { | ||
"devDependencies": { | ||
"@commitlint/cli": "12.0.0", | ||
"@commitlint/config-angular": "12.0.0", | ||
"@commitlint/cli": "12.0.1", | ||
"@commitlint/config-angular": "12.0.1", | ||
"@nestjs/cli": "7.5.6", | ||
"@nestjs/common": "7.6.13", | ||
"@nestjs/core": "7.6.13", | ||
"@nestjs/graphql": "7.9.10", | ||
"@nestjs/platform-express": "7.6.13", | ||
"@nestjs/platform-fastify": "7.6.13", | ||
"@nestjs/platform-socket.io": "7.6.13", | ||
"@nestjs/platform-ws": "7.6.13", | ||
"@nestjs/schematics": "7.2.7", | ||
"@nestjs/testing": "7.6.13", | ||
"@nestjs/websockets": "7.6.13", | ||
"@nestjs/common": "7.6.15", | ||
"@nestjs/core": "7.6.15", | ||
"@nestjs/graphql": "7.10.3", | ||
"@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/schematics": "7.3.0", | ||
"@nestjs/testing": "7.6.15", | ||
"@nestjs/websockets": "7.6.15", | ||
"@types/express": "4.17.9", | ||
"@types/express-serve-static-core": "4.17.18", | ||
"@types/jest": "26.0.20", | ||
"@types/express-serve-static-core": "4.17.19", | ||
"@types/jest": "26.0.21", | ||
"@types/md5": "2.3.0", | ||
"@types/node": "14.14.31", | ||
"@types/node": "14.14.35", | ||
"@types/socket.io": "2.1.13", | ||
"@types/socket.io-client": "1.4.35", | ||
"@types/socket.io-client": "1.4.36", | ||
"@types/supertest": "2.0.10", | ||
"@typescript-eslint/eslint-plugin": "4.15.2", | ||
"@typescript-eslint/parser": "4.15.2", | ||
"apollo-server-express": "2.21.0", | ||
"apollo-server-fastify": "2.21.0", | ||
"@typescript-eslint/eslint-plugin": "4.19.0", | ||
"@typescript-eslint/parser": "4.19.0", | ||
"apollo-server-express": "2.21.2", | ||
"apollo-server-fastify": "2.21.2", | ||
"conventional-changelog-cli": "2.1.1", | ||
"cz-conventional-changelog": "3.3.0", | ||
"eslint": "7.20.0", | ||
"eslint": "7.22.0", | ||
"eslint-config-prettier": "7.2.0", | ||
@@ -82,6 +85,7 @@ "eslint-plugin-import": "2.22.1", | ||
"graphql-tools": "7.0.4", | ||
"husky": "5.1.1", | ||
"husky": "^5.2.0", | ||
"jest": "26.6.3", | ||
"lint-staged": "10.5.4", | ||
"nodemon": "2.0.7", | ||
"pinst": "^2.1.6", | ||
"prettier": "2.2.1", | ||
@@ -91,11 +95,11 @@ "reflect-metadata": "0.1.13", | ||
"rxjs": "6.6.6", | ||
"semantic-release": "17.4.0", | ||
"socket.io": "3.1.2", | ||
"semantic-release": "17.4.2", | ||
"socket.io": "4.0.0", | ||
"supertest": "6.1.3", | ||
"ts-jest": "26.5.2", | ||
"ts-loader": "8.0.17", | ||
"ts-jest": "26.5.4", | ||
"ts-loader": "8.0.18", | ||
"ts-node": "9.1.1", | ||
"tsconfig-paths": "3.9.0", | ||
"typescript": "4.2.2", | ||
"ws": "7.4.3" | ||
"typescript": "4.2.3", | ||
"ws": "7.4.4" | ||
}, | ||
@@ -121,22 +125,2 @@ "peerDependencies": { | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
"commit-msg": "commitlint -c .commitlintrc.json -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.ts": [ | ||
"prettier --write", | ||
"eslint --ext ts" | ||
], | ||
"*.{md,html,json,js}": [ | ||
"prettier --write" | ||
] | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"repository": { | ||
@@ -143,0 +127,0 @@ "type": "git", |
@@ -261,3 +261,3 @@ <p align="center"> | ||
const gqlCtx = GqlExecutionContext.create(context); | ||
const ctx = gql.getContext(); | ||
const ctx = gqlCtx.getContext(); | ||
return { req, ctx.req, res: ctx.res }; // ctx.request and ctx.reply for fastify | ||
@@ -264,0 +264,0 @@ } |
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
329125
50