@basthon/kernel-base 0.78.3 → 0.78.4
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/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/worker/kernel-main.d.ts +4 -0
- package/lib/worker/kernel-main.js +6 -0
- package/package.json +1 -1
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.78.
|
|
1
|
+
export declare const VERSION = "0.78.4";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.78.
|
|
1
|
+
export const VERSION = "0.78.4";
|
|
@@ -50,6 +50,10 @@ export declare class KernelMainBase<Type extends KernelWorkerBase> extends Kerne
|
|
|
50
50
|
* Stop the worker.
|
|
51
51
|
*/
|
|
52
52
|
_stop(): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Set running data in the kernel worker (introduced to manage user_seed in capytale).
|
|
55
|
+
*/
|
|
56
|
+
setRunningData(data: any): Promise<void>;
|
|
53
57
|
/**
|
|
54
58
|
* Convert a canvas array buffer to a PNG data URL (base64 encoded).
|
|
55
59
|
*/
|
|
@@ -148,6 +148,12 @@ export class KernelMainBase extends KernelBase {
|
|
|
148
148
|
}
|
|
149
149
|
await super._stop();
|
|
150
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Set running data in the kernel worker (introduced to manage user_seed in capytale).
|
|
153
|
+
*/
|
|
154
|
+
async setRunningData(data) {
|
|
155
|
+
return await this.remote?.setRunningData(data);
|
|
156
|
+
}
|
|
151
157
|
/**
|
|
152
158
|
* Convert a canvas array buffer to a PNG data URL (base64 encoded).
|
|
153
159
|
*/
|