@contrast/esm-hooks 2.20.0 → 2.21.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.
@@ -14,7 +14,7 @@
14
14
  */
15
15
 
16
16
  import Module from 'node:module';
17
- import { IntentionalError } from '@contrast/common';
17
+ import { IntentionalError, safeConsoleError } from '@contrast/common';
18
18
  import { default as debugMethods } from './debug-methods.mjs';
19
19
  import { default as portClient } from './post-message/loader-client.mjs';
20
20
  const require = Module.createRequire(import.meta.url);
@@ -92,7 +92,7 @@ export default function init({ appInfo, agentVersion, port, modes, loggerFd }) {
92
92
  if (core.logger) {
93
93
  core.logger.error({ err }, ERROR_MESSAGE);
94
94
  } else {
95
- console.error(new Error(ERROR_MESSAGE, { cause: err }));
95
+ safeConsoleError(new Error(ERROR_MESSAGE, { cause: err }));
96
96
  }
97
97
  }
98
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/esm-hooks",
3
- "version": "2.20.0",
3
+ "version": "2.21.0",
4
4
  "type": "module",
5
5
  "description": "Support for loading and instrumenting ECMAScript modules",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -22,11 +22,11 @@
22
22
  "test": "../scripts/test.sh"
23
23
  },
24
24
  "dependencies": {
25
- "@contrast/common": "1.30.0",
26
- "@contrast/config": "1.41.0",
27
- "@contrast/core": "1.46.0",
25
+ "@contrast/common": "1.31.0",
26
+ "@contrast/config": "1.42.0",
27
+ "@contrast/core": "1.47.0",
28
28
  "@contrast/find-package-json": "^1.1.0",
29
- "@contrast/logger": "1.19.0",
30
- "@contrast/rewriter": "1.22.0"
29
+ "@contrast/logger": "1.20.0",
30
+ "@contrast/rewriter": "1.23.0"
31
31
  }
32
32
  }