nestjs-rate-limiter
Advanced tools
Comparing version 2.7.2 to 2.7.3
@@ -176,3 +176,3 @@ "use strict"; | ||
const rateLimiter = yield this.getRateLimiter(reflectedOptions); | ||
const key = (_c = request.ip) === null || _c === void 0 ? void 0 : _c.replace(/^.*:/, ''); | ||
const key = (_c = request.ip) === null || _c === void 0 ? void 0 : _c.match(/\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/)[0]; | ||
yield this.responseHandler(response, key, rateLimiter, points, pointsConsumed); | ||
@@ -179,0 +179,0 @@ return next.handle(); |
{ | ||
"name": "nestjs-rate-limiter", | ||
"version": "2.7.2", | ||
"version": "2.7.3", | ||
"description": "Highly configurable rate limiter library", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
54136