@swc/wasm 1.3.39 → 1.3.41
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 +1 -1
- package/wasm.d.ts +1 -0
- package/wasm.js +106 -106
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
package/wasm.js
CHANGED
|
@@ -3,6 +3,26 @@ imports['__wbindgen_placeholder__'] = module.exports;
|
|
|
3
3
|
let wasm;
|
|
4
4
|
const { TextDecoder, TextEncoder } = require(`util`);
|
|
5
5
|
|
|
6
|
+
const heap = new Array(128).fill(undefined);
|
|
7
|
+
|
|
8
|
+
heap.push(undefined, null, true, false);
|
|
9
|
+
|
|
10
|
+
function getObject(idx) { return heap[idx]; }
|
|
11
|
+
|
|
12
|
+
let heap_next = heap.length;
|
|
13
|
+
|
|
14
|
+
function dropObject(idx) {
|
|
15
|
+
if (idx < 132) return;
|
|
16
|
+
heap[idx] = heap_next;
|
|
17
|
+
heap_next = idx;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function takeObject(idx) {
|
|
21
|
+
const ret = getObject(idx);
|
|
22
|
+
dropObject(idx);
|
|
23
|
+
return ret;
|
|
24
|
+
}
|
|
25
|
+
|
|
6
26
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
7
27
|
|
|
8
28
|
cachedTextDecoder.decode();
|
|
@@ -20,12 +40,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
20
40
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
21
41
|
}
|
|
22
42
|
|
|
23
|
-
const heap = new Array(128).fill(undefined);
|
|
24
|
-
|
|
25
|
-
heap.push(undefined, null, true, false);
|
|
26
|
-
|
|
27
|
-
let heap_next = heap.length;
|
|
28
|
-
|
|
29
43
|
function addHeapObject(obj) {
|
|
30
44
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
31
45
|
const idx = heap_next;
|
|
@@ -35,20 +49,6 @@ function addHeapObject(obj) {
|
|
|
35
49
|
return idx;
|
|
36
50
|
}
|
|
37
51
|
|
|
38
|
-
function getObject(idx) { return heap[idx]; }
|
|
39
|
-
|
|
40
|
-
function dropObject(idx) {
|
|
41
|
-
if (idx < 132) return;
|
|
42
|
-
heap[idx] = heap_next;
|
|
43
|
-
heap_next = idx;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function takeObject(idx) {
|
|
47
|
-
const ret = getObject(idx);
|
|
48
|
-
dropObject(idx);
|
|
49
|
-
return ret;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
52
|
let WASM_VECTOR_LEN = 0;
|
|
53
53
|
|
|
54
54
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -396,8 +396,12 @@ function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
|
|
|
396
396
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
module.exports.
|
|
400
|
-
|
|
399
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
400
|
+
takeObject(arg0);
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
404
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
401
405
|
return addHeapObject(ret);
|
|
402
406
|
};
|
|
403
407
|
|
|
@@ -406,17 +410,18 @@ module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
|
406
410
|
return addHeapObject(ret);
|
|
407
411
|
};
|
|
408
412
|
|
|
409
|
-
module.exports.
|
|
410
|
-
getObject(arg0)
|
|
413
|
+
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
414
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
415
|
+
return addHeapObject(ret);
|
|
411
416
|
};
|
|
412
417
|
|
|
413
|
-
module.exports.
|
|
414
|
-
|
|
418
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
419
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
420
|
+
return ret;
|
|
415
421
|
};
|
|
416
422
|
|
|
417
|
-
module.exports.
|
|
418
|
-
|
|
419
|
-
return addHeapObject(ret);
|
|
423
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
424
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
420
425
|
};
|
|
421
426
|
|
|
422
427
|
module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
@@ -424,10 +429,35 @@ module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
|
424
429
|
return addHeapObject(ret);
|
|
425
430
|
};
|
|
426
431
|
|
|
432
|
+
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
433
|
+
const ret = new Object();
|
|
434
|
+
return addHeapObject(ret);
|
|
435
|
+
};
|
|
436
|
+
|
|
427
437
|
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
428
438
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
429
439
|
};
|
|
430
440
|
|
|
441
|
+
module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
442
|
+
const ret = new Map();
|
|
443
|
+
return addHeapObject(ret);
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
447
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
448
|
+
return addHeapObject(ret);
|
|
449
|
+
}, arguments) };
|
|
450
|
+
|
|
451
|
+
module.exports.__wbindgen_is_null = function(arg0) {
|
|
452
|
+
const ret = getObject(arg0) === null;
|
|
453
|
+
return ret;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
457
|
+
const ret = getObject(arg0) === undefined;
|
|
458
|
+
return ret;
|
|
459
|
+
};
|
|
460
|
+
|
|
431
461
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
432
462
|
const obj = getObject(arg1);
|
|
433
463
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -437,18 +467,29 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
437
467
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
438
468
|
};
|
|
439
469
|
|
|
440
|
-
module.exports.
|
|
441
|
-
const ret = getObject(arg0)
|
|
470
|
+
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
471
|
+
const ret = getObject(arg0).next();
|
|
472
|
+
return addHeapObject(ret);
|
|
473
|
+
}, arguments) };
|
|
474
|
+
|
|
475
|
+
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
476
|
+
const ret = getObject(arg0).done;
|
|
442
477
|
return ret;
|
|
443
478
|
};
|
|
444
479
|
|
|
445
|
-
module.exports.
|
|
446
|
-
const ret =
|
|
480
|
+
module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
481
|
+
const ret = getObject(arg0).value;
|
|
447
482
|
return addHeapObject(ret);
|
|
448
483
|
};
|
|
449
484
|
|
|
450
|
-
module.exports.
|
|
451
|
-
const ret =
|
|
485
|
+
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
486
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
487
|
+
return addHeapObject(ret);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
491
|
+
const v = getObject(arg0);
|
|
492
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
452
493
|
return ret;
|
|
453
494
|
};
|
|
454
495
|
|
|
@@ -468,29 +509,27 @@ module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
|
468
509
|
return ret;
|
|
469
510
|
};
|
|
470
511
|
|
|
471
|
-
module.exports.
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
return ret;
|
|
512
|
+
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
513
|
+
try {
|
|
514
|
+
var state0 = {a: arg0, b: arg1};
|
|
515
|
+
var cb0 = (arg0, arg1) => {
|
|
516
|
+
const a = state0.a;
|
|
517
|
+
state0.a = 0;
|
|
518
|
+
try {
|
|
519
|
+
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
520
|
+
} finally {
|
|
521
|
+
state0.a = a;
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
const ret = new Promise(cb0);
|
|
525
|
+
return addHeapObject(ret);
|
|
526
|
+
} finally {
|
|
527
|
+
state0.a = state0.b = 0;
|
|
528
|
+
}
|
|
489
529
|
};
|
|
490
530
|
|
|
491
|
-
module.exports.
|
|
492
|
-
const
|
|
493
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
531
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
532
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
494
533
|
return ret;
|
|
495
534
|
};
|
|
496
535
|
|
|
@@ -538,63 +577,24 @@ module.exports.__wbg_iterator_55f114446221aa5a = function() {
|
|
|
538
577
|
return addHeapObject(ret);
|
|
539
578
|
};
|
|
540
579
|
|
|
541
|
-
module.exports.
|
|
542
|
-
const ret =
|
|
543
|
-
return addHeapObject(ret);
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
547
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
548
|
-
return addHeapObject(ret);
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
552
|
-
const ret = new Map();
|
|
553
|
-
return addHeapObject(ret);
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
557
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
558
|
-
return addHeapObject(ret);
|
|
559
|
-
}, arguments) };
|
|
560
|
-
|
|
561
|
-
module.exports.__wbindgen_is_null = function(arg0) {
|
|
562
|
-
const ret = getObject(arg0) === null;
|
|
580
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
581
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
563
582
|
return ret;
|
|
564
583
|
};
|
|
565
584
|
|
|
566
|
-
module.exports.
|
|
567
|
-
const ret =
|
|
585
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
586
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
568
587
|
return addHeapObject(ret);
|
|
569
|
-
}, arguments) };
|
|
570
|
-
|
|
571
|
-
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
572
|
-
const ret = getObject(arg0).done;
|
|
573
|
-
return ret;
|
|
574
588
|
};
|
|
575
589
|
|
|
576
|
-
module.exports.
|
|
577
|
-
const ret =
|
|
590
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
591
|
+
const ret = arg0;
|
|
578
592
|
return addHeapObject(ret);
|
|
579
593
|
};
|
|
580
594
|
|
|
581
|
-
module.exports.
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
var cb0 = (arg0, arg1) => {
|
|
585
|
-
const a = state0.a;
|
|
586
|
-
state0.a = 0;
|
|
587
|
-
try {
|
|
588
|
-
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
589
|
-
} finally {
|
|
590
|
-
state0.a = a;
|
|
591
|
-
}
|
|
592
|
-
};
|
|
593
|
-
const ret = new Promise(cb0);
|
|
594
|
-
return addHeapObject(ret);
|
|
595
|
-
} finally {
|
|
596
|
-
state0.a = state0.b = 0;
|
|
597
|
-
}
|
|
595
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
596
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
597
|
+
return addHeapObject(ret);
|
|
598
598
|
};
|
|
599
599
|
|
|
600
600
|
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
@@ -768,8 +768,8 @@ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
|
768
768
|
return addHeapObject(ret);
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
module.exports.
|
|
772
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
771
|
+
module.exports.__wbindgen_closure_wrapper19272 = function(arg0, arg1, arg2) {
|
|
772
|
+
const ret = makeMutClosure(arg0, arg1, 235, __wbg_adapter_50);
|
|
773
773
|
return addHeapObject(ret);
|
|
774
774
|
};
|
|
775
775
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|