rate-limiter-flexible
Advanced tools
Comparing version 2.3.9 to 2.3.10
@@ -1,3 +0,1 @@ | ||
const util = require('util'); | ||
module.exports = class RateLimiterRes { | ||
@@ -55,3 +53,3 @@ constructor(remainingPoints, msBeforeNext, consumedPoints, isFirstInDuration) { | ||
[util.inspect.custom]() { | ||
[Symbol.for("nodejs.util.inspect.custom")]() { | ||
return this._getDecoratedProperties(); | ||
@@ -58,0 +56,0 @@ } |
{ | ||
"name": "rate-limiter-flexible", | ||
"version": "2.3.9", | ||
"version": "2.3.10", | ||
"description": "Node.js rate limiter by key and protection from DDoS and Brute-Force attacks in process Memory, Redis, MongoDb, Memcached, MySQL, PostgreSQL, Cluster or PM", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,5 +18,7 @@ [![Coverage Status](https://coveralls.io/repos/animir/node-rate-limiter-flexible/badge.svg?branch=master)](https://coveralls.io/r/animir/node-rate-limiter-flexible?branch=master) | ||
Memory limiter also works in browser. | ||
**Atomic increments.** All operations in memory or distributed environment use atomic increments against race conditions. | ||
**Traffic bursts.** Replace Token Bucket with [BurstyRateLimiter](https://github.com/animir/node-rate-limiter-flexible/wiki/BurstyRateLimiter) | ||
Allow **traffic bursts** with [BurstyRateLimiter](https://github.com/animir/node-rate-limiter-flexible/wiki/BurstyRateLimiter). | ||
@@ -23,0 +25,0 @@ **Fast.** Average request takes `0.7ms` in Cluster and `2.5ms` in Distributed application. See [benchmarks](https://github.com/animir/node-rate-limiter-flexible#benchmark). |
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
120787
239
3275