@contrast/esm-hooks 2.15.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.mjs +1 -0
- package/lib/loader-agent.mjs +4 -1
- package/package.json +6 -6
package/lib/index.mjs
CHANGED
|
@@ -46,6 +46,7 @@ export default function init(core) {
|
|
|
46
46
|
modes: esmHooks.getActiveModes(),
|
|
47
47
|
appInfo: core.appInfo,
|
|
48
48
|
agentVersion: core.agentVersion,
|
|
49
|
+
loggerFd: core.threadTransferData.loggerFd,
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
// Instantiate loader agent via register (if available) or manually.
|
package/lib/loader-agent.mjs
CHANGED
|
@@ -45,9 +45,12 @@ const ERROR_MESSAGE = 'An error prevented the Contrast agent from initializing i
|
|
|
45
45
|
* @param {InitData} data
|
|
46
46
|
* @returns {LoaderAgent}
|
|
47
47
|
*/
|
|
48
|
-
export default function init({ appInfo, agentVersion, port, modes }) {
|
|
48
|
+
export default function init({ appInfo, agentVersion, port, modes, loggerFd }) {
|
|
49
|
+
const threadTransferData = Object.create(null);
|
|
50
|
+
threadTransferData.loggerFd = loggerFd;
|
|
49
51
|
/** @type {LoaderAgent} */
|
|
50
52
|
const core = {
|
|
53
|
+
threadTransferData,
|
|
51
54
|
Perf: require('@contrast/perf'),
|
|
52
55
|
appInfo,
|
|
53
56
|
agentVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/esm-hooks",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Support for loading and instrumenting ECMAScript modules",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"test": "../scripts/test.sh"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@contrast/common": "1.
|
|
23
|
-
"@contrast/config": "1.
|
|
24
|
-
"@contrast/core": "1.
|
|
22
|
+
"@contrast/common": "1.27.0",
|
|
23
|
+
"@contrast/config": "1.37.0",
|
|
24
|
+
"@contrast/core": "1.42.0",
|
|
25
25
|
"@contrast/find-package-json": "^1.1.0",
|
|
26
|
-
"@contrast/logger": "1.
|
|
27
|
-
"@contrast/rewriter": "1.
|
|
26
|
+
"@contrast/logger": "1.15.0",
|
|
27
|
+
"@contrast/rewriter": "1.18.0"
|
|
28
28
|
}
|
|
29
29
|
}
|