@basthon/kernel-base 0.73.4 → 0.73.6
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/lib/commons.js +8 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/worker/kernel-main.js +2 -3
- package/package.json +3 -2
package/lib/commons.js
CHANGED
|
@@ -94,7 +94,14 @@ const mockFetch = (legacy) => {
|
|
|
94
94
|
// only url under the assets folder are proxyied
|
|
95
95
|
if (parent(url).startsWith(assetsURL)) {
|
|
96
96
|
const proxy = self._remoteProxy;
|
|
97
|
-
|
|
97
|
+
// request object is not (stuctured) clonable...
|
|
98
|
+
const objReq = JSON.parse(JSON.stringify(request, [
|
|
99
|
+
"credentials",
|
|
100
|
+
"headers",
|
|
101
|
+
"method",
|
|
102
|
+
"mode",
|
|
103
|
+
]));
|
|
104
|
+
const { body, options } = await proxy.fetch(request.url, objReq);
|
|
98
105
|
return new Response(body, options);
|
|
99
106
|
}
|
|
100
107
|
throw new Error("Ressource is outside the proxy' scope");
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.73.
|
|
1
|
+
export declare const VERSION = "0.73.6";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.73.
|
|
1
|
+
export const VERSION = "0.73.6";
|
|
@@ -210,9 +210,8 @@ export class KernelMainBase extends KernelBase {
|
|
|
210
210
|
case "breakpoint-move-on":
|
|
211
211
|
//@ts-ignore
|
|
212
212
|
const notebook = Jupyter?.notebook;
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
notebook?.next_breakpoint_cell?.(index);
|
|
213
|
+
const cell_id = msg.content.data?.parent_msg?.content?.cell_id;
|
|
214
|
+
notebook?.next_breakpoint_cell?.(cell_id);
|
|
216
215
|
break;
|
|
217
216
|
default: // ignoring (probably a comlink message)
|
|
218
217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/kernel-base",
|
|
3
|
-
"version": "0.73.
|
|
3
|
+
"version": "0.73.6",
|
|
4
4
|
"description": "Basthon - Base Kernel",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"clean": "rimraf lib/ src/version.ts"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
+
"comlink": "^4.4.2",
|
|
38
39
|
"crypto-js": "^4.2.0",
|
|
39
40
|
"promise-delegate": "^1.0.1"
|
|
40
41
|
},
|
|
@@ -47,5 +48,5 @@
|
|
|
47
48
|
"publishConfig": {
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "b7c704be05e37311876fc222cc6813471d0dd85c"
|
|
51
52
|
}
|