@nestjs/throttler
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -20,6 +20,6 @@ "use strict"; | ||
getExpirationTime(key) { | ||
return Math.floor((this.storage.get(key).expiresAt - Date.now()) / 1000); | ||
return Math.ceil((this.storage.get(key).expiresAt - Date.now()) / 1000); | ||
} | ||
getBlockExpirationTime(key) { | ||
return Math.floor((this.storage.get(key).blockExpiresAt - Date.now()) / 1000); | ||
return Math.ceil((this.storage.get(key).blockExpiresAt - Date.now()) / 1000); | ||
} | ||
@@ -26,0 +26,0 @@ setExpirationTime(key, ttlMilliseconds, throttlerName) { |
{ | ||
"name": "@nestjs/throttler", | ||
"version": "6.0.0", | ||
"version": "6.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.", | ||
@@ -28,5 +28,5 @@ "author": "Jay McDoniel <me@jaymcdoniel.dev>", | ||
"devDependencies": { | ||
"@apollo/server": "4.10.4", | ||
"@apollo/server": "4.10.5", | ||
"@changesets/cli": "2.27.7", | ||
"@commitlint/cli": "19.3.0", | ||
"@commitlint/cli": "19.4.0", | ||
"@commitlint/config-angular": "19.3.0", | ||
@@ -41,3 +41,3 @@ "@nestjs/cli": "10.4.2", | ||
"@nestjs/platform-ws": "10.3.10", | ||
"@nestjs/schematics": "10.1.2", | ||
"@nestjs/schematics": "10.1.3", | ||
"@nestjs/testing": "10.3.10", | ||
@@ -49,6 +49,6 @@ "@nestjs/websockets": "10.3.10", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "20.14.10", | ||
"@types/node": "20.14.14", | ||
"@types/supertest": "6.0.2", | ||
"@typescript-eslint/eslint-plugin": "7.16.0", | ||
"@typescript-eslint/parser": "7.16.0", | ||
"@typescript-eslint/eslint-plugin": "7.18.0", | ||
"@typescript-eslint/parser": "7.18.0", | ||
"apollo-server-fastify": "3.13.0", | ||
@@ -62,9 +62,9 @@ "conventional-changelog-cli": "5.0.0", | ||
"graphql-tools": "9.0.1", | ||
"husky": "9.0.11", | ||
"husky": "9.1.4", | ||
"jest": "29.7.0", | ||
"lint-staged": "15.2.7", | ||
"lint-staged": "15.2.8", | ||
"nodemon": "3.1.4", | ||
"pactum": "^3.4.1", | ||
"pinst": "3.0.0", | ||
"prettier": "3.3.2", | ||
"prettier": "3.3.3", | ||
"reflect-metadata": "0.2.2", | ||
@@ -75,7 +75,7 @@ "rimraf": "6.0.1", | ||
"supertest": "7.0.0", | ||
"ts-jest": "29.2.2", | ||
"ts-jest": "29.2.4", | ||
"ts-loader": "9.5.1", | ||
"ts-node": "10.9.2", | ||
"tsconfig-paths": "4.2.0", | ||
"typescript": "5.5.3", | ||
"typescript": "5.5.4", | ||
"ws": "8.18.0" | ||
@@ -125,5 +125,4 @@ }, | ||
"test:e2e:dev": "yarn test:e2e --watchAll", | ||
"_postinstall": "husky install", | ||
"release": "changeset publish" | ||
} | ||
} |
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
206834