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 1.1.3 to 1.1.4

8

lib/ExpressBruteFlexible.js

@@ -56,7 +56,7 @@ const crypto = require('crypto');

const opts = Object.assign({}, options);
const commonKeyPrefix = options.prefix || '';
const freeLimiterOptions = {
storeClient: this.options.storeClient,
storeType: this.options.storeType,
keyPrefix: 'free',
keyPrefix: `${commonKeyPrefix}free`,
dbName: this.options.dbName,

@@ -71,3 +71,3 @@ tableName: this.options.tableName,

storeType: this.options.storeType,
keyPrefix: 'block',
keyPrefix: `${commonKeyPrefix}block`,
dbName: this.options.dbName,

@@ -82,3 +82,3 @@ tableName: this.options.tableName,

storeType: this.options.storeType,
keyPrefix: 'counter',
keyPrefix: `${commonKeyPrefix}counter`,
dbName: this.options.dbName,

@@ -85,0 +85,0 @@ tableName: this.options.tableName,

@@ -36,3 +36,3 @@ export interface IRateLimiterResOptions {

get(key: string | number, options?: {[key: string]: any }): Promise<RateLimiterRes>|null;
get(key: string | number, options?: {[key: string]: any }): Promise<RateLimiterRes|null>;

@@ -126,3 +126,3 @@ delete(key: string | number, options?: {[key: string]: any }): Promise<boolean>;

get(key: string | number, options?: IRateLimiterMongoFunctionOptions): Promise<RateLimiterRes>|null;
get(key: string | number, options?: IRateLimiterMongoFunctionOptions): Promise<RateLimiterRes|null>;

@@ -129,0 +129,0 @@ delete(key: string | number, options?: IRateLimiterMongoFunctionOptions): Promise<boolean>;

{
"name": "rate-limiter-flexible",
"version": "1.1.3",
"version": "1.1.4",
"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",

@@ -10,4 +10,4 @@ "main": "index.js",

"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"eslint": "node_modules/eslint/bin/eslint.js --quiet lib/**/**.js",
"eslint-fix": "node_modules/eslint/bin/eslint.js --fix lib/**/**.js"
"eslint": "node_modules/eslint/bin/eslint.js --quiet lib/**/**.js test/**/**.js",
"eslint-fix": "node_modules/eslint/bin/eslint.js --fix lib/**/**.js test/**/**.js"
},

@@ -14,0 +14,0 @@ "repository": {

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