pyodide 0.22.0-alpha.3 → 0.22.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.
- package/README.md +0 -3
- package/console.html +14 -9
- package/package.json +3 -2
- package/pyodide.asm.data +0 -0
- package/pyodide.asm.js +1 -1
- package/pyodide.asm.wasm +0 -0
- package/pyodide.d.ts +175 -133
- package/pyodide.js +1 -1
- package/pyodide.js.map +1 -1
- package/pyodide.mjs +1 -1
- package/pyodide.mjs.map +1 -1
- package/pyodide_py.tar +0 -0
- package/repodata.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,6 @@ hello_python().then((result) => {
|
|
|
30
30
|
$ node hello_python.js
|
|
31
31
|
Loading distutils
|
|
32
32
|
Loaded distutils
|
|
33
|
-
Python initialization complete
|
|
34
33
|
Python says that 1+1= 2
|
|
35
34
|
```
|
|
36
35
|
|
|
@@ -46,7 +45,6 @@ undefined
|
|
|
46
45
|
> let pyodide = await loadPyodide();
|
|
47
46
|
Loading distutils
|
|
48
47
|
Loaded distutils
|
|
49
|
-
Python initialization complete
|
|
50
48
|
undefined
|
|
51
49
|
> await pyodide.runPythonAsync("1+1");
|
|
52
50
|
2
|
|
@@ -71,7 +69,6 @@ warning: no blob constructor, cannot create blobs with mimetypes
|
|
|
71
69
|
warning: no BlobBuilder
|
|
72
70
|
Loading distutils
|
|
73
71
|
Loaded distutils
|
|
74
|
-
Python initialization complete
|
|
75
72
|
Python says that 1+1= 2
|
|
76
73
|
```
|
|
77
74
|
|
package/console.html
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<script src="https://cdn.jsdelivr.net/npm/jquery"></script>
|
|
6
|
-
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.
|
|
7
|
-
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.
|
|
6
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/jquery.terminal.min.js"></script>
|
|
7
|
+
<script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/js/unix_formatting.min.js"></script>
|
|
8
8
|
<link
|
|
9
|
-
href="https://cdn.jsdelivr.net/npm/jquery.terminal@2.
|
|
9
|
+
href="https://cdn.jsdelivr.net/npm/jquery.terminal@2.35.2/css/jquery.terminal.min.css"
|
|
10
10
|
rel="stylesheet"
|
|
11
11
|
/>
|
|
12
12
|
<script src="./pyodide.js"></script>
|
|
@@ -211,12 +211,17 @@
|
|
|
211
211
|
};
|
|
212
212
|
term.ready = Promise.resolve();
|
|
213
213
|
pyodide._api.on_fatal = async (e) => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
214
|
+
if (e.name === "Exit") {
|
|
215
|
+
term.error(e);
|
|
216
|
+
term.error("Pyodide exited and can no longer be used.");
|
|
217
|
+
} else {
|
|
218
|
+
term.error(
|
|
219
|
+
"Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.",
|
|
220
|
+
);
|
|
221
|
+
term.error("The cause of the fatal error was:");
|
|
222
|
+
term.error(e);
|
|
223
|
+
term.error("Look in the browser console for more details.");
|
|
224
|
+
}
|
|
220
225
|
await term.ready;
|
|
221
226
|
term.pause();
|
|
222
227
|
await sleep(15);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pyodide",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "The Pyodide JavaScript package",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"python",
|
|
@@ -135,5 +135,6 @@
|
|
|
135
135
|
"base-64": "^1.0.0",
|
|
136
136
|
"node-fetch": "^2.6.1",
|
|
137
137
|
"ws": "^8.5.0"
|
|
138
|
-
}
|
|
138
|
+
},
|
|
139
|
+
"types": "./pyodide.d.ts"
|
|
139
140
|
}
|
package/pyodide.asm.data
CHANGED
|
Binary file
|