windmill-parser-wasm-ts 1.385.0 → 1.398.1
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
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* @param {string} code
|
|
5
|
+
* @param {string | undefined} [main_override]
|
|
5
6
|
* @returns {string}
|
|
6
7
|
*/
|
|
7
|
-
export function parse_deno(code: string): string;
|
|
8
|
+
export function parse_deno(code: string, main_override?: string): string;
|
|
8
9
|
/**
|
|
9
10
|
* @param {string} code
|
|
10
11
|
* @returns {string}
|
|
@@ -20,7 +21,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
20
21
|
|
|
21
22
|
export interface InitOutput {
|
|
22
23
|
readonly memory: WebAssembly.Memory;
|
|
23
|
-
readonly parse_deno: (a: number, b: number, c: number) => void;
|
|
24
|
+
readonly parse_deno: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
24
25
|
readonly parse_outputs: (a: number, b: number, c: number) => void;
|
|
25
26
|
readonly parse_ts_imports: (a: number, b: number, c: number) => void;
|
|
26
27
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
@@ -35,18 +36,18 @@ export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
|
35
36
|
* Instantiates the given `module`, which can either be bytes or
|
|
36
37
|
* a precompiled `WebAssembly.Module`.
|
|
37
38
|
*
|
|
38
|
-
* @param {
|
|
39
|
+
* @param {SyncInitInput} module
|
|
39
40
|
*
|
|
40
41
|
* @returns {InitOutput}
|
|
41
42
|
*/
|
|
42
|
-
export function initSync(module:
|
|
43
|
+
export function initSync(module: SyncInitInput): InitOutput;
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
46
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
46
47
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
47
48
|
*
|
|
48
|
-
* @param {
|
|
49
|
+
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
49
50
|
*
|
|
50
51
|
* @returns {Promise<InitOutput>}
|
|
51
52
|
*/
|
|
52
|
-
export default function __wbg_init (module_or_path?:
|
|
53
|
+
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/windmill_parser_wasm.js
CHANGED
|
@@ -22,13 +22,13 @@ function takeObject(idx) {
|
|
|
22
22
|
|
|
23
23
|
let WASM_VECTOR_LEN = 0;
|
|
24
24
|
|
|
25
|
-
let
|
|
25
|
+
let cachedUint8Memory0 = null;
|
|
26
26
|
|
|
27
|
-
function
|
|
28
|
-
if (
|
|
29
|
-
|
|
27
|
+
function getUint8Memory0() {
|
|
28
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
29
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return cachedUint8Memory0;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -51,7 +51,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
51
51
|
if (realloc === undefined) {
|
|
52
52
|
const buf = cachedTextEncoder.encode(arg);
|
|
53
53
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
54
|
-
|
|
54
|
+
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
55
55
|
WASM_VECTOR_LEN = buf.length;
|
|
56
56
|
return ptr;
|
|
57
57
|
}
|
|
@@ -59,7 +59,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
59
59
|
let len = arg.length;
|
|
60
60
|
let ptr = malloc(len, 1) >>> 0;
|
|
61
61
|
|
|
62
|
-
const mem =
|
|
62
|
+
const mem = getUint8Memory0();
|
|
63
63
|
|
|
64
64
|
let offset = 0;
|
|
65
65
|
|
|
@@ -74,7 +74,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
74
74
|
arg = arg.slice(offset);
|
|
75
75
|
}
|
|
76
76
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
77
|
-
const view =
|
|
77
|
+
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
|
78
78
|
const ret = encodeString(arg, view);
|
|
79
79
|
|
|
80
80
|
offset += ret.written;
|
|
@@ -89,13 +89,22 @@ function isLikeNone(x) {
|
|
|
89
89
|
return x === undefined || x === null;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
let
|
|
92
|
+
let cachedInt32Memory0 = null;
|
|
93
93
|
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
96
|
-
|
|
94
|
+
function getInt32Memory0() {
|
|
95
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
96
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
97
97
|
}
|
|
98
|
-
return
|
|
98
|
+
return cachedInt32Memory0;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
102
|
+
|
|
103
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
104
|
+
|
|
105
|
+
function getStringFromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
99
108
|
}
|
|
100
109
|
|
|
101
110
|
function addHeapObject(obj) {
|
|
@@ -107,13 +116,22 @@ function addHeapObject(obj) {
|
|
|
107
116
|
return idx;
|
|
108
117
|
}
|
|
109
118
|
|
|
110
|
-
|
|
119
|
+
let cachedFloat64Memory0 = null;
|
|
111
120
|
|
|
112
|
-
|
|
121
|
+
function getFloat64Memory0() {
|
|
122
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
123
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
124
|
+
}
|
|
125
|
+
return cachedFloat64Memory0;
|
|
126
|
+
}
|
|
113
127
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
let cachedBigInt64Memory0 = null;
|
|
129
|
+
|
|
130
|
+
function getBigInt64Memory0() {
|
|
131
|
+
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
132
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
133
|
+
}
|
|
134
|
+
return cachedBigInt64Memory0;
|
|
117
135
|
}
|
|
118
136
|
|
|
119
137
|
function debugString(val) {
|
|
@@ -182,24 +200,27 @@ function debugString(val) {
|
|
|
182
200
|
}
|
|
183
201
|
/**
|
|
184
202
|
* @param {string} code
|
|
203
|
+
* @param {string | undefined} [main_override]
|
|
185
204
|
* @returns {string}
|
|
186
205
|
*/
|
|
187
|
-
export function parse_deno(code) {
|
|
188
|
-
let
|
|
189
|
-
let
|
|
206
|
+
export function parse_deno(code, main_override) {
|
|
207
|
+
let deferred3_0;
|
|
208
|
+
let deferred3_1;
|
|
190
209
|
try {
|
|
191
210
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
192
211
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
193
212
|
const len0 = WASM_VECTOR_LEN;
|
|
194
|
-
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
213
|
+
var ptr1 = isLikeNone(main_override) ? 0 : passStringToWasm0(main_override, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
214
|
+
var len1 = WASM_VECTOR_LEN;
|
|
215
|
+
wasm.parse_deno(retptr, ptr0, len0, ptr1, len1);
|
|
216
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
217
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
218
|
+
deferred3_0 = r0;
|
|
219
|
+
deferred3_1 = r1;
|
|
199
220
|
return getStringFromWasm0(r0, r1);
|
|
200
221
|
} finally {
|
|
201
222
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
202
|
-
wasm.__wbindgen_free(
|
|
223
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
203
224
|
}
|
|
204
225
|
}
|
|
205
226
|
|
|
@@ -215,8 +236,8 @@ export function parse_outputs(code) {
|
|
|
215
236
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
216
237
|
const len0 = WASM_VECTOR_LEN;
|
|
217
238
|
wasm.parse_outputs(retptr, ptr0, len0);
|
|
218
|
-
var r0 =
|
|
219
|
-
var r1 =
|
|
239
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
240
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
220
241
|
deferred2_0 = r0;
|
|
221
242
|
deferred2_1 = r1;
|
|
222
243
|
return getStringFromWasm0(r0, r1);
|
|
@@ -238,8 +259,8 @@ export function parse_ts_imports(code) {
|
|
|
238
259
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
239
260
|
const len0 = WASM_VECTOR_LEN;
|
|
240
261
|
wasm.parse_ts_imports(retptr, ptr0, len0);
|
|
241
|
-
var r0 =
|
|
242
|
-
var r1 =
|
|
262
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
263
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
243
264
|
deferred2_0 = r0;
|
|
244
265
|
deferred2_1 = r1;
|
|
245
266
|
return getStringFromWasm0(r0, r1);
|
|
@@ -291,10 +312,6 @@ async function __wbg_load(module, imports) {
|
|
|
291
312
|
function __wbg_get_imports() {
|
|
292
313
|
const imports = {};
|
|
293
314
|
imports.wbg = {};
|
|
294
|
-
imports.wbg.__wbg_eval_204ec87eadeaef4a = function(arg0, arg1) {
|
|
295
|
-
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
296
|
-
return addHeapObject(ret);
|
|
297
|
-
};
|
|
298
315
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
299
316
|
takeObject(arg0);
|
|
300
317
|
};
|
|
@@ -303,8 +320,16 @@ function __wbg_get_imports() {
|
|
|
303
320
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
304
321
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
322
|
var len1 = WASM_VECTOR_LEN;
|
|
306
|
-
|
|
307
|
-
|
|
323
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
324
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
325
|
+
};
|
|
326
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
327
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
328
|
+
return addHeapObject(ret);
|
|
329
|
+
};
|
|
330
|
+
imports.wbg.__wbg_eval_8243d86342a64a9b = function(arg0, arg1) {
|
|
331
|
+
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
332
|
+
return addHeapObject(ret);
|
|
308
333
|
};
|
|
309
334
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
310
335
|
const v = getObject(arg0);
|
|
@@ -318,8 +343,8 @@ function __wbg_get_imports() {
|
|
|
318
343
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
319
344
|
const obj = getObject(arg1);
|
|
320
345
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
321
|
-
|
|
322
|
-
|
|
346
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
347
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
323
348
|
};
|
|
324
349
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
325
350
|
const val = getObject(arg0);
|
|
@@ -342,19 +367,15 @@ function __wbg_get_imports() {
|
|
|
342
367
|
const ret = BigInt.asUintN(64, arg0);
|
|
343
368
|
return addHeapObject(ret);
|
|
344
369
|
};
|
|
345
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
346
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
347
|
-
return addHeapObject(ret);
|
|
348
|
-
};
|
|
349
370
|
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
350
371
|
const ret = getObject(arg0) == getObject(arg1);
|
|
351
372
|
return ret;
|
|
352
373
|
};
|
|
353
|
-
imports.wbg.
|
|
374
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
354
375
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
355
376
|
return addHeapObject(ret);
|
|
356
377
|
};
|
|
357
|
-
imports.wbg.
|
|
378
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
358
379
|
const ret = getObject(arg0).length;
|
|
359
380
|
return ret;
|
|
360
381
|
};
|
|
@@ -362,39 +383,39 @@ function __wbg_get_imports() {
|
|
|
362
383
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
363
384
|
return ret;
|
|
364
385
|
};
|
|
365
|
-
imports.wbg.
|
|
386
|
+
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
366
387
|
const ret = getObject(arg0).next;
|
|
367
388
|
return addHeapObject(ret);
|
|
368
389
|
};
|
|
369
|
-
imports.wbg.
|
|
390
|
+
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
370
391
|
const ret = getObject(arg0).next();
|
|
371
392
|
return addHeapObject(ret);
|
|
372
393
|
}, arguments) };
|
|
373
|
-
imports.wbg.
|
|
394
|
+
imports.wbg.__wbg_done_298b57d23c0fc80c = function(arg0) {
|
|
374
395
|
const ret = getObject(arg0).done;
|
|
375
396
|
return ret;
|
|
376
397
|
};
|
|
377
|
-
imports.wbg.
|
|
398
|
+
imports.wbg.__wbg_value_d93c65011f51a456 = function(arg0) {
|
|
378
399
|
const ret = getObject(arg0).value;
|
|
379
400
|
return addHeapObject(ret);
|
|
380
401
|
};
|
|
381
|
-
imports.wbg.
|
|
402
|
+
imports.wbg.__wbg_iterator_2cee6dadfd956dfa = function() {
|
|
382
403
|
const ret = Symbol.iterator;
|
|
383
404
|
return addHeapObject(ret);
|
|
384
405
|
};
|
|
385
|
-
imports.wbg.
|
|
406
|
+
imports.wbg.__wbg_get_e3c254076557e348 = function() { return handleError(function (arg0, arg1) {
|
|
386
407
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
387
408
|
return addHeapObject(ret);
|
|
388
409
|
}, arguments) };
|
|
389
|
-
imports.wbg.
|
|
410
|
+
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
|
|
390
411
|
const ret = getObject(arg0).call(getObject(arg1));
|
|
391
412
|
return addHeapObject(ret);
|
|
392
413
|
}, arguments) };
|
|
393
|
-
imports.wbg.
|
|
414
|
+
imports.wbg.__wbg_isArray_2ab64d95e09ea0ae = function(arg0) {
|
|
394
415
|
const ret = Array.isArray(getObject(arg0));
|
|
395
416
|
return ret;
|
|
396
417
|
};
|
|
397
|
-
imports.wbg.
|
|
418
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2 = function(arg0) {
|
|
398
419
|
let result;
|
|
399
420
|
try {
|
|
400
421
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -404,7 +425,7 @@ function __wbg_get_imports() {
|
|
|
404
425
|
const ret = result;
|
|
405
426
|
return ret;
|
|
406
427
|
};
|
|
407
|
-
imports.wbg.
|
|
428
|
+
imports.wbg.__wbg_instanceof_Map_87917e0a7aaf4012 = function(arg0) {
|
|
408
429
|
let result;
|
|
409
430
|
try {
|
|
410
431
|
result = getObject(arg0) instanceof Map;
|
|
@@ -414,30 +435,30 @@ function __wbg_get_imports() {
|
|
|
414
435
|
const ret = result;
|
|
415
436
|
return ret;
|
|
416
437
|
};
|
|
417
|
-
imports.wbg.
|
|
438
|
+
imports.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2 = function(arg0) {
|
|
418
439
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
419
440
|
return ret;
|
|
420
441
|
};
|
|
421
|
-
imports.wbg.
|
|
442
|
+
imports.wbg.__wbg_entries_95cc2c823b285a09 = function(arg0) {
|
|
422
443
|
const ret = Object.entries(getObject(arg0));
|
|
423
444
|
return addHeapObject(ret);
|
|
424
445
|
};
|
|
425
|
-
imports.wbg.
|
|
446
|
+
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
426
447
|
const ret = getObject(arg0).buffer;
|
|
427
448
|
return addHeapObject(ret);
|
|
428
449
|
};
|
|
429
|
-
imports.wbg.
|
|
450
|
+
imports.wbg.__wbg_new_63b92bc8671ed464 = function(arg0) {
|
|
430
451
|
const ret = new Uint8Array(getObject(arg0));
|
|
431
452
|
return addHeapObject(ret);
|
|
432
453
|
};
|
|
433
|
-
imports.wbg.
|
|
454
|
+
imports.wbg.__wbg_set_a47bac70306a19a7 = function(arg0, arg1, arg2) {
|
|
434
455
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
435
456
|
};
|
|
436
|
-
imports.wbg.
|
|
457
|
+
imports.wbg.__wbg_length_c20a40f15020d68a = function(arg0) {
|
|
437
458
|
const ret = getObject(arg0).length;
|
|
438
459
|
return ret;
|
|
439
460
|
};
|
|
440
|
-
imports.wbg.
|
|
461
|
+
imports.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6 = function(arg0) {
|
|
441
462
|
let result;
|
|
442
463
|
try {
|
|
443
464
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -450,15 +471,15 @@ function __wbg_get_imports() {
|
|
|
450
471
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
451
472
|
const v = getObject(arg1);
|
|
452
473
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
453
|
-
|
|
454
|
-
|
|
474
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
475
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
455
476
|
};
|
|
456
477
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
457
478
|
const ret = debugString(getObject(arg1));
|
|
458
479
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
459
480
|
const len1 = WASM_VECTOR_LEN;
|
|
460
|
-
|
|
461
|
-
|
|
481
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
482
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
462
483
|
};
|
|
463
484
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
464
485
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
@@ -471,16 +492,17 @@ function __wbg_get_imports() {
|
|
|
471
492
|
return imports;
|
|
472
493
|
}
|
|
473
494
|
|
|
474
|
-
function __wbg_init_memory(imports,
|
|
495
|
+
function __wbg_init_memory(imports, maybe_memory) {
|
|
475
496
|
|
|
476
497
|
}
|
|
477
498
|
|
|
478
499
|
function __wbg_finalize_init(instance, module) {
|
|
479
500
|
wasm = instance.exports;
|
|
480
501
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
502
|
+
cachedBigInt64Memory0 = null;
|
|
503
|
+
cachedFloat64Memory0 = null;
|
|
504
|
+
cachedInt32Memory0 = null;
|
|
505
|
+
cachedUint8Memory0 = null;
|
|
484
506
|
|
|
485
507
|
|
|
486
508
|
return wasm;
|
|
@@ -489,12 +511,6 @@ function __wbg_finalize_init(instance, module) {
|
|
|
489
511
|
function initSync(module) {
|
|
490
512
|
if (wasm !== undefined) return wasm;
|
|
491
513
|
|
|
492
|
-
|
|
493
|
-
if (typeof module !== 'undefined' && Object.getPrototypeOf(module) === Object.prototype)
|
|
494
|
-
({module} = module)
|
|
495
|
-
else
|
|
496
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
497
|
-
|
|
498
514
|
const imports = __wbg_get_imports();
|
|
499
515
|
|
|
500
516
|
__wbg_init_memory(imports);
|
|
@@ -508,30 +524,24 @@ function initSync(module) {
|
|
|
508
524
|
return __wbg_finalize_init(instance, module);
|
|
509
525
|
}
|
|
510
526
|
|
|
511
|
-
async function __wbg_init(
|
|
527
|
+
async function __wbg_init(input) {
|
|
512
528
|
if (wasm !== undefined) return wasm;
|
|
513
529
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
({module_or_path} = module_or_path)
|
|
517
|
-
else
|
|
518
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
519
|
-
|
|
520
|
-
if (typeof module_or_path === 'undefined') {
|
|
521
|
-
module_or_path = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
|
|
530
|
+
if (typeof input === 'undefined') {
|
|
531
|
+
input = new URL('windmill_parser_wasm_bg.wasm', import.meta.url);
|
|
522
532
|
}
|
|
523
533
|
const imports = __wbg_get_imports();
|
|
524
534
|
|
|
525
|
-
if (typeof
|
|
526
|
-
|
|
535
|
+
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
|
536
|
+
input = fetch(input);
|
|
527
537
|
}
|
|
528
538
|
|
|
529
539
|
__wbg_init_memory(imports);
|
|
530
540
|
|
|
531
|
-
const { instance, module } = await __wbg_load(await
|
|
541
|
+
const { instance, module } = await __wbg_load(await input, imports);
|
|
532
542
|
|
|
533
543
|
return __wbg_finalize_init(instance, module);
|
|
534
544
|
}
|
|
535
545
|
|
|
536
|
-
export { initSync }
|
|
546
|
+
export { initSync }
|
|
537
547
|
export default __wbg_init;
|
|
Binary file
|