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

redlock

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redlock - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

package.json
{
"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})]);

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