@basthon/kernel-python3 0.36.2 → 0.36.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.
Binary file
@@ -145,7 +145,7 @@ Module['FS_createPath']('/lib/python3.8/site-packages', 'basthon', true, true);
145
145
  var byteArray = new Uint8Array(arrayBuffer);
146
146
  var curr;
147
147
 
148
- var compressedData = {"data":null,"cachedOffset":34197,"cachedIndexes":[-1,-1],"cachedChunks":[null,null],"offsets":[0,1043,2149,3376,4529,5745,6965,8359,9696,10918,12213,13380,14573,15776,17109,18584,19812,21029,22182,23529,24898,26296,27527,28761,29863,31117,31965,33099],"sizes":[1043,1106,1227,1153,1216,1220,1394,1337,1222,1295,1167,1193,1203,1333,1475,1228,1217,1153,1347,1369,1398,1231,1234,1102,1254,848,1134,1098],"successes":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}
148
+ var compressedData = {"data":null,"cachedOffset":34207,"cachedIndexes":[-1,-1],"cachedChunks":[null,null],"offsets":[0,1043,2149,3376,4529,5745,6965,8359,9696,10918,12213,13380,14573,15776,17109,18584,19812,21029,22182,23529,24898,26296,27527,28761,29863,31117,31969,33106],"sizes":[1043,1106,1227,1153,1216,1220,1394,1337,1222,1295,1167,1193,1203,1333,1475,1228,1217,1153,1347,1369,1398,1231,1234,1102,1254,852,1137,1101],"successes":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}
149
149
  ;
150
150
  compressedData.data = byteArray;
151
151
  LZ4 = Module.LZ4
@@ -175,6 +175,6 @@ Module['FS_createPath']('/lib/python3.8/site-packages', 'basthon', true, true);
175
175
  }
176
176
 
177
177
  }
178
- loadPackage({"files": [{"filename": "/lib/python3.8/site-packages/basthon/utils.py", "start": 0, "end": 2379, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_patch_modules.py", "start": 2379, "end": 14111, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_pyodide_base.py", "start": 14111, "end": 27245, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_patch_builtins.py", "start": 27245, "end": 29523, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_pyodide_console.py", "start": 29523, "end": 41118, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/kernel.py", "start": 41118, "end": 45592, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_console.py", "start": 45592, "end": 50508, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/packages.py", "start": 50508, "end": 56740, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/__init__.py", "start": 56740, "end": 57078, "audio": 0}], "remote_package_size": 38293, "package_uuid": "e1181b79-5eff-45df-b070-a0831e30fab6"});
178
+ loadPackage({"files": [{"filename": "/lib/python3.8/site-packages/basthon/utils.py", "start": 0, "end": 2379, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_patch_modules.py", "start": 2379, "end": 14111, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_pyodide_base.py", "start": 14111, "end": 27245, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_patch_builtins.py", "start": 27245, "end": 29523, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_pyodide_console.py", "start": 29523, "end": 41118, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/kernel.py", "start": 41118, "end": 45592, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/_console.py", "start": 45592, "end": 50508, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/packages.py", "start": 50508, "end": 56744, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/__init__.py", "start": 56744, "end": 57082, "audio": 0}], "remote_package_size": 38303, "package_uuid": "cd7bd009-abb4-4e0c-a44e-ba9b72373236"});
179
179
 
180
180
  })();
package/lib/kernel.d.ts CHANGED
@@ -20,7 +20,7 @@ export declare class KernelPython3 extends KernelBase {
20
20
  /**
21
21
  * Get the URL of Basthon modules dir.
22
22
  */
23
- basthonModulesRoot(): string;
23
+ basthonModulesRoot(absolute?: boolean): string;
24
24
  language(): string;
25
25
  languageName(): string;
26
26
  moduleExts(): string[];
package/lib/kernel.js CHANGED
@@ -15,14 +15,12 @@ export class KernelPython3 extends KernelBase {
15
15
  /**
16
16
  * Get the URL of Basthon modules dir.
17
17
  */
18
- basthonModulesRoot() { return this.basthonRoot() + "/modules"; }
19
- ;
18
+ basthonModulesRoot(absolute = false) {
19
+ return this.basthonRoot(absolute) + "/modules";
20
+ }
20
21
  language() { return "python3"; }
21
- ;
22
22
  languageName() { return "Python 3"; }
23
- ;
24
23
  moduleExts() { return ['py']; }
25
- ;
26
24
  /**
27
25
  * What to do when loaded (private).
28
26
  */
@@ -34,7 +32,7 @@ export class KernelPython3 extends KernelBase {
34
32
  // but can be removed with 0.17.0 since it is fixed upstream
35
33
  const consoleErrorBck = console.error;
36
34
  console.error = () => { };
37
- await pyodide.loadPackage(this.basthonRoot() + "/basthon.js");
35
+ await pyodide.loadPackage(this.basthonRoot(true) + "/basthon.js");
38
36
  console.error = consoleErrorBck;
39
37
  // importing basthon to get it's kernel
40
38
  await pyodide.runPythonAsync("import basthon as __basthon__");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-python3",
3
- "version": "0.36.2",
3
+ "version": "0.36.3",
4
4
  "description": "Basthon - Python3 Kernel",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,7 +25,7 @@
25
25
  "clean": "make clean"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/kernel-base": "^0.36.2"
28
+ "@basthon/kernel-base": "^0.36.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "gulp": "^4.0.2",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "8fe755fb31a810261ca52b797c491dea633c17a9"
43
+ "gitHead": "9d71d09b47d5f7e1eccf83f1a83004c7225a51a2"
44
44
  }