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

asyncctx

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyncctx - npm Package Compare versions

Comparing version 2.0.10 to 2.0.11

17

ContinuationLocalStorage.d.ts

@@ -0,1 +1,10 @@

interface HookInfo<T> {
id: number;
type: string;
triggerId: number;
triggerHook?: HookInfo<T>;
oriTriggerId?: number;
activated: boolean;
data?: T;
}
/**

@@ -53,2 +62,9 @@ *

/**
* Get the hook info of the caller for testing purposes
*
* @param {number} [id=this.currId]
* @returns {(number|undefined)}
*/
getHookInfo(id?: number): HookInfo<T> | undefined;
/**
* debug output for debugging purpose

@@ -77,1 +93,2 @@ *

}
export {};

@@ -79,2 +79,3 @@ "use strict";

hi.activated = true;
hi.triggerHook = undefined;
}

@@ -179,2 +180,13 @@ else {

/**
* Get the hook info of the caller for testing purposes
*
* @param {number} [id=this.currId]
* @returns {(number|undefined)}
*/
/* istanbul ignore next */
getHookInfo(id = this.currId) {
const hi = this.idHookMap.get(id);
return hi;
}
/**
* debug output for debugging purpose

@@ -181,0 +193,0 @@ *

2

package.json
{
"name": "asyncctx",
"version": "2.0.10",
"version": "2.0.11",
"description": "an asynchronous execution context for TypeScript/JavaScript",

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

@@ -54,6 +54,7 @@ [![npm version](https://badge.fury.io/js/asyncctx.svg)](https://badge.fury.io/js/asyncctx)

| -------- | --------------------------------------------------------------------------------------- |
| 2.0.11 | #54: fixed memory leak for chaining asynchronous calls infinitely; thanks to Reko Tiira |
| 2.0.10 | maintenance release |
| 2.0.9 | node 13 supported |
| 2.0.3-8 | maintenance release |
| 2.0.2 | fixed loosing context; thanks to Pasi Tuominen |
| 2.0.2 | #47: fixed loosing context for unknown resource types; thanks to Pasi Tuominen |
| 2.0.1 | maintenance release |

@@ -60,0 +61,0 @@ | 2.0.0 | targeting es2015; dropped support for nodejs < v8 |

Sorry, the diff of this file is not supported yet

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