@swc/wasm-web 1.3.43 → 1.3.45
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-web.d.ts +3 -3
- package/wasm-web.js +92 -92
- package/wasm-web_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm-web.d.ts
CHANGED
|
@@ -1032,11 +1032,11 @@ export interface BaseModuleConfig {
|
|
|
1032
1032
|
*
|
|
1033
1033
|
* "use strict";
|
|
1034
1034
|
*
|
|
1035
|
-
* function
|
|
1035
|
+
* function _interop_require_default(obj) {
|
|
1036
1036
|
* return obj && obj.__esModule ? obj : { default: obj };
|
|
1037
1037
|
* }
|
|
1038
1038
|
*
|
|
1039
|
-
* var _foo =
|
|
1039
|
+
* var _foo = _interop_require_default(require("foo"));
|
|
1040
1040
|
* var _bar = require("bar");
|
|
1041
1041
|
*
|
|
1042
1042
|
* _foo.default;
|
|
@@ -1076,7 +1076,7 @@ export interface BaseModuleConfig {
|
|
|
1076
1076
|
* - `none`
|
|
1077
1077
|
*
|
|
1078
1078
|
* If you know that the imported file has been transformed with a compiler that stores the `default` export on
|
|
1079
|
-
* `exports.default` (such as swc or Babel), you can safely omit the `
|
|
1079
|
+
* `exports.default` (such as swc or Babel), you can safely omit the `_interop_require_default` helper.
|
|
1080
1080
|
*
|
|
1081
1081
|
* ```javascript
|
|
1082
1082
|
* import foo from "foo";
|
package/wasm-web.js
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
+
const heap = new Array(128).fill(undefined);
|
|
4
|
+
|
|
5
|
+
heap.push(undefined, null, true, false);
|
|
6
|
+
|
|
7
|
+
function getObject(idx) { return heap[idx]; }
|
|
8
|
+
|
|
9
|
+
let heap_next = heap.length;
|
|
10
|
+
|
|
11
|
+
function dropObject(idx) {
|
|
12
|
+
if (idx < 132) return;
|
|
13
|
+
heap[idx] = heap_next;
|
|
14
|
+
heap_next = idx;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function takeObject(idx) {
|
|
18
|
+
const ret = getObject(idx);
|
|
19
|
+
dropObject(idx);
|
|
20
|
+
return ret;
|
|
21
|
+
}
|
|
22
|
+
|
|
3
23
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
4
24
|
|
|
5
25
|
cachedTextDecoder.decode();
|
|
@@ -17,12 +37,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
17
37
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
18
38
|
}
|
|
19
39
|
|
|
20
|
-
const heap = new Array(128).fill(undefined);
|
|
21
|
-
|
|
22
|
-
heap.push(undefined, null, true, false);
|
|
23
|
-
|
|
24
|
-
let heap_next = heap.length;
|
|
25
|
-
|
|
26
40
|
function addHeapObject(obj) {
|
|
27
41
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
42
|
const idx = heap_next;
|
|
@@ -32,20 +46,6 @@ function addHeapObject(obj) {
|
|
|
32
46
|
return idx;
|
|
33
47
|
}
|
|
34
48
|
|
|
35
|
-
function getObject(idx) { return heap[idx]; }
|
|
36
|
-
|
|
37
|
-
function dropObject(idx) {
|
|
38
|
-
if (idx < 132) return;
|
|
39
|
-
heap[idx] = heap_next;
|
|
40
|
-
heap_next = idx;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function takeObject(idx) {
|
|
44
|
-
const ret = getObject(idx);
|
|
45
|
-
dropObject(idx);
|
|
46
|
-
return ret;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
49
|
let WASM_VECTOR_LEN = 0;
|
|
50
50
|
|
|
51
51
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -427,6 +427,13 @@ async function load(module, imports) {
|
|
|
427
427
|
function getImports() {
|
|
428
428
|
const imports = {};
|
|
429
429
|
imports.wbg = {};
|
|
430
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
431
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
432
|
+
return ret;
|
|
433
|
+
};
|
|
434
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
435
|
+
takeObject(arg0);
|
|
436
|
+
};
|
|
430
437
|
imports.wbg.__wbg_new_f9876326328f45ed = function() {
|
|
431
438
|
const ret = new Object();
|
|
432
439
|
return addHeapObject(ret);
|
|
@@ -438,9 +445,6 @@ function getImports() {
|
|
|
438
445
|
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
439
446
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
440
447
|
};
|
|
441
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
442
|
-
takeObject(arg0);
|
|
443
|
-
};
|
|
444
448
|
imports.wbg.__wbg_new_b525de17f44a8943 = function() {
|
|
445
449
|
const ret = new Array();
|
|
446
450
|
return addHeapObject(ret);
|
|
@@ -460,6 +464,28 @@ function getImports() {
|
|
|
460
464
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
461
465
|
return ret;
|
|
462
466
|
};
|
|
467
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
468
|
+
const v = getObject(arg0);
|
|
469
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
470
|
+
return ret;
|
|
471
|
+
};
|
|
472
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
473
|
+
const val = getObject(arg0);
|
|
474
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
475
|
+
return ret;
|
|
476
|
+
};
|
|
477
|
+
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
478
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
479
|
+
return addHeapObject(ret);
|
|
480
|
+
};
|
|
481
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
482
|
+
const ret = getObject(arg0) === undefined;
|
|
483
|
+
return ret;
|
|
484
|
+
};
|
|
485
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
486
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
487
|
+
return ret;
|
|
488
|
+
};
|
|
463
489
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
464
490
|
const obj = getObject(arg1);
|
|
465
491
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -468,50 +494,54 @@ function getImports() {
|
|
|
468
494
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
469
495
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
470
496
|
};
|
|
471
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
472
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
473
|
-
return addHeapObject(ret);
|
|
474
|
-
};
|
|
475
497
|
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
476
498
|
const ret = arg0;
|
|
477
499
|
return addHeapObject(ret);
|
|
478
500
|
};
|
|
479
|
-
imports.wbg.
|
|
480
|
-
const ret = getObject(arg0)
|
|
501
|
+
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
502
|
+
const ret = getObject(arg0) === null;
|
|
481
503
|
return ret;
|
|
482
504
|
};
|
|
483
|
-
imports.wbg.
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
505
|
+
imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
506
|
+
try {
|
|
507
|
+
var state0 = {a: arg0, b: arg1};
|
|
508
|
+
var cb0 = (arg0, arg1) => {
|
|
509
|
+
const a = state0.a;
|
|
510
|
+
state0.a = 0;
|
|
511
|
+
try {
|
|
512
|
+
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
513
|
+
} finally {
|
|
514
|
+
state0.a = a;
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
const ret = new Promise(cb0);
|
|
518
|
+
return addHeapObject(ret);
|
|
519
|
+
} finally {
|
|
520
|
+
state0.a = state0.b = 0;
|
|
521
|
+
}
|
|
487
522
|
};
|
|
488
|
-
imports.wbg.
|
|
489
|
-
const ret =
|
|
523
|
+
imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
524
|
+
const ret = getObject(arg0).next();
|
|
490
525
|
return addHeapObject(ret);
|
|
491
|
-
};
|
|
492
|
-
imports.wbg.
|
|
493
|
-
const ret = getObject(arg0).
|
|
526
|
+
}, arguments) };
|
|
527
|
+
imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
528
|
+
const ret = getObject(arg0).done;
|
|
494
529
|
return ret;
|
|
495
530
|
};
|
|
531
|
+
imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
532
|
+
const ret = getObject(arg0).value;
|
|
533
|
+
return addHeapObject(ret);
|
|
534
|
+
};
|
|
496
535
|
imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
497
536
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
498
537
|
return addHeapObject(ret);
|
|
499
538
|
};
|
|
500
|
-
imports.wbg.
|
|
501
|
-
const ret = getObject(arg0)
|
|
539
|
+
imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
540
|
+
const ret = Object.entries(getObject(arg0));
|
|
502
541
|
return addHeapObject(ret);
|
|
503
542
|
};
|
|
504
|
-
imports.wbg.
|
|
505
|
-
const ret = getObject(arg0)
|
|
506
|
-
return ret;
|
|
507
|
-
};
|
|
508
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
509
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
510
|
-
return ret;
|
|
511
|
-
};
|
|
512
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
513
|
-
const v = getObject(arg0);
|
|
514
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
543
|
+
imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
544
|
+
const ret = getObject(arg0).length;
|
|
515
545
|
return ret;
|
|
516
546
|
};
|
|
517
547
|
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
@@ -554,40 +584,10 @@ function getImports() {
|
|
|
554
584
|
const ret = BigInt.asUintN(64, arg0);
|
|
555
585
|
return addHeapObject(ret);
|
|
556
586
|
};
|
|
557
|
-
imports.wbg.
|
|
558
|
-
const ret =
|
|
559
|
-
return addHeapObject(ret);
|
|
560
|
-
}, arguments) };
|
|
561
|
-
imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
562
|
-
const ret = getObject(arg0).done;
|
|
563
|
-
return ret;
|
|
564
|
-
};
|
|
565
|
-
imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
566
|
-
const ret = getObject(arg0).value;
|
|
587
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
588
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
567
589
|
return addHeapObject(ret);
|
|
568
590
|
};
|
|
569
|
-
imports.wbg.__wbindgen_is_null = function(arg0) {
|
|
570
|
-
const ret = getObject(arg0) === null;
|
|
571
|
-
return ret;
|
|
572
|
-
};
|
|
573
|
-
imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
574
|
-
try {
|
|
575
|
-
var state0 = {a: arg0, b: arg1};
|
|
576
|
-
var cb0 = (arg0, arg1) => {
|
|
577
|
-
const a = state0.a;
|
|
578
|
-
state0.a = 0;
|
|
579
|
-
try {
|
|
580
|
-
return __wbg_adapter_110(a, state0.b, arg0, arg1);
|
|
581
|
-
} finally {
|
|
582
|
-
state0.a = a;
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
const ret = new Promise(cb0);
|
|
586
|
-
return addHeapObject(ret);
|
|
587
|
-
} finally {
|
|
588
|
-
state0.a = state0.b = 0;
|
|
589
|
-
}
|
|
590
|
-
};
|
|
591
591
|
imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
592
592
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
593
593
|
return addHeapObject(ret);
|
|
@@ -680,13 +680,6 @@ imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
|
680
680
|
imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
|
|
681
681
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
682
682
|
};
|
|
683
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
684
|
-
const ret = debugString(getObject(arg1));
|
|
685
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
686
|
-
const len0 = WASM_VECTOR_LEN;
|
|
687
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
688
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
689
|
-
};
|
|
690
683
|
imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
|
|
691
684
|
let result;
|
|
692
685
|
try {
|
|
@@ -714,6 +707,13 @@ imports.wbg.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
|
714
707
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
715
708
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
716
709
|
};
|
|
710
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
711
|
+
const ret = debugString(getObject(arg1));
|
|
712
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
713
|
+
const len0 = WASM_VECTOR_LEN;
|
|
714
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
715
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
716
|
+
};
|
|
717
717
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
718
718
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
719
719
|
};
|
|
@@ -734,8 +734,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
734
734
|
const ret = false;
|
|
735
735
|
return ret;
|
|
736
736
|
};
|
|
737
|
-
imports.wbg.
|
|
738
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
737
|
+
imports.wbg.__wbindgen_closure_wrapper18920 = function(arg0, arg1, arg2) {
|
|
738
|
+
const ret = makeMutClosure(arg0, arg1, 240, __wbg_adapter_50);
|
|
739
739
|
return addHeapObject(ret);
|
|
740
740
|
};
|
|
741
741
|
|
package/wasm-web_bg.wasm
CHANGED
|
Binary file
|