rate-limiter-flexible
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -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": { |
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
101162
2747