windmill-parser-wasm-ts 1.397.2 → 1.429.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 +3 -2
- package/windmill_parser_wasm.js +103 -103
- package/windmill_parser_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-parser-wasm-ts",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"collaborators": [
|
|
4
5
|
"Ruben Fiszel <ruben@windmill.dev>"
|
|
5
6
|
],
|
|
6
|
-
"version": "1.
|
|
7
|
+
"version": "1.429.0",
|
|
7
8
|
"files": [
|
|
8
9
|
"windmill_parser_wasm_bg.wasm",
|
|
9
10
|
"windmill_parser_wasm.js",
|
|
10
11
|
"windmill_parser_wasm.d.ts"
|
|
11
12
|
],
|
|
12
|
-
"
|
|
13
|
+
"main": "windmill_parser_wasm.js",
|
|
13
14
|
"types": "windmill_parser_wasm.d.ts",
|
|
14
15
|
"sideEffects": [
|
|
15
16
|
"./snippets/*"
|
package/windmill_parser_wasm.js
CHANGED
|
@@ -20,7 +20,18 @@ function takeObject(idx) {
|
|
|
20
20
|
return ret;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
function addHeapObject(obj) {
|
|
24
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
25
|
+
const idx = heap_next;
|
|
26
|
+
heap_next = heap[idx];
|
|
27
|
+
|
|
28
|
+
heap[idx] = obj;
|
|
29
|
+
return idx;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
|
+
|
|
34
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
24
35
|
|
|
25
36
|
let cachedUint8Memory0 = null;
|
|
26
37
|
|
|
@@ -31,6 +42,35 @@ function getUint8Memory0() {
|
|
|
31
42
|
return cachedUint8Memory0;
|
|
32
43
|
}
|
|
33
44
|
|
|
45
|
+
function getStringFromWasm0(ptr, len) {
|
|
46
|
+
ptr = ptr >>> 0;
|
|
47
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function isLikeNone(x) {
|
|
51
|
+
return x === undefined || x === null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let cachedFloat64Memory0 = null;
|
|
55
|
+
|
|
56
|
+
function getFloat64Memory0() {
|
|
57
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
58
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
59
|
+
}
|
|
60
|
+
return cachedFloat64Memory0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let cachedInt32Memory0 = null;
|
|
64
|
+
|
|
65
|
+
function getInt32Memory0() {
|
|
66
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
67
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
68
|
+
}
|
|
69
|
+
return cachedInt32Memory0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
let WASM_VECTOR_LEN = 0;
|
|
73
|
+
|
|
34
74
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
35
75
|
|
|
36
76
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -85,46 +125,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
85
125
|
return ptr;
|
|
86
126
|
}
|
|
87
127
|
|
|
88
|
-
function isLikeNone(x) {
|
|
89
|
-
return x === undefined || x === null;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
let cachedInt32Memory0 = null;
|
|
93
|
-
|
|
94
|
-
function getInt32Memory0() {
|
|
95
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
96
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
97
|
-
}
|
|
98
|
-
return cachedInt32Memory0;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
let cachedFloat64Memory0 = null;
|
|
102
|
-
|
|
103
|
-
function getFloat64Memory0() {
|
|
104
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
105
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
106
|
-
}
|
|
107
|
-
return cachedFloat64Memory0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function addHeapObject(obj) {
|
|
111
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
112
|
-
const idx = heap_next;
|
|
113
|
-
heap_next = heap[idx];
|
|
114
|
-
|
|
115
|
-
heap[idx] = obj;
|
|
116
|
-
return idx;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
120
|
-
|
|
121
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
122
|
-
|
|
123
|
-
function getStringFromWasm0(ptr, len) {
|
|
124
|
-
ptr = ptr >>> 0;
|
|
125
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
126
|
-
}
|
|
127
|
-
|
|
128
128
|
let cachedBigInt64Memory0 = null;
|
|
129
129
|
|
|
130
130
|
function getBigInt64Memory0() {
|
|
@@ -312,80 +312,29 @@ async function __wbg_load(module, imports) {
|
|
|
312
312
|
function __wbg_get_imports() {
|
|
313
313
|
const imports = {};
|
|
314
314
|
imports.wbg = {};
|
|
315
|
-
imports.wbg.
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
319
|
-
const obj = getObject(arg1);
|
|
320
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
321
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
|
-
var len1 = WASM_VECTOR_LEN;
|
|
323
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
324
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
325
|
-
};
|
|
326
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
327
|
-
const v = getObject(arg0);
|
|
328
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
329
|
-
return ret;
|
|
315
|
+
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
316
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
317
|
+
return addHeapObject(ret);
|
|
330
318
|
};
|
|
331
|
-
imports.wbg.
|
|
332
|
-
const ret =
|
|
319
|
+
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
320
|
+
const ret = getObject(arg0).length;
|
|
333
321
|
return ret;
|
|
334
322
|
};
|
|
335
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
336
|
-
const obj = getObject(arg1);
|
|
337
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
338
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
339
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
340
|
-
};
|
|
341
323
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
342
324
|
const val = getObject(arg0);
|
|
343
325
|
const ret = typeof(val) === 'object' && val !== null;
|
|
344
326
|
return ret;
|
|
345
327
|
};
|
|
346
|
-
imports.wbg.
|
|
347
|
-
const ret = getObject(arg0)
|
|
348
|
-
return ret;
|
|
349
|
-
};
|
|
350
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
351
|
-
const ret = arg0;
|
|
352
|
-
return addHeapObject(ret);
|
|
353
|
-
};
|
|
354
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
355
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
356
|
-
return ret;
|
|
357
|
-
};
|
|
358
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
359
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
360
|
-
return addHeapObject(ret);
|
|
361
|
-
};
|
|
362
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
363
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
364
|
-
return addHeapObject(ret);
|
|
365
|
-
};
|
|
366
|
-
imports.wbg.__wbg_eval_b7405fdd08ddef3d = function(arg0, arg1) {
|
|
367
|
-
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
368
|
-
return addHeapObject(ret);
|
|
369
|
-
};
|
|
370
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
371
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
372
|
-
return ret;
|
|
373
|
-
};
|
|
374
|
-
imports.wbg.__wbg_get_bd8e338fbd5f5cc8 = function(arg0, arg1) {
|
|
375
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
328
|
+
imports.wbg.__wbg_next_40fc327bfc8770e6 = function(arg0) {
|
|
329
|
+
const ret = getObject(arg0).next;
|
|
376
330
|
return addHeapObject(ret);
|
|
377
331
|
};
|
|
378
|
-
imports.wbg.__wbg_length_cd7af8117672b8b8 = function(arg0) {
|
|
379
|
-
const ret = getObject(arg0).length;
|
|
380
|
-
return ret;
|
|
381
|
-
};
|
|
382
332
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
383
333
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
384
334
|
return ret;
|
|
385
335
|
};
|
|
386
|
-
imports.wbg.
|
|
387
|
-
|
|
388
|
-
return addHeapObject(ret);
|
|
336
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
337
|
+
takeObject(arg0);
|
|
389
338
|
};
|
|
390
339
|
imports.wbg.__wbg_next_196c84450b364254 = function() { return handleError(function (arg0) {
|
|
391
340
|
const ret = getObject(arg0).next();
|
|
@@ -443,6 +392,10 @@ function __wbg_get_imports() {
|
|
|
443
392
|
const ret = Object.entries(getObject(arg0));
|
|
444
393
|
return addHeapObject(ret);
|
|
445
394
|
};
|
|
395
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
396
|
+
const ret = wasm.memory;
|
|
397
|
+
return addHeapObject(ret);
|
|
398
|
+
};
|
|
446
399
|
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
|
447
400
|
const ret = getObject(arg0).buffer;
|
|
448
401
|
return addHeapObject(ret);
|
|
@@ -468,6 +421,33 @@ function __wbg_get_imports() {
|
|
|
468
421
|
const ret = result;
|
|
469
422
|
return ret;
|
|
470
423
|
};
|
|
424
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
425
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
426
|
+
return addHeapObject(ret);
|
|
427
|
+
};
|
|
428
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
429
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
430
|
+
return ret;
|
|
431
|
+
};
|
|
432
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
433
|
+
const v = getObject(arg0);
|
|
434
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
435
|
+
return ret;
|
|
436
|
+
};
|
|
437
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
438
|
+
const obj = getObject(arg1);
|
|
439
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
440
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
441
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
442
|
+
};
|
|
443
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
444
|
+
const obj = getObject(arg1);
|
|
445
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
446
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
+
var len1 = WASM_VECTOR_LEN;
|
|
448
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
449
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
450
|
+
};
|
|
471
451
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
472
452
|
const v = getObject(arg1);
|
|
473
453
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -484,8 +464,28 @@ function __wbg_get_imports() {
|
|
|
484
464
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
485
465
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
486
466
|
};
|
|
487
|
-
imports.wbg.
|
|
488
|
-
const ret =
|
|
467
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
468
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
469
|
+
return ret;
|
|
470
|
+
};
|
|
471
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
472
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
473
|
+
return ret;
|
|
474
|
+
};
|
|
475
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
476
|
+
const ret = arg0;
|
|
477
|
+
return addHeapObject(ret);
|
|
478
|
+
};
|
|
479
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
480
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
481
|
+
return ret;
|
|
482
|
+
};
|
|
483
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
484
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
485
|
+
return addHeapObject(ret);
|
|
486
|
+
};
|
|
487
|
+
imports.wbg.__wbg_eval_4d2c2dcba62eab9c = function(arg0, arg1) {
|
|
488
|
+
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
489
489
|
return addHeapObject(ret);
|
|
490
490
|
};
|
|
491
491
|
|
|
Binary file
|