@basthon/kernel-python3 0.35.6 → 0.35.10

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":34138,"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,31939,33078],"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,822,1139,1060],"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":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]}
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": 56627, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/__init__.py", "start": 56627, "end": 56965, "audio": 0}], "remote_package_size": 38234, "package_uuid": "c22132c8-2c5d-43c0-b793-dc69b0d2d818"});
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": "cf27a228-1e6f-44d3-9341-47d53df764fd"});
179
179
 
180
180
  })();
package/lib/kernel.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare class KernelPython3 extends KernelBase {
16
16
  private _pyodideUrl;
17
17
  private __kernel__;
18
18
  pythonVersion: string;
19
- constructor();
19
+ constructor(rootPath: string);
20
20
  /**
21
21
  * Get the URL of Basthon modules dir.
22
22
  */
package/lib/kernel.js CHANGED
@@ -3,8 +3,8 @@ import { KernelBase } from '@basthon/kernel-base';
3
3
  * A Python kernel that satisfies Basthon's API.
4
4
  */
5
5
  export class KernelPython3 extends KernelBase {
6
- constructor() {
7
- super();
6
+ constructor(rootPath) {
7
+ super(rootPath);
8
8
  /**
9
9
  * Where to find pyodide.js (private).
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-python3",
3
- "version": "0.35.6",
3
+ "version": "0.35.10",
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.35.6"
28
+ "@basthon/kernel-base": "^0.35.10"
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": "5c128d367d9860460282014d70adfd2407458462"
43
+ "gitHead": "d5ee9431b93d42e7759228498ccd9977093cc806"
44
44
  }