Comparing version 2.0.10 to 2.0.11
@@ -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 @@ * |
{ | ||
"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
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
50388
416
72