windmill-parser-wasm-ts 1.565.0 → 1.590.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.565.0",
7
+ "version": "1.590.0",
8
8
  "files": [
9
9
  "windmill_parser_wasm_bg.wasm",
10
10
  "windmill_parser_wasm.js",
@@ -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;
@@ -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
- if (!('encodeInto' in cachedTextEncoder)) {
136
- cachedTextEncoder.encodeInto = function (arg, view) {
137
- const buf = cachedTextEncoder.encode(arg);
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 = cachedTextEncoder.encodeInto(arg, view);
177
+ const ret = encodeString(arg, view);
176
178
 
177
179
  offset += ret.written;
178
180
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -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.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
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.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
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.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
311
+ imports.wbg.__wbg_done_4a7743b6f942c9f3 = function(arg0) {
310
312
  const ret = arg0.done;
311
313
  return ret;
312
314
  };
313
- imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
315
+ imports.wbg.__wbg_entries_17f7acbc2d691c0d = function(arg0) {
314
316
  const ret = Object.entries(arg0);
315
317
  return ret;
316
318
  };
317
- imports.wbg.__wbg_eval_5088487c29e8df77 = function(arg0, arg1) {
319
+ imports.wbg.__wbg_eval_6ed3bf8c8ee34ba8 = function(arg0, arg1) {
318
320
  const ret = eval(getStringFromWasm0(arg0, arg1));
319
321
  return ret;
320
322
  };
321
- imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
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.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
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.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
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.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
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.__wbg_isArray_030cce220591fb41 = function(arg0) {
361
+ imports.wbg.__wbg_isArray_bc2498eba6fcb71f = function(arg0) {
360
362
  const ret = Array.isArray(arg0);
361
363
  return ret;
362
364
  };
363
- imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
365
+ imports.wbg.__wbg_isSafeInteger_6091d6e3ee1b65fd = function(arg0) {
364
366
  const ret = Number.isSafeInteger(arg0);
365
367
  return ret;
366
368
  };
367
- imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
369
+ imports.wbg.__wbg_iterator_96378c3c9a17347c = function() {
368
370
  const ret = Symbol.iterator;
369
371
  return ret;
370
372
  };
371
- imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
373
+ imports.wbg.__wbg_length_246fa1f85a0dea5b = function(arg0) {
372
374
  const ret = arg0.length;
373
375
  return ret;
374
376
  };
375
- imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
377
+ imports.wbg.__wbg_length_904c0910ed998bf3 = function(arg0) {
376
378
  const ret = arg0.length;
377
379
  return ret;
378
380
  };
379
- imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
381
+ imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
380
382
  const ret = new Uint8Array(arg0);
381
383
  return ret;
382
384
  };
383
- imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
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.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
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.__wbg_value_dd9372230531eade = function(arg0) {
396
+ imports.wbg.__wbg_value_09d0b4eaab48b91d = function(arg0) {
395
397
  const ret = arg0.value;
396
398
  return ret;
397
399
  };
398
- imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
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.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
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.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
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.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
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.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
422
+ imports.wbg.__wbg_wbindgenisbigint_7d76a1ca6454e439 = function(arg0) {
421
423
  const ret = typeof(arg0) === 'bigint';
422
424
  return ret;
423
425
  };
424
- imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
426
+ imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
425
427
  const ret = typeof(arg0) === 'function';
426
428
  return ret;
427
429
  };
428
- imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
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.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
435
+ imports.wbg.__wbg_wbindgenjsvaleq_f27272c0a890df7f = function(arg0, arg1) {
434
436
  const ret = arg0 === arg1;
435
437
  return ret;
436
438
  };
437
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
439
+ imports.wbg.__wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c = function(arg0, arg1) {
438
440
  const ret = arg0 == arg1;
439
441
  return ret;
440
442
  };
441
- imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
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.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
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.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
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