@basthon/kernel-javascript 0.64.1 → 0.64.3

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/worker.d.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  import { KernelWorkerBase } from "@basthon/kernel-base/worker";
2
- declare global {
3
- interface DedicatedWorkerGlobalScope {
4
- jsoo_runtime?: any;
5
- window?: any;
6
- Canvas: typeof OffscreenCanvas;
7
- }
8
- }
9
2
  export declare class JavaScriptKernelWorker extends KernelWorkerBase {
10
3
  constructor(options?: any);
11
4
  protected _init(): Promise<void>;
package/lib/worker.js CHANGED
@@ -4,11 +4,6 @@ export class JavaScriptKernelWorker extends KernelWorkerBase {
4
4
  constructor(options) {
5
5
  // do not forget to call the parent constructor
6
6
  super(options);
7
- // the window object is not available in a webworker...
8
- if (self.window == null)
9
- self.window = self;
10
- if (self.Canvas == null)
11
- self.Canvas = globalThis.OffscreenCanvas;
12
7
  }
13
8
  /*
14
9
  * Initialize the kernel.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-javascript",
3
- "version": "0.64.1",
3
+ "version": "0.64.3",
4
4
  "description": "Basthon - JavaScript Kernel",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "clean": "rm -rf lib/"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "0.64.1",
28
+ "@basthon/kernel-base": "0.64.3",
29
29
  "comlink": "^4.4.1",
30
30
  "object-inspect": "^1.13.1"
31
31
  },
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "cb50a95c46ffe82c7510d28316cd102f2fb701b4"
39
+ "gitHead": "ef45edbf7dcdde8400ffc6ec89cd2d513b8776ee"
40
40
  }