nestjs-rate-limiter
Advanced tools
Comparing version 2.7.3 to 2.7.4
@@ -160,3 +160,3 @@ "use strict"; | ||
intercept(context, next) { | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
@@ -177,3 +177,3 @@ let points = ((_a = this.specificOptions) === null || _a === void 0 ? void 0 : _a.points) || this.options.points; | ||
const rateLimiter = yield this.getRateLimiter(reflectedOptions); | ||
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]; | ||
const key = (_d = (_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/)) === null || _d === void 0 ? void 0 : _d[0]; | ||
yield this.responseHandler(response, key, rateLimiter, points, pointsConsumed); | ||
@@ -180,0 +180,0 @@ return next.handle(); |
{ | ||
"name": "nestjs-rate-limiter", | ||
"version": "2.7.3", | ||
"version": "2.7.4", | ||
"description": "Highly configurable rate limiter library", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
54187