Socket
Socket
Sign inDemoInstall

rate-limiter-flexible

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rate-limiter-flexible - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

package.json
{
"name": "rate-limiter-flexible",
"version": "0.5.0",
"version": "0.5.1",
"description": "Flexible API rate limiter backed by Redis for distributed node.js applications",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -105,6 +105,6 @@ [![Build Status](https://travis-ci.org/animir/node-rate-limiter-flexible.png)](https://travis-ci.org/animir/node-rate-limiter-flexible)

rateLimiterRedis.penalty(remoteAddress, 3)
.then((remainingPoints) => {});
.then((consumedPoints) => {});
// or rise number of points for current duration
rateLimiterRedis.reward(remoteAddress, 2);
.then((remainingPoints) => {});
.then((consumedPoints) => {});
})

@@ -111,0 +111,0 @@ .catch((rejRes) => {

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