express-rate-limit
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -19,3 +19,2 @@ import { RequestHandler, Request, Response, NextFunction } from 'express'; | ||
export interface Store { | ||
constructor(windowMs: number); | ||
hits: { | ||
@@ -32,8 +31,4 @@ [key: string]: number; | ||
export interface ExpressLimiterInterface { | ||
(options: Options): (req: Request, res: Response, next: NextFunction) => void; | ||
} | ||
declare function RateLimit(options?: Options): (req: Request, res: Response, next: NextFunction) => void; | ||
declare const ExpressRateLimiter: ExpressLimiterInterface; | ||
export default ExpressRateLimiter; | ||
export = RateLimit; |
{ | ||
"name": "express-rate-limit", | ||
"version": "4.0.1", | ||
"version": "4.0.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 @@ "homepage": "https://github.com/nfriedly/express-rate-limit", |
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
17649
192