Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "redlock", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "A node.js redlock implementation for distributed redis locks", | ||
@@ -5,0 +5,0 @@ "main": "redlock.js", |
@@ -65,2 +65,5 @@ 'use strict'; | ||
// Attach a reference to Lock, which allows the application to use instanceof | ||
// to ensure type. | ||
Redlock.Lock = Lock; | ||
@@ -67,0 +70,0 @@ |
@@ -68,2 +68,3 @@ 'use strict'; | ||
assert.isObject(lock); | ||
assert.instanceOf(lock, Redlock.Lock); | ||
assert.isAbove(lock.expiration, Date.now()-1); | ||
@@ -70,0 +71,0 @@ one = lock; |
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
34198
631