windmill-parser-wasm-ts 1.565.0 → 1.589.3
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function parse_deno(code: string, main_override?: string | null): string;
|
|
4
3
|
export function parse_outputs(code: string): string;
|
|
4
|
+
export function parse_deno(code: string, main_override?: string | null): string;
|
|
5
5
|
export function parse_ts_imports(code: string): string;
|
|
6
6
|
export function parse_assets_ts(code: string): string;
|
|
7
7
|
|
|
@@ -9,10 +9,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
9
9
|
|
|
10
10
|
export interface InitOutput {
|
|
11
11
|
readonly memory: WebAssembly.Memory;
|
|
12
|
+
readonly parse_assets_ts: (a: number, b: number) => [number, number];
|
|
12
13
|
readonly parse_deno: (a: number, b: number, c: number, d: number) => [number, number];
|
|
13
14
|
readonly parse_outputs: (a: number, b: number) => [number, number];
|
|
14
15
|
readonly parse_ts_imports: (a: number, b: number) => [number, number];
|
|
15
|
-
readonly parse_assets_ts: (a: number, b: number) => [number, number];
|
|
16
16
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
17
17
|
readonly __externref_table_alloc: () => number;
|
|
18
18
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
package/windmill_parser_wasm.js
CHANGED
|
@@ -9,16 +9,16 @@ function getUint8ArrayMemory0() {
|
|
|
9
9
|
return cachedUint8ArrayMemory0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
12
|
+
let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
13
13
|
|
|
14
|
-
cachedTextDecoder.decode();
|
|
14
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
15
15
|
|
|
16
16
|
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
17
|
let numBytesDecoded = 0;
|
|
18
18
|
function decodeText(ptr, len) {
|
|
19
19
|
numBytesDecoded += len;
|
|
20
20
|
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
21
|
+
cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
22
22
|
cachedTextDecoder.decode();
|
|
23
23
|
numBytesDecoded = len;
|
|
24
24
|
}
|
|
@@ -130,18 +130,20 @@ function debugString(val) {
|
|
|
130
130
|
|
|
131
131
|
let WASM_VECTOR_LEN = 0;
|
|
132
132
|
|
|
133
|
-
const cachedTextEncoder = new TextEncoder();
|
|
133
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
view.set(buf);
|
|
139
|
-
return {
|
|
140
|
-
read: arg.length,
|
|
141
|
-
written: buf.length
|
|
142
|
-
};
|
|
143
|
-
}
|
|
135
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
136
|
+
? function (arg, view) {
|
|
137
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
144
138
|
}
|
|
139
|
+
: function (arg, view) {
|
|
140
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
141
|
+
view.set(buf);
|
|
142
|
+
return {
|
|
143
|
+
read: arg.length,
|
|
144
|
+
written: buf.length
|
|
145
|
+
};
|
|
146
|
+
});
|
|
145
147
|
|
|
146
148
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
147
149
|
|
|
@@ -172,7 +174,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
172
174
|
}
|
|
173
175
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
174
176
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
175
|
-
const ret =
|
|
177
|
+
const ret = encodeString(arg, view);
|
|
176
178
|
|
|
177
179
|
offset += ret.written;
|
|
178
180
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -183,42 +185,42 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
183
185
|
}
|
|
184
186
|
/**
|
|
185
187
|
* @param {string} code
|
|
186
|
-
* @param {string | null} [main_override]
|
|
187
188
|
* @returns {string}
|
|
188
189
|
*/
|
|
189
|
-
export function
|
|
190
|
-
let
|
|
191
|
-
let
|
|
190
|
+
export function parse_outputs(code) {
|
|
191
|
+
let deferred2_0;
|
|
192
|
+
let deferred2_1;
|
|
192
193
|
try {
|
|
193
194
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
194
195
|
const len0 = WASM_VECTOR_LEN;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
deferred3_0 = ret[0];
|
|
199
|
-
deferred3_1 = ret[1];
|
|
196
|
+
const ret = wasm.parse_outputs(ptr0, len0);
|
|
197
|
+
deferred2_0 = ret[0];
|
|
198
|
+
deferred2_1 = ret[1];
|
|
200
199
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
201
200
|
} finally {
|
|
202
|
-
wasm.__wbindgen_free(
|
|
201
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
204
|
|
|
206
205
|
/**
|
|
207
206
|
* @param {string} code
|
|
207
|
+
* @param {string | null} [main_override]
|
|
208
208
|
* @returns {string}
|
|
209
209
|
*/
|
|
210
|
-
export function
|
|
211
|
-
let
|
|
212
|
-
let
|
|
210
|
+
export function parse_deno(code, main_override) {
|
|
211
|
+
let deferred3_0;
|
|
212
|
+
let deferred3_1;
|
|
213
213
|
try {
|
|
214
214
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
215
215
|
const len0 = WASM_VECTOR_LEN;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
var ptr1 = isLikeNone(main_override) ? 0 : passStringToWasm0(main_override, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
217
|
+
var len1 = WASM_VECTOR_LEN;
|
|
218
|
+
const ret = wasm.parse_deno(ptr0, len0, ptr1, len1);
|
|
219
|
+
deferred3_0 = ret[0];
|
|
220
|
+
deferred3_1 = ret[1];
|
|
219
221
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
220
222
|
} finally {
|
|
221
|
-
wasm.__wbindgen_free(
|
|
223
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
226
|
|
|
@@ -298,35 +300,35 @@ async function __wbg_load(module, imports) {
|
|
|
298
300
|
function __wbg_get_imports() {
|
|
299
301
|
const imports = {};
|
|
300
302
|
imports.wbg = {};
|
|
301
|
-
imports.wbg.
|
|
303
|
+
imports.wbg.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
|
|
302
304
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
303
305
|
return ret;
|
|
304
306
|
};
|
|
305
|
-
imports.wbg.
|
|
307
|
+
imports.wbg.__wbg_call_2f8d426a20a307fe = function() { return handleError(function (arg0, arg1) {
|
|
306
308
|
const ret = arg0.call(arg1);
|
|
307
309
|
return ret;
|
|
308
310
|
}, arguments) };
|
|
309
|
-
imports.wbg.
|
|
311
|
+
imports.wbg.__wbg_done_4a7743b6f942c9f3 = function(arg0) {
|
|
310
312
|
const ret = arg0.done;
|
|
311
313
|
return ret;
|
|
312
314
|
};
|
|
313
|
-
imports.wbg.
|
|
315
|
+
imports.wbg.__wbg_entries_17f7acbc2d691c0d = function(arg0) {
|
|
314
316
|
const ret = Object.entries(arg0);
|
|
315
317
|
return ret;
|
|
316
318
|
};
|
|
317
|
-
imports.wbg.
|
|
319
|
+
imports.wbg.__wbg_eval_bfe54912a0c0c52a = function(arg0, arg1) {
|
|
318
320
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
319
321
|
return ret;
|
|
320
322
|
};
|
|
321
|
-
imports.wbg.
|
|
322
|
-
const ret = arg0[arg1 >>> 0];
|
|
323
|
-
return ret;
|
|
324
|
-
};
|
|
325
|
-
imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
323
|
+
imports.wbg.__wbg_get_27b4bcbec57323ca = function() { return handleError(function (arg0, arg1) {
|
|
326
324
|
const ret = Reflect.get(arg0, arg1);
|
|
327
325
|
return ret;
|
|
328
326
|
}, arguments) };
|
|
329
|
-
imports.wbg.
|
|
327
|
+
imports.wbg.__wbg_get_59c6316d15f9f1d0 = function(arg0, arg1) {
|
|
328
|
+
const ret = arg0[arg1 >>> 0];
|
|
329
|
+
return ret;
|
|
330
|
+
};
|
|
331
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea = function(arg0) {
|
|
330
332
|
let result;
|
|
331
333
|
try {
|
|
332
334
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -336,7 +338,7 @@ function __wbg_get_imports() {
|
|
|
336
338
|
const ret = result;
|
|
337
339
|
return ret;
|
|
338
340
|
};
|
|
339
|
-
imports.wbg.
|
|
341
|
+
imports.wbg.__wbg_instanceof_Map_dd89a82d76d1b25f = function(arg0) {
|
|
340
342
|
let result;
|
|
341
343
|
try {
|
|
342
344
|
result = arg0 instanceof Map;
|
|
@@ -346,7 +348,7 @@ function __wbg_get_imports() {
|
|
|
346
348
|
const ret = result;
|
|
347
349
|
return ret;
|
|
348
350
|
};
|
|
349
|
-
imports.wbg.
|
|
351
|
+
imports.wbg.__wbg_instanceof_Uint8Array_91f3c5adee7e6672 = function(arg0) {
|
|
350
352
|
let result;
|
|
351
353
|
try {
|
|
352
354
|
result = arg0 instanceof Uint8Array;
|
|
@@ -356,95 +358,95 @@ function __wbg_get_imports() {
|
|
|
356
358
|
const ret = result;
|
|
357
359
|
return ret;
|
|
358
360
|
};
|
|
359
|
-
imports.wbg.
|
|
361
|
+
imports.wbg.__wbg_isArray_bc2498eba6fcb71f = function(arg0) {
|
|
360
362
|
const ret = Array.isArray(arg0);
|
|
361
363
|
return ret;
|
|
362
364
|
};
|
|
363
|
-
imports.wbg.
|
|
365
|
+
imports.wbg.__wbg_isSafeInteger_6091d6e3ee1b65fd = function(arg0) {
|
|
364
366
|
const ret = Number.isSafeInteger(arg0);
|
|
365
367
|
return ret;
|
|
366
368
|
};
|
|
367
|
-
imports.wbg.
|
|
369
|
+
imports.wbg.__wbg_iterator_96378c3c9a17347c = function() {
|
|
368
370
|
const ret = Symbol.iterator;
|
|
369
371
|
return ret;
|
|
370
372
|
};
|
|
371
|
-
imports.wbg.
|
|
373
|
+
imports.wbg.__wbg_length_246fa1f85a0dea5b = function(arg0) {
|
|
372
374
|
const ret = arg0.length;
|
|
373
375
|
return ret;
|
|
374
376
|
};
|
|
375
|
-
imports.wbg.
|
|
377
|
+
imports.wbg.__wbg_length_904c0910ed998bf3 = function(arg0) {
|
|
376
378
|
const ret = arg0.length;
|
|
377
379
|
return ret;
|
|
378
380
|
};
|
|
379
|
-
imports.wbg.
|
|
381
|
+
imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
|
|
380
382
|
const ret = new Uint8Array(arg0);
|
|
381
383
|
return ret;
|
|
382
384
|
};
|
|
383
|
-
imports.wbg.
|
|
384
|
-
const ret = arg0.next;
|
|
385
|
-
return ret;
|
|
386
|
-
};
|
|
387
|
-
imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
385
|
+
imports.wbg.__wbg_next_2e6b37020ac5fe58 = function() { return handleError(function (arg0) {
|
|
388
386
|
const ret = arg0.next();
|
|
389
387
|
return ret;
|
|
390
388
|
}, arguments) };
|
|
391
|
-
imports.wbg.
|
|
389
|
+
imports.wbg.__wbg_next_3de8f2669431a3ff = function(arg0) {
|
|
390
|
+
const ret = arg0.next;
|
|
391
|
+
return ret;
|
|
392
|
+
};
|
|
393
|
+
imports.wbg.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
|
|
392
394
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
393
395
|
};
|
|
394
|
-
imports.wbg.
|
|
396
|
+
imports.wbg.__wbg_value_09d0b4eaab48b91d = function(arg0) {
|
|
395
397
|
const ret = arg0.value;
|
|
396
398
|
return ret;
|
|
397
399
|
};
|
|
398
|
-
imports.wbg.
|
|
400
|
+
imports.wbg.__wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e = function(arg0, arg1) {
|
|
399
401
|
const v = arg1;
|
|
400
402
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
401
403
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
402
404
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
403
405
|
};
|
|
404
|
-
imports.wbg.
|
|
406
|
+
imports.wbg.__wbg_wbindgenbooleanget_59f830b1a70d2530 = function(arg0) {
|
|
405
407
|
const v = arg0;
|
|
406
408
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
407
409
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
408
410
|
};
|
|
409
|
-
imports.wbg.
|
|
411
|
+
imports.wbg.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
|
|
410
412
|
const ret = debugString(arg1);
|
|
411
413
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
412
414
|
const len1 = WASM_VECTOR_LEN;
|
|
413
415
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
414
416
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
415
417
|
};
|
|
416
|
-
imports.wbg.
|
|
418
|
+
imports.wbg.__wbg_wbindgenin_192b210aa1c401e9 = function(arg0, arg1) {
|
|
417
419
|
const ret = arg0 in arg1;
|
|
418
420
|
return ret;
|
|
419
421
|
};
|
|
420
|
-
imports.wbg.
|
|
422
|
+
imports.wbg.__wbg_wbindgenisbigint_7d76a1ca6454e439 = function(arg0) {
|
|
421
423
|
const ret = typeof(arg0) === 'bigint';
|
|
422
424
|
return ret;
|
|
423
425
|
};
|
|
424
|
-
imports.wbg.
|
|
426
|
+
imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
|
|
425
427
|
const ret = typeof(arg0) === 'function';
|
|
426
428
|
return ret;
|
|
427
429
|
};
|
|
428
|
-
imports.wbg.
|
|
430
|
+
imports.wbg.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
|
|
429
431
|
const val = arg0;
|
|
430
432
|
const ret = typeof(val) === 'object' && val !== null;
|
|
431
433
|
return ret;
|
|
432
434
|
};
|
|
433
|
-
imports.wbg.
|
|
435
|
+
imports.wbg.__wbg_wbindgenjsvaleq_f27272c0a890df7f = function(arg0, arg1) {
|
|
434
436
|
const ret = arg0 === arg1;
|
|
435
437
|
return ret;
|
|
436
438
|
};
|
|
437
|
-
imports.wbg.
|
|
439
|
+
imports.wbg.__wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c = function(arg0, arg1) {
|
|
438
440
|
const ret = arg0 == arg1;
|
|
439
441
|
return ret;
|
|
440
442
|
};
|
|
441
|
-
imports.wbg.
|
|
443
|
+
imports.wbg.__wbg_wbindgennumberget_d855f947247a3fbc = function(arg0, arg1) {
|
|
442
444
|
const obj = arg1;
|
|
443
445
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
444
446
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
445
447
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
446
448
|
};
|
|
447
|
-
imports.wbg.
|
|
449
|
+
imports.wbg.__wbg_wbindgenstringget_43fe05afe34b0cb1 = function(arg0, arg1) {
|
|
448
450
|
const obj = arg1;
|
|
449
451
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
450
452
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -452,7 +454,7 @@ function __wbg_get_imports() {
|
|
|
452
454
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
453
455
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
454
456
|
};
|
|
455
|
-
imports.wbg.
|
|
457
|
+
imports.wbg.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
|
|
456
458
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
457
459
|
};
|
|
458
460
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
Binary file
|