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

@types/redlock

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/redlock - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

19

redlock v2/index.d.ts

@@ -15,3 +15,3 @@ // Type definitions for redlock 2.x

interface Lock {
class Lock {
redlock: Redlock;

@@ -21,5 +21,4 @@ resource: string;

expiration: number;
constructor(redlock: Redlock, resource: string, value: any, expiration: number);
unlock(callback?: Callback<void>): Promise<void>;
extend(ttl: number, callback?: Callback<Lock>): Promise<Lock>;

@@ -34,10 +33,5 @@ }

interface LockErrorConstructor {
new(message?: string): LockError;
(message?: string): LockError;
readonly prototype: LockError;
}
interface LockError extends Error {
class LockError extends Error {
readonly name: 'LockError';
constructor(message?: string);
}

@@ -47,3 +41,4 @@ }

declare class Redlock {
LockError: Redlock.LockErrorConstructor;
LockError: typeof Redlock.LockError;
Lock: typeof Redlock.Lock;

@@ -61,3 +56,3 @@ driftFactor: number;

disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback<void>): any; // bluebird Disposer
disposer(resource: string, ttl: number, errorHandler?: Redlock.Callback<void>): Promise.Disposer<Redlock.Lock>; // bluebird Disposer

@@ -64,0 +59,0 @@ release(lock: Redlock.Lock, callback?: Redlock.Callback<void>): Promise<void>;

{
"name": "@types/redlock",
"version": "2.0.0",
"version": "2.0.1",
"description": "TypeScript definitions for redlock",

@@ -23,4 +23,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "af6a268f01efeac27be1565b8d8f82de79dfd66cbff408b592039f95002ef590",
"typesPublisherContentHash": "806dae9c6166ab1369ab7186c90af720d2f222121db1fa5f9c083850c19fae04",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 09 Aug 2017 14:12:23 GMT
* Last updated: Wed, 09 Aug 2017 19:57:54 GMT
* Dependencies: redis, bluebird

@@ -14,0 +14,0 @@ * Global values: none

Sorry, the diff of this file is not supported yet

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