express-rate-limit
Advanced tools
Comparing version 6.11.1 to 6.11.2
@@ -9,2 +9,9 @@ # Changelog | ||
## [6.11.2](https://github.com/express-rate-limit/express-rate-limit/releases/tag/v6.11.2) | ||
Fixed: | ||
- Restored `IncrementResponse ` TypeScript type (See | ||
[#397](https://github.com/express-rate-limit/express-rate-limit/pull/397)) | ||
## [6.11.1](https://github.com/express-rate-limit/express-rate-limit/releases/tag/v6.11.1) | ||
@@ -11,0 +18,0 @@ |
@@ -53,2 +53,3 @@ // Generated by dts-bundle-generator v7.0.0 | ||
}; | ||
export type IncrementResponse = ClientRateLimitInfo; | ||
/** | ||
@@ -127,5 +128,5 @@ * A modified Express request handler with the rate limit functions. | ||
* | ||
* @returns {ClientRateLimitInfo | undefined} - The number of hits and reset time for that client. | ||
* @returns {IncrementResponse | undefined} - The number of hits and reset time for that client. | ||
*/ | ||
increment: (key: string) => Promise<ClientRateLimitInfo> | ClientRateLimitInfo; | ||
increment: (key: string) => Promise<IncrementResponse> | IncrementResponse; | ||
/** | ||
@@ -132,0 +133,0 @@ * Method to decrement a client's hit counter. |
{ | ||
"name": "express-rate-limit", | ||
"version": "6.11.1", | ||
"version": "6.11.2", | ||
"description": "Basic IP rate-limiting middleware for Express. Use to limit repeated requests to public APIs and/or endpoints such as password reset.", | ||
@@ -5,0 +5,0 @@ "author": { |
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
115361
1725