rate-limiter-flexible
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -11,3 +11,8 @@ const RateLimiterStoreAbstract = require('./RateLimiterStoreAbstract'); | ||
try { | ||
const { version } = client.topology.s.options.metadata.driver; | ||
let version; | ||
if (client.client) { | ||
({ version } = client.client.topology.s.options.metadata.driver); | ||
} else { | ||
({ version } = client.topology.s.options.metadata.driver); | ||
} | ||
const majorVersion = parseInt(version); | ||
@@ -14,0 +19,0 @@ |
{ | ||
"name": "rate-limiter-flexible", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"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", |
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
119506
28
3254