Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

express-rate-limit

Package Overview
Dependencies
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-rate-limit - npm Package Compare versions

Comparing version 6.11.1 to 6.11.2

7

changelog.md

@@ -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 @@

5

dist/index.d.ts

@@ -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.

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc