@basthon/kernel-javascript 0.73.7 → 0.74.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/worker.js +1 -2
- package/package.json +4 -4
package/lib/worker.js
CHANGED
|
@@ -42,12 +42,11 @@ export class JavaScriptKernelWorker extends KernelWorkerBase {
|
|
|
42
42
|
console.error(`File ${filename} not added since putFile has no mean in the JS context.`);
|
|
43
43
|
}
|
|
44
44
|
async putModule(filename, content) {
|
|
45
|
-
content = new Uint8Array(content);
|
|
46
45
|
const ext = filename.split(".").pop();
|
|
47
46
|
switch (ext) {
|
|
48
47
|
case "js":
|
|
49
48
|
const decoder = new TextDecoder("utf-8");
|
|
50
|
-
const _content = decoder.decode(content);
|
|
49
|
+
const _content = decoder.decode(new Uint8Array(content));
|
|
51
50
|
await globalThis.eval(_content);
|
|
52
51
|
break;
|
|
53
52
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/kernel-javascript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.74.0",
|
|
4
4
|
"description": "Basthon - JavaScript Kernel",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"clean": "rimraf lib/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@basthon/kernel-base": "0.
|
|
28
|
+
"@basthon/kernel-base": "0.74.0",
|
|
29
29
|
"comlink": "^4.4.2",
|
|
30
30
|
"object-inspect": "^1.13.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/object-inspect": "^1.13.0",
|
|
34
34
|
"rimraf": "^6.0.1",
|
|
35
|
-
"typescript": "^5.
|
|
35
|
+
"typescript": "^5.9.2"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b329bbf6b55f0837a22ea1f9ff3c344374a1d462"
|
|
41
41
|
}
|