@tscircuit/eval 0.0.547 → 0.0.548
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/blob-url.js +1 -1
- package/dist/eval/index.d.ts +5 -5
- package/dist/eval/index.js +8 -8
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.js +13 -8
- package/dist/webworker/entrypoint.js +2 -2
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +6 -1
- package/package.json +1 -1
package/dist/eval/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ interface CircuitRunnerConfiguration {
|
|
|
13
13
|
* Session token for authenticating with the tscircuit npm registry.
|
|
14
14
|
* Used to fetch private @tsci/* packages from npm.tscircuit.com
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
tscircuitSessionToken?: string;
|
|
17
17
|
}
|
|
18
18
|
interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
|
|
19
19
|
evalVersion?: string;
|
|
@@ -59,7 +59,7 @@ interface CircuitRunnerApi {
|
|
|
59
59
|
setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
|
|
60
60
|
setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
|
|
61
61
|
setProjectConfigProperty: (property: string, value: any) => Promise<void>;
|
|
62
|
-
|
|
62
|
+
setTscircuitSessionToken: (token: string) => Promise<void>;
|
|
63
63
|
enableDebug: (namespace: string) => Promise<void>;
|
|
64
64
|
on: (event: RootCircuitEventName, callback: (...args: any[]) => void) => void;
|
|
65
65
|
clearEventListeners: () => void;
|
|
@@ -136,14 +136,14 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
136
136
|
setPlatformConfigProperty(property: string, value: any): Promise<void>;
|
|
137
137
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|
|
138
138
|
setProjectConfigProperty(property: string, value: any): Promise<void>;
|
|
139
|
-
|
|
139
|
+
setTscircuitSessionToken(token: string): Promise<void>;
|
|
140
140
|
enableDebug(namespace: string): Promise<void>;
|
|
141
141
|
private _bindEventListeners;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
declare function runTscircuitCode(filesystemOrCodeString: Record<string, string> | string, opts?: Omit<Parameters<CircuitRunner["executeWithFsMap"]>[0], "fsMap"> & {
|
|
145
145
|
/** Session token for authenticating with the tscircuit npm registry */
|
|
146
|
-
|
|
146
|
+
tscircuitSessionToken?: string;
|
|
147
147
|
}): Promise<({
|
|
148
148
|
type: "source_trace";
|
|
149
149
|
source_trace_id: string;
|
|
@@ -2476,7 +2476,7 @@ declare const runTscircuitModule: (module: string, opts?: {
|
|
|
2476
2476
|
props?: Record<string, any>;
|
|
2477
2477
|
exportName?: string;
|
|
2478
2478
|
/** Session token for authenticating with the tscircuit npm registry */
|
|
2479
|
-
|
|
2479
|
+
tscircuitSessionToken?: string;
|
|
2480
2480
|
}) => Promise<({
|
|
2481
2481
|
type: "source_trace";
|
|
2482
2482
|
source_trace_id: string;
|