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

@types/koa-ratelimit

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/koa-ratelimit - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

10

koa-ratelimit/index.d.ts

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

6

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

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