pyodide 0.22.0 → 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/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.32.0/js/jquery.terminal.min.js"></script>
7
- <script src="https://cdn.jsdelivr.net/npm/jquery.terminal@2.23.0/js/unix_formatting.min.js"></script>
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.32.0/css/jquery.terminal.min.css"
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
- term.error(
215
- "Pyodide has suffered a fatal error. Please report this to the Pyodide maintainers.",
216
- );
217
- term.error("The cause of the fatal error was:");
218
- term.error(e);
219
- term.error("Look in the browser console for more details.");
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.0",
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
  }