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.1 to 3.1.2

2

package.json
{
"name": "redlock",
"version": "3.1.1",
"version": "3.1.2",
"description": "A node.js redlock implementation for distributed redis locks",

@@ -5,0 +5,0 @@ "main": "redlock.js",

@@ -37,3 +37,5 @@ [![npm version](https://badge.fury.io/js/redlock.svg)](https://www.npmjs.com/package/redlock)

With `retryCount=-1` there will be unlimited retries until the lock is aquired.
Installation

@@ -40,0 +42,0 @@ ------------

@@ -338,3 +338,3 @@ 'use strict';

// RETRY
if(attempts <= self.retryCount)
if(self.retryCount === -1 || attempts <= self.retryCount)
return setTimeout(attempt, Math.max(0, self.retryDelay + Math.floor((Math.random() * 2 - 1) * self.retryJitter)));

@@ -341,0 +341,0 @@

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