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

rate-limiter-flexible

Package Overview
Dependencies
Maintainers
1
Versions
164
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 3.0.6 to 4.0.0

lib/RateLimiterDynamo.js

2

index.js

@@ -13,2 +13,3 @@ const RateLimiterRedis = require('./lib/RateLimiterRedis');

const RateLimiterRes = require('./lib/RateLimiterRes');
const RateLimiterDynamo = require('./lib/RateLimiterDynamo');

@@ -30,2 +31,3 @@ module.exports = {

RateLimiterRes,
RateLimiterDynamo
};

@@ -9,2 +9,3 @@ const LIMITER_TYPES = {

POSTGRES: 'postgres',
DYNAMO: 'dynamo'
};

@@ -11,0 +12,0 @@

@@ -391,1 +391,12 @@ export interface IRateLimiterRes {

}
interface IRateLimiterDynamoOptions extends IRateLimiterStoreOptions {
dynamoTableOpts?: {
readCapacityUnits: number;
writeCapacityUnits: number;
}
}
export class RateLimiterDynamo extends RateLimiterStoreAbstract {
constructor(opts: IRateLimiterDynamoOptions, cb?: ICallbackReady);
}

5

package.json
{
"name": "rate-limiter-flexible",
"version": "3.0.6",
"version": "4.0.0",
"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",

@@ -44,2 +44,3 @@ "main": "index.js",

"devDependencies": {
"@aws-sdk/client-dynamodb": "^3.431.0",
"chai": "^4.1.2",

@@ -53,3 +54,3 @@ "coveralls": "^3.0.1",

"ioredis": "^5.3.2",
"istanbul": "^0.4.5",
"istanbul": "^1.1.0-alpha.1",
"memcached-mock": "^0.1.0",

@@ -56,0 +57,0 @@ "mocha": "^10.2.0",

@@ -7,3 +7,3 @@ [![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)

[node-image]: https://img.shields.io/badge/node.js-%3E=_6.0-green.svg?style=flat-square
[node-image]: https://img.shields.io/badge/node.js-%3E=_14.0-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/

@@ -17,3 +17,3 @@

It works with _Redis_, process _Memory_, _Cluster_ or _PM2_, _Memcached_, _MongoDB_, _MySQL_, _PostgreSQL_ and allows to control requests rate in single process or distributed environment.
It works with _Redis_, process _Memory_, _DynamoDB_, _Cluster_ or _PM2_, _Memcached_, _MongoDB_, _MySQL_, _PostgreSQL_ and allows to control requests rate in single process or distributed environment.

@@ -142,2 +142,3 @@ Memory limiter also works in browser.

* [RateLimiterRedis](https://github.com/animir/node-rate-limiter-flexible/wiki/Redis)
* [RateLimiterDynamo](https://github.com/animir/node-rate-limiter-flexible/wiki/DynamoDB)
* [RateLimiterMemcache](https://github.com/animir/node-rate-limiter-flexible/wiki/Memcache)

@@ -144,0 +145,0 @@ * [RateLimiterMongo](https://github.com/animir/node-rate-limiter-flexible/wiki/Mongo) (with [sharding support](https://github.com/animir/node-rate-limiter-flexible/wiki/Mongo#mongodb-sharding-options))

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