@innovatorved/code-lab 0.1.5 → 0.1.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/dist/code-lab.d.ts +3 -1
- package/dist/code-lab.esm.js +541 -32
- package/dist/code-lab.js +531 -31
- package/dist/runtime.d.ts +1 -0
- package/dist/runtime.esm.js +455 -15
- package/dist/runtime.js +412 -4
- package/dist/schemas.esm.js +4191 -0
- package/dist/schemas.js +4207 -0
- package/dist/shell.esm.js +118 -27
- package/dist/shell.js +118 -27
- package/dist/terminal.esm.js +7 -1
- package/package.json +5 -4
- package/src/runtime.js +412 -4
- package/src/runtime.ts +413 -4
- package/src/shell.js +118 -27
- package/src/shell.ts +118 -27
package/dist/code-lab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TypeScript Definitions for @innovatorved/code-lab
|
|
2
|
+
* TypeScript Definitions for @innovatorved/code-lab v2.0.0
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export interface CodeLabStep {
|
|
@@ -276,6 +276,7 @@ export interface CodeLabRuntimeAPI {
|
|
|
276
276
|
preloadNpmPackages(files?: Record<string, string>, onProgress?: (pkg: string) => void): Promise<Record<string, string>>;
|
|
277
277
|
preloadNpmPackages(files: Record<string, string> | undefined, existingCache: Map<string, string>, onProgress?: (pkg: string) => void): Promise<Record<string, string>>;
|
|
278
278
|
transpileTS(source: string, filename?: string): string;
|
|
279
|
+
transpileForBrowser(source: string, filename?: string): string;
|
|
279
280
|
createVirtualFs(initialFiles?: Record<string, string>): any;
|
|
280
281
|
createVirtualHttp(resourceTracker?: any, sharedTrace?: any[], activePortTable?: any): any;
|
|
281
282
|
createVirtualNet(resourceTracker?: any, sharedTrace?: any[], activePortTable?: any): any;
|
|
@@ -288,6 +289,7 @@ export declare const executeInWorker: CodeLabRuntimeAPI['executeInWorker'];
|
|
|
288
289
|
export declare const cancelWorkerExecution: CodeLabRuntimeAPI['cancelWorkerExecution'];
|
|
289
290
|
export declare const preloadNpmPackages: CodeLabRuntimeAPI['preloadNpmPackages'];
|
|
290
291
|
export declare const transpileTS: CodeLabRuntimeAPI['transpileTS'];
|
|
292
|
+
export declare const transpileForBrowser: CodeLabRuntimeAPI['transpileForBrowser'];
|
|
291
293
|
export declare const createVirtualFs: CodeLabRuntimeAPI['createVirtualFs'];
|
|
292
294
|
export declare const createVirtualHttp: CodeLabRuntimeAPI['createVirtualHttp'];
|
|
293
295
|
export declare const createVirtualNet: CodeLabRuntimeAPI['createVirtualNet'];
|