🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

redis-semaphore

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-semaphore - npm Package Compare versions

Comparing version

to
2.1.1

2

lib/RedisMutex.js

@@ -23,3 +23,3 @@ "use strict";

if (!(client instanceof ioredis_1.default || client instanceof ioredis_1.default.Cluster)) {
throw new Error('"client" must be instance of ioredis client');
throw new Error('"client" must be instance of ioredis client or cluster');
}

@@ -26,0 +26,0 @@ if (!key) {

{
"name": "redis-semaphore",
"version": "2.1.0",
"version": "2.1.1",
"description": "Distributed mutex and semaphore based on Redis",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -141,3 +141,3 @@ # redis-semaphore

[ci-image]: https://img.shields.io/travis/swarthy/redis-semaphore/master.svg?style=flat-square
[ci-url]: https://travis-ci.org/swarthy/redis-semaphore
[ci-url]: https://travis-ci.com/swarthy/redis-semaphore
[daviddm-image]: http://img.shields.io/david/swarthy/redis-semaphore.svg?style=flat-square

@@ -144,0 +144,0 @@ [daviddm-url]: https://david-dm.org/swarthy/redis-semaphore

@@ -40,3 +40,3 @@ import createDebug from 'debug'

if (!(client instanceof Redis || client instanceof Redis.Cluster)) {
throw new Error('"client" must be instance of ioredis client')
throw new Error('"client" must be instance of ioredis client or cluster')
}

@@ -43,0 +43,0 @@ if (!key) {

Sorry, the diff of this file is not supported yet