@basthon/gui-base 0.50.10 → 0.50.12

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.
Files changed (2) hide show
  1. package/lib/main.js +6 -1
  2. package/package.json +5 -5
package/lib/main.js CHANGED
@@ -325,7 +325,12 @@ export class GUIBase {
325
325
  /**
326
326
  * Restart the kernel.
327
327
  */
328
- kernelRestart() { var _a; (_a = this.kernelSafe) === null || _a === void 0 ? void 0 : _a.restart(); }
328
+ kernelRestart() {
329
+ var _a, _b;
330
+ if ((_a = this.kernelSafe) === null || _a === void 0 ? void 0 : _a.pendingInput())
331
+ throw new Error("pending input");
332
+ (_b = this.kernelSafe) === null || _b === void 0 ? void 0 : _b.restart();
333
+ }
329
334
  /**
330
335
  * Load ressources from URL (common part to files and modules).
331
336
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basthon/gui-base",
3
- "version": "0.50.10",
3
+ "version": "0.50.12",
4
4
  "description": "Basthon - Base GUI",
5
5
  "homepage": "https://basthon.fr",
6
6
  "bugs": {
@@ -25,9 +25,9 @@
25
25
  "clean": "rm -rf lib/"
26
26
  },
27
27
  "dependencies": {
28
- "@basthon/checkpoints": "0.50.10",
29
- "@basthon/kernel-base": "0.50.10",
30
- "@basthon/kernel-loader": "0.50.10",
28
+ "@basthon/checkpoints": "0.50.12",
29
+ "@basthon/kernel-base": "0.50.12",
30
+ "@basthon/kernel-loader": "0.50.12",
31
31
  "js-base64": "^3.7.2",
32
32
  "pako": "^2.0.4",
33
33
  "promise-delegate": "^1.0.1"
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "d576d7a05f231b083d81eb3ee63445e77ed09f2f"
44
+ "gitHead": "5efe5f4189d6b8f881271bb95a56634e637a187c"
45
45
  }