@basthon/kernel-javascript 0.73.2 → 0.73.4

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.
Files changed (2) hide show
  1. package/lib/worker.js +5 -3
  2. package/package.json +3 -3
package/lib/worker.js CHANGED
@@ -12,9 +12,11 @@ export class JavaScriptKernelWorker extends KernelWorkerBase {
12
12
  * Initialize the kernel.
13
13
  */
14
14
  async _init() {
15
- console.info = (...args) => console.log(...args);
16
- console.warn = (...args) => console.error(...args);
17
- globalThis.addEventListener("error", (e) => console.error(e.toString()));
15
+ if (!this.isLegacy()) {
16
+ console.info = (...args) => console.log(...args);
17
+ console.warn = (...args) => console.error(...args);
18
+ globalThis.addEventListener("error", (e) => console.error(e.toString()));
19
+ }
18
20
  }
19
21
  async _eval(data, code) {
20
22
  console.log = (...args) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-javascript",
3
- "version": "0.73.2",
3
+ "version": "0.73.4",
4
4
  "description": "Basthon - JavaScript Kernel",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "clean": "rimraf lib/"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "0.73.2",
28
+ "@basthon/kernel-base": "0.73.4",
29
29
  "comlink": "^4.4.1",
30
30
  "object-inspect": "^1.13.1"
31
31
  },
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "95bbd19a61673aecea85f72bc03cfe5cbcb26660"
40
+ "gitHead": "94ee7569ba527ce1c9a27fc8bf2ad8163c165f84"
41
41
  }