Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "redlock", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "A node.js redlock implementation for distributed redis locks", | ||
@@ -5,0 +5,0 @@ "main": "redlock.js", |
@@ -203,3 +203,7 @@ 'use strict'; | ||
// - it may have expired | ||
if(typeof response === 'number' && (response === 0 || response === 1)) | ||
if(typeof response === 'string') | ||
response = parseInt(response); | ||
if(response === 0 || response === 1) | ||
votes++; | ||
@@ -206,0 +210,0 @@ |
@@ -8,2 +8,3 @@ 'use strict'; | ||
test('single-server: https://www.npmjs.com/package/redis', [require('redis').createClient()]); | ||
test('single-server: https://www.npmjs.com/package/redis (string_numbers=true)', [require('redis').createClient({string_numbers: true})]); | ||
test('single-server: https://www.npmjs.com/package/ioredis', [new (require('ioredis'))()]); | ||
@@ -10,0 +11,0 @@ test('multi-server: https://www.npmjs.com/package/ioredis', [new (require('ioredis'))({db: 1}), new (require('ioredis'))({db: 2}), new (require('ioredis'))({db: 3})]); |
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
37522
695