express-rate-limit
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -64,2 +64,3 @@ 'use strict'; | ||
limit: options.max, | ||
current: current, | ||
remaining: Math.max(options.max - current, 0) | ||
@@ -66,0 +67,0 @@ }; |
{ | ||
"name": "express-rate-limit", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.", | ||
@@ -47,3 +47,3 @@ "homepage": "https://github.com/nfriedly/express-rate-limit", | ||
"load-grunt-tasks": "^3.5.0", | ||
"supertest": "^2.0.0", | ||
"supertest": "^3.0.0", | ||
"time-grunt": "^1.3.0" | ||
@@ -50,0 +50,0 @@ }, |
@@ -83,2 +83,4 @@ # Express Rate Limit | ||
A `req.rateLimit` property is added to all requests with the `limit`, `current`, and `remaining` number of requests for usage in your application code. | ||
## Configuration | ||
@@ -85,0 +87,0 @@ |
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
12160
96
175