@tscircuit/eval 0.0.495 → 0.0.496
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 +9 -0
- package/dist/eval/index.js +27 -1
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.js +30 -1
- package/dist/webworker/entrypoint.js +22 -16
- package/dist/worker.d.ts +7 -0
- package/dist/worker.js +4 -1
- package/package.json +1 -1
package/dist/lib/index.d.ts
CHANGED
|
@@ -24,6 +24,13 @@ interface WebWorkerConfiguration extends CircuitRunnerConfiguration {
|
|
|
24
24
|
* Default: false
|
|
25
25
|
*/
|
|
26
26
|
enableFetchProxy?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Disable npm package resolution from jsDelivr CDN.
|
|
29
|
+
* When true, import statements for npm packages will throw an error instead
|
|
30
|
+
* of being resolved from the CDN.
|
|
31
|
+
* Default: false
|
|
32
|
+
*/
|
|
33
|
+
disableCdnLoading?: boolean;
|
|
27
34
|
}
|
|
28
35
|
/**
|
|
29
36
|
* API for the CircuitRunner class, used for eval'ing circuits
|
|
@@ -42,6 +49,7 @@ interface CircuitRunnerApi {
|
|
|
42
49
|
renderUntilSettled: () => Promise<void>;
|
|
43
50
|
getCircuitJson: () => Promise<AnyCircuitElement[]>;
|
|
44
51
|
setSnippetsApiBaseUrl: (baseUrl: string) => Promise<void>;
|
|
52
|
+
setDisableCdnLoading: (disable: boolean) => Promise<void>;
|
|
45
53
|
setPlatformConfig: (platform: PlatformConfig) => Promise<void>;
|
|
46
54
|
setProjectConfig: (project: Partial<PlatformConfig>) => Promise<void>;
|
|
47
55
|
setPlatformConfigProperty: (property: string, value: any) => Promise<void>;
|
|
@@ -133,6 +141,7 @@ declare class CircuitRunner implements CircuitRunnerApi {
|
|
|
133
141
|
clearEventListeners(): void;
|
|
134
142
|
kill(): Promise<void>;
|
|
135
143
|
setSnippetsApiBaseUrl(baseUrl: string): Promise<void>;
|
|
144
|
+
setDisableCdnLoading(disable: boolean): Promise<void>;
|
|
136
145
|
setPlatformConfig(platform: PlatformConfig): Promise<void>;
|
|
137
146
|
setPlatformConfigProperty(property: string, value: any): Promise<void>;
|
|
138
147
|
setProjectConfig(project: Partial<PlatformConfig>): Promise<void>;
|