windmill-parser-wasm-ts 1.486.1 → 1.504.0

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Ruben Fiszel <ruben@windmill.dev>"
6
6
  ],
7
- "version": "1.486.1",
7
+ "version": "1.504.0",
8
8
  "files": [
9
9
  "windmill_parser_wasm_bg.wasm",
10
10
  "windmill_parser_wasm.js",
@@ -3,6 +3,7 @@
3
3
  export function parse_deno(code: string, main_override?: string | null): string;
4
4
  export function parse_outputs(code: string): string;
5
5
  export function parse_ts_imports(code: string): string;
6
+ export function parse_assets_ts(code: string): string;
6
7
 
7
8
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
8
9
 
@@ -11,6 +12,7 @@ export interface InitOutput {
11
12
  readonly parse_deno: (a: number, b: number, c: number, d: number) => [number, number];
12
13
  readonly parse_outputs: (a: number, b: number) => [number, number];
13
14
  readonly parse_ts_imports: (a: number, b: number) => [number, number];
15
+ readonly parse_assets_ts: (a: number, b: number) => [number, number];
14
16
  readonly __wbindgen_exn_store: (a: number) => void;
15
17
  readonly __externref_table_alloc: () => number;
16
18
  readonly __wbindgen_export_2: WebAssembly.Table;
@@ -226,6 +226,25 @@ export function parse_ts_imports(code) {
226
226
  }
227
227
  }
228
228
 
229
+ /**
230
+ * @param {string} code
231
+ * @returns {string}
232
+ */
233
+ export function parse_assets_ts(code) {
234
+ let deferred2_0;
235
+ let deferred2_1;
236
+ try {
237
+ const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
238
+ const len0 = WASM_VECTOR_LEN;
239
+ const ret = wasm.parse_assets_ts(ptr0, len0);
240
+ deferred2_0 = ret[0];
241
+ deferred2_1 = ret[1];
242
+ return getStringFromWasm0(ret[0], ret[1]);
243
+ } finally {
244
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
245
+ }
246
+ }
247
+
229
248
  async function __wbg_load(module, imports) {
230
249
  if (typeof Response === 'function' && module instanceof Response) {
231
250
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -276,7 +295,7 @@ function __wbg_get_imports() {
276
295
  const ret = Object.entries(arg0);
277
296
  return ret;
278
297
  };
279
- imports.wbg.__wbg_eval_71dda4bf7abd54ec = function(arg0, arg1) {
298
+ imports.wbg.__wbg_eval_907c7552de1a5dc7 = function(arg0, arg1) {
280
299
  const ret = eval(getStringFromWasm0(arg0, arg1));
281
300
  return ret;
282
301
  };
Binary file