x-runtime-lib 0.8.73 → 0.8.74
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/dist/composables/common/sandbox.d.ts +3 -1
- package/dist/index.js +1657 -1627
- package/dist/sandbox/sandbox/index.d.ts +4 -0
- package/dist/utils/provideInject.d.ts +3 -0
- package/dist/vendor.fb00ydvl.js +51746 -0
- package/package.json +2 -1
- package/dist/vendor.i8qlesmz.js +0 -50484
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuickJSRuntime } from 'quickjs-emscripten';
|
|
1
2
|
import { Data, Env, Mode, SandboxKind } from '@/types';
|
|
2
3
|
export type PropertyKeys = string[] | string;
|
|
3
4
|
export declare function dotPropertyKeys(propertyKeys: PropertyKeys): string;
|
|
@@ -25,6 +26,9 @@ export declare class Sandbox {
|
|
|
25
26
|
dispose(): void;
|
|
26
27
|
private addChild;
|
|
27
28
|
private removeChild;
|
|
29
|
+
private context;
|
|
30
|
+
createContext(runtime: QuickJSRuntime, code: string): void;
|
|
31
|
+
destroyContext(): void;
|
|
28
32
|
private interpreter;
|
|
29
33
|
createInterpreter(code: string): void;
|
|
30
34
|
destroyInterpreter(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuickJSRuntime } from 'quickjs-emscripten';
|
|
1
2
|
import { Ref } from 'vue';
|
|
2
3
|
import { Sandbox } from '@/sandbox';
|
|
3
4
|
import { Data, Depends, Env, Mode } from '@/types';
|
|
@@ -21,5 +22,7 @@ export declare function provideData(data: Ref<Data>): void;
|
|
|
21
22
|
export declare function injectData(): Ref<Data>;
|
|
22
23
|
export declare function provideDepends(depends: Ref<Depends>): void;
|
|
23
24
|
export declare function injectDepends(): Ref<Depends>;
|
|
25
|
+
export declare function provideRuntime(runtime: QuickJSRuntime): void;
|
|
26
|
+
export declare function injectRuntime(): QuickJSRuntime;
|
|
24
27
|
export declare function provideSandbox(sandbox: Sandbox): void;
|
|
25
28
|
export declare function injectSandbox(): Sandbox | undefined;
|