rate-limiter-flexible
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"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
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
85828