@types/koa-ratelimit
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -83,2 +83,12 @@ // Type definitions for koa-ratelimit 4.2 | ||
headers?: HeaderNameOptions; | ||
/** | ||
* If function returns true, middleware exits before limiting | ||
*/ | ||
whitelist?: (context: Context) => boolean | Promise<boolean>; | ||
/** | ||
* If function returns true, 403 error is thrown | ||
*/ | ||
blacklist?: (context: Context) => boolean | Promise<boolean>; | ||
} | ||
@@ -85,0 +95,0 @@ } |
{ | ||
"name": "@types/koa-ratelimit", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "TypeScript definitions for koa-ratelimit", | ||
@@ -31,4 +31,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "eed541dc02e14d3340ebe2258cad2672a084fb4246dcdff897c39fab4bb123af", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "c44d97ac55dc15730a3c3270cc55cf5cd4a20408bac59aa3503bebfe801a5310", | ||
"typeScriptVersion": "3.2" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sun, 26 Apr 2020 16:35:35 GMT | ||
* Last updated: Fri, 16 Oct 2020 21:55:37 GMT | ||
* Dependencies: [@types/koa](https://npmjs.com/package/@types/koa), [@types/redis](https://npmjs.com/package/@types/redis), [@types/ioredis](https://npmjs.com/package/@types/ioredis) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
5720
79