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 2.3.9 to 2.3.10

4

lib/RateLimiterRes.js

@@ -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).

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