Socket
Socket
Sign inDemoInstall

@types/cls-hooked

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.3.2 to 4.3.3

18

cls-hooked/index.d.ts

@@ -10,17 +10,15 @@ // Type definitions for cls-hooked 4.3

export type Context = object;
export interface Namespace {
active: Context | null;
active: any;
set<T>(key: string, value: T): T;
get(key: string): any;
run(fn: (context: Context) => void): Context;
runAndReturn<T>(fn: (context: Context) => T): T;
runPromise<T>(fn: (context: Context) => Promise<T>): Promise<T>;
bind<F extends Function>(fn: F, context?: Context): F; // tslint:disable-line: ban-types
run(fn: (...args: any[]) => void): void;
runAndReturn<T>(fn: (...args: any[]) => T): T;
runPromise<T>(fn: (...args: any[]) => Promise<T>): Promise<T>;
bind<F extends Function>(fn: F, context?: any): F; // tslint:disable-line: ban-types
bindEmitter(emitter: EventEmitter): void;
createContext(): Context;
enter(context: Context): void;
exit(context: Context): void;
createContext(): any;
enter(context: any): void;
exit(context: any): void;
}

@@ -27,0 +25,0 @@

{
"name": "@types/cls-hooked",
"version": "4.3.2",
"version": "4.3.3",
"description": "TypeScript definitions for cls-hooked",

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

},
"typesPublisherContentHash": "2690c730057e7e60ab7cf812148fc521d82ccd1158a5535e439a27e94a717362",
"typesPublisherContentHash": "f03f88fdc3a8d63eb66171f29a2ac94c4c3aaf749b6bca864b597a0a3345b83a",
"typeScriptVersion": "3.4"
}

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

### Additional Details
* Last updated: Thu, 04 Feb 2021 15:34:28 GMT
* Last updated: Fri, 05 Feb 2021 05:00:40 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc