@next/swc-wasm-web 13.4.20-canary.8 → 13.5.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 +1 -1
- package/wasm.d.ts +2 -2
- package/wasm.js +70 -62
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -71,11 +71,11 @@ export interface InitOutput {
|
|
|
71
71
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
72
72
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
73
73
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
74
|
-
readonly
|
|
74
|
+
readonly wasm_bindgen_73cd18f45dc52fc7___convert__closures__invoke1_mut___wasm_bindgen_73cd18f45dc52fc7___JsValue_____: (a: number, b: number, c: number) => void;
|
|
75
75
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
76
76
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
77
77
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
78
|
-
readonly
|
|
78
|
+
readonly wasm_bindgen_73cd18f45dc52fc7___convert__closures__invoke2_mut___wasm_bindgen_73cd18f45dc52fc7___JsValue__wasm_bindgen_73cd18f45dc52fc7___JsValue_____: (a: number, b: number, c: number, d: number) => void;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/wasm.js
CHANGED
|
@@ -20,7 +20,9 @@ function takeObject(idx) {
|
|
|
20
20
|
return ret;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
24
|
+
|
|
25
|
+
cachedTextDecoder.decode();
|
|
24
26
|
|
|
25
27
|
let cachedUint8Memory0 = null;
|
|
26
28
|
|
|
@@ -31,6 +33,21 @@ function getUint8Memory0() {
|
|
|
31
33
|
return cachedUint8Memory0;
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
function getStringFromWasm0(ptr, len) {
|
|
37
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function addHeapObject(obj) {
|
|
41
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
42
|
+
const idx = heap_next;
|
|
43
|
+
heap_next = heap[idx];
|
|
44
|
+
|
|
45
|
+
heap[idx] = obj;
|
|
46
|
+
return idx;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let WASM_VECTOR_LEN = 0;
|
|
50
|
+
|
|
34
51
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
35
52
|
|
|
36
53
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -97,23 +114,6 @@ function getInt32Memory0() {
|
|
|
97
114
|
return cachedInt32Memory0;
|
|
98
115
|
}
|
|
99
116
|
|
|
100
|
-
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
101
|
-
|
|
102
|
-
cachedTextDecoder.decode();
|
|
103
|
-
|
|
104
|
-
function getStringFromWasm0(ptr, len) {
|
|
105
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function addHeapObject(obj) {
|
|
109
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
110
|
-
const idx = heap_next;
|
|
111
|
-
heap_next = heap[idx];
|
|
112
|
-
|
|
113
|
-
heap[idx] = obj;
|
|
114
|
-
return idx;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
117
|
function debugString(val) {
|
|
118
118
|
// primitive types
|
|
119
119
|
const type = typeof val;
|
|
@@ -221,8 +221,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
221
221
|
|
|
222
222
|
return real;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
wasm.
|
|
224
|
+
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
225
|
+
wasm.wasm_bindgen_73cd18f45dc52fc7___convert__closures__invoke1_mut___wasm_bindgen_73cd18f45dc52fc7___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
@@ -263,8 +263,8 @@ function handleError(f, args) {
|
|
|
263
263
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
wasm.
|
|
266
|
+
function __wbg_adapter_114(arg0, arg1, arg2, arg3) {
|
|
267
|
+
wasm.wasm_bindgen_73cd18f45dc52fc7___convert__closures__invoke2_mut___wasm_bindgen_73cd18f45dc52fc7___JsValue__wasm_bindgen_73cd18f45dc52fc7___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/**
|
|
@@ -444,22 +444,18 @@ function getImports() {
|
|
|
444
444
|
const ret = getObject(arg0).value;
|
|
445
445
|
return addHeapObject(ret);
|
|
446
446
|
};
|
|
447
|
-
imports.wbg.
|
|
448
|
-
const ret =
|
|
447
|
+
imports.wbg.__wbg_new0_25059e40b1c02766 = function() {
|
|
448
|
+
const ret = new Date();
|
|
449
449
|
return addHeapObject(ret);
|
|
450
450
|
};
|
|
451
|
-
imports.wbg.
|
|
452
|
-
const ret =
|
|
453
|
-
return ret;
|
|
454
|
-
};
|
|
455
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
456
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
457
|
-
return ret;
|
|
458
|
-
};
|
|
459
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
460
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
461
|
-
return ret;
|
|
451
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
452
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
453
|
+
return addHeapObject(ret);
|
|
462
454
|
};
|
|
455
|
+
imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
456
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
457
|
+
return addHeapObject(ret);
|
|
458
|
+
}, arguments) };
|
|
463
459
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
464
460
|
const obj = getObject(arg1);
|
|
465
461
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -468,22 +464,22 @@ function getImports() {
|
|
|
468
464
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
469
465
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
470
466
|
};
|
|
471
|
-
imports.wbg.
|
|
472
|
-
const ret =
|
|
467
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
468
|
+
const ret = arg0;
|
|
469
|
+
return addHeapObject(ret);
|
|
470
|
+
};
|
|
471
|
+
imports.wbg.__wbg_new_f127e324c1313064 = function(arg0) {
|
|
472
|
+
const ret = new Date(getObject(arg0));
|
|
473
473
|
return addHeapObject(ret);
|
|
474
474
|
};
|
|
475
475
|
imports.wbg.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
|
|
476
476
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
477
477
|
return ret;
|
|
478
478
|
};
|
|
479
|
-
imports.wbg.
|
|
480
|
-
const ret =
|
|
481
|
-
return
|
|
479
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
480
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
481
|
+
return ret;
|
|
482
482
|
};
|
|
483
|
-
imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
484
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
485
|
-
return addHeapObject(ret);
|
|
486
|
-
}, arguments) };
|
|
487
483
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
488
484
|
const val = getObject(arg0);
|
|
489
485
|
const ret = typeof(val) === 'object' && val !== null;
|
|
@@ -501,6 +497,18 @@ function getImports() {
|
|
|
501
497
|
imports.wbg.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
502
498
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
503
499
|
};
|
|
500
|
+
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
501
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
502
|
+
return addHeapObject(ret);
|
|
503
|
+
};
|
|
504
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
505
|
+
const ret = getObject(arg0) === undefined;
|
|
506
|
+
return ret;
|
|
507
|
+
};
|
|
508
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
509
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
510
|
+
return ret;
|
|
511
|
+
};
|
|
504
512
|
imports.wbg.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
|
|
505
513
|
const ret = getObject(arg0).getTime();
|
|
506
514
|
return ret;
|
|
@@ -533,14 +541,14 @@ imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, a
|
|
|
533
541
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
534
542
|
return addHeapObject(ret);
|
|
535
543
|
};
|
|
536
|
-
imports.wbg.
|
|
544
|
+
imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
537
545
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
538
546
|
}, arguments) };
|
|
539
547
|
imports.wbg.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
|
|
540
548
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
541
549
|
return addHeapObject(ret);
|
|
542
550
|
};
|
|
543
|
-
imports.wbg.
|
|
551
|
+
imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
544
552
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
545
553
|
}, arguments) };
|
|
546
554
|
imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
@@ -550,19 +558,19 @@ imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
|
550
558
|
imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
|
|
551
559
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
552
560
|
};
|
|
553
|
-
imports.wbg.
|
|
561
|
+
imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
554
562
|
const ret = getObject(arg0).crypto;
|
|
555
563
|
return addHeapObject(ret);
|
|
556
564
|
};
|
|
557
|
-
imports.wbg.
|
|
565
|
+
imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
|
|
558
566
|
const ret = getObject(arg0).process;
|
|
559
567
|
return addHeapObject(ret);
|
|
560
568
|
};
|
|
561
|
-
imports.wbg.
|
|
569
|
+
imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
|
|
562
570
|
const ret = getObject(arg0).versions;
|
|
563
571
|
return addHeapObject(ret);
|
|
564
572
|
};
|
|
565
|
-
imports.wbg.
|
|
573
|
+
imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
566
574
|
const ret = getObject(arg0).node;
|
|
567
575
|
return addHeapObject(ret);
|
|
568
576
|
};
|
|
@@ -570,7 +578,7 @@ imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
|
570
578
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
571
579
|
return ret;
|
|
572
580
|
};
|
|
573
|
-
imports.wbg.
|
|
581
|
+
imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
574
582
|
const ret = getObject(arg0).msCrypto;
|
|
575
583
|
return addHeapObject(ret);
|
|
576
584
|
};
|
|
@@ -578,7 +586,7 @@ imports.wbg.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
|
|
|
578
586
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
579
587
|
return addHeapObject(ret);
|
|
580
588
|
};
|
|
581
|
-
imports.wbg.
|
|
589
|
+
imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
582
590
|
const ret = module.require;
|
|
583
591
|
return addHeapObject(ret);
|
|
584
592
|
}, arguments) };
|
|
@@ -706,6 +714,13 @@ imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
|
|
|
706
714
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
707
715
|
return ret;
|
|
708
716
|
};
|
|
717
|
+
imports.wbg.__wbg_new_f9876326328f45ed = function() {
|
|
718
|
+
const ret = new Object();
|
|
719
|
+
return addHeapObject(ret);
|
|
720
|
+
};
|
|
721
|
+
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
722
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
723
|
+
};
|
|
709
724
|
imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
710
725
|
try {
|
|
711
726
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -713,7 +728,7 @@ imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
713
728
|
const a = state0.a;
|
|
714
729
|
state0.a = 0;
|
|
715
730
|
try {
|
|
716
|
-
return
|
|
731
|
+
return __wbg_adapter_114(a, state0.b, arg0, arg1);
|
|
717
732
|
} finally {
|
|
718
733
|
state0.a = a;
|
|
719
734
|
}
|
|
@@ -724,13 +739,6 @@ imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
724
739
|
state0.a = state0.b = 0;
|
|
725
740
|
}
|
|
726
741
|
};
|
|
727
|
-
imports.wbg.__wbg_new_f9876326328f45ed = function() {
|
|
728
|
-
const ret = new Object();
|
|
729
|
-
return addHeapObject(ret);
|
|
730
|
-
};
|
|
731
|
-
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
732
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
733
|
-
};
|
|
734
742
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
735
743
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
736
744
|
};
|
|
@@ -751,8 +759,8 @@ imports.wbg.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
|
751
759
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
752
760
|
return addHeapObject(ret);
|
|
753
761
|
};
|
|
754
|
-
imports.wbg.
|
|
755
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
762
|
+
imports.wbg.__wbindgen_closure_wrapper22059 = function(arg0, arg1, arg2) {
|
|
763
|
+
const ret = makeMutClosure(arg0, arg1, 283, __wbg_adapter_48);
|
|
756
764
|
return addHeapObject(ret);
|
|
757
765
|
};
|
|
758
766
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|