@basthon/kernel-python3 0.36.8 → 0.37.1

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.
@@ -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": 56744, "audio": 0}, {"filename": "/lib/python3.8/site-packages/basthon/__init__.py", "start": 56744, "end": 57082, "audio": 0}], "remote_package_size": 38303, "package_uuid": "b95947ae-f87f-4e91-b807-8a26dca5e0d6"});
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": "7927cb41-0d91-4115-b7ae-4ac53c721afc"});
179
179
 
180
180
  })();
package/lib/kernel.d.ts CHANGED
@@ -69,7 +69,7 @@ export declare class KernelPython3 extends KernelBase {
69
69
  /**
70
70
  * Mimic the CPython's REPL banner.
71
71
  */
72
- banner(): any;
72
+ banner(): string;
73
73
  /**
74
74
  * Complete a code at the end (usefull for tab completion).
75
75
  *
package/lib/kernel.js CHANGED
@@ -130,7 +130,11 @@ export class KernelPython3 extends KernelBase {
130
130
  * Mimic the CPython's REPL banner.
131
131
  */
132
132
  banner() {
133
- return this.__kernel__.banner();
133
+ /* We don't return this.__kernel__.banner();
134
+ * since the banner should be available ASAP.
135
+ * In tests, we check this.banner() === this.__kernel__.banner().
136
+ */
137
+ return `Python 3.8.2 (default, Dec 25 2020 21:20:57) on WebAssembly VM\nType "help", "copyright", "credits" or "license" for more information.`;
134
138
  }
135
139
  /**
136
140
  * Complete a code at the end (usefull for tab completion).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/kernel-python3",
3
- "version": "0.36.8",
3
+ "version": "0.37.1",
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.8"
28
+ "@basthon/kernel-base": "^0.37.1"
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": "de9fb899dd03ee4f806b065fab4d0ece03328093"
43
+ "gitHead": "e96962e6c2ff24f205c3c8d6f92f133181890ab1"
44
44
  }