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 3.0.0 to 3.0.1

17

redlock/index.d.ts

@@ -16,3 +16,3 @@ // Type definitions for redlock 3.0

interface Lock {
class Lock {
redlock: Redlock;

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

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

@@ -39,10 +38,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);
}

@@ -57,3 +51,4 @@

declare class Redlock extends EventEmitter {
LockError: Redlock.LockErrorConstructor;
LockError: typeof Redlock.LockError;
Lock: typeof Redlock.Lock;
driftFactor: number;

@@ -60,0 +55,0 @@ retryCount: number;

{
"name": "@types/redlock",
"version": "3.0.0",
"version": "3.0.1",
"description": "TypeScript definitions for redlock",

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

"peerDependencies": {},
"typesPublisherContentHash": "20398ce249c6829f25e20d7fd291f8b2f49ce6a7e7fd39b28bae510a068d427d",
"typesPublisherContentHash": "1ab4c4faee52809291061afa57172dabc6fc47b016d826b71be5191cd10ae5c0",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Wed, 09 Aug 2017 17:37:36 GMT
* Last updated: Wed, 09 Aug 2017 20:37:51 GMT
* Dependencies: bluebird, events

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

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