@next/swc-wasm-web 15.0.0-rc.0 → 15.0.0-rc.1
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 +4 -3
- package/wasm.d.ts +2 -2
- package/wasm.js +85 -85
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-web",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "15.0.0-rc.1",
|
|
4
5
|
"files": [
|
|
5
6
|
"wasm_bg.wasm",
|
|
6
7
|
"wasm.js",
|
|
7
8
|
"wasm.d.ts"
|
|
8
9
|
],
|
|
9
|
-
"
|
|
10
|
+
"main": "wasm.js",
|
|
10
11
|
"types": "wasm.d.ts",
|
|
11
12
|
"sideEffects": [
|
|
12
13
|
"./snippets/*"
|
|
@@ -14,6 +15,6 @@
|
|
|
14
15
|
"repository": {
|
|
15
16
|
"type": "git",
|
|
16
17
|
"url": "https://github.com/vercel/next.js",
|
|
17
|
-
"directory": "
|
|
18
|
+
"directory": "crates/wasm"
|
|
18
19
|
}
|
|
19
20
|
}
|
package/wasm.d.ts
CHANGED
|
@@ -64,10 +64,10 @@ export interface InitOutput {
|
|
|
64
64
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
65
65
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
66
66
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
67
|
-
readonly
|
|
67
|
+
readonly _dyn_core_575a3b57185f9003___ops__function__FnMut_______Output______as_wasm_bindgen_9ae5c17cf8bb59fd___closure__WasmClosure___describe__invoke___wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____: (a: number, b: number, c: number) => void;
|
|
68
68
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
69
69
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
70
|
-
readonly
|
|
70
|
+
readonly wasm_bindgen_9ae5c17cf8bb59fd___convert__closures__invoke2_mut___wasm_bindgen_9ae5c17cf8bb59fd___JsValue__wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____: (a: number, b: number, c: number, d: number) => void;
|
|
71
71
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
72
72
|
}
|
|
73
73
|
|
package/wasm.js
CHANGED
|
@@ -4,19 +4,10 @@ const heap = new Array(128).fill(undefined);
|
|
|
4
4
|
|
|
5
5
|
heap.push(undefined, null, true, false);
|
|
6
6
|
|
|
7
|
-
let heap_next = heap.length;
|
|
8
|
-
|
|
9
|
-
function addHeapObject(obj) {
|
|
10
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
11
|
-
const idx = heap_next;
|
|
12
|
-
heap_next = heap[idx];
|
|
13
|
-
|
|
14
|
-
heap[idx] = obj;
|
|
15
|
-
return idx;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
7
|
function getObject(idx) { return heap[idx]; }
|
|
19
8
|
|
|
9
|
+
let heap_next = heap.length;
|
|
10
|
+
|
|
20
11
|
function dropObject(idx) {
|
|
21
12
|
if (idx < 132) return;
|
|
22
13
|
heap[idx] = heap_next;
|
|
@@ -29,6 +20,15 @@ function takeObject(idx) {
|
|
|
29
20
|
return ret;
|
|
30
21
|
}
|
|
31
22
|
|
|
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
32
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
33
|
|
|
34
34
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
@@ -230,7 +230,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
230
230
|
return real;
|
|
231
231
|
}
|
|
232
232
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
233
|
-
wasm.
|
|
233
|
+
wasm._dyn_core_575a3b57185f9003___ops__function__FnMut_______Output______as_wasm_bindgen_9ae5c17cf8bb59fd___closure__WasmClosure___describe__invoke___wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -249,7 +249,7 @@ function handleError(f, args) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
252
|
-
wasm.
|
|
252
|
+
wasm.wasm_bindgen_9ae5c17cf8bb59fd___convert__closures__invoke2_mut___wasm_bindgen_9ae5c17cf8bb59fd___JsValue__wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -410,6 +410,9 @@ async function __wbg_load(module, imports) {
|
|
|
410
410
|
function __wbg_get_imports() {
|
|
411
411
|
const imports = {};
|
|
412
412
|
imports.wbg = {};
|
|
413
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
414
|
+
takeObject(arg0);
|
|
415
|
+
};
|
|
413
416
|
imports.wbg.__wbg_new0_7a6141101f2206da = function() {
|
|
414
417
|
const ret = new Date();
|
|
415
418
|
return addHeapObject(ret);
|
|
@@ -422,9 +425,6 @@ function __wbg_get_imports() {
|
|
|
422
425
|
const ret = new Date(getObject(arg0));
|
|
423
426
|
return addHeapObject(ret);
|
|
424
427
|
};
|
|
425
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
426
|
-
takeObject(arg0);
|
|
427
|
-
};
|
|
428
428
|
imports.wbg.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
|
|
429
429
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
430
430
|
return ret;
|
|
@@ -449,36 +449,11 @@ function __wbg_get_imports() {
|
|
|
449
449
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
450
450
|
console.error(v0);
|
|
451
451
|
};
|
|
452
|
-
imports.wbg.
|
|
453
|
-
const ret =
|
|
454
|
-
return addHeapObject(ret);
|
|
455
|
-
};
|
|
456
|
-
imports.wbg.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
|
|
457
|
-
const ret = getObject(arg0).buffer;
|
|
458
|
-
return addHeapObject(ret);
|
|
459
|
-
};
|
|
460
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
|
|
461
|
-
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
462
|
-
return addHeapObject(ret);
|
|
463
|
-
};
|
|
464
|
-
imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
465
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
466
|
-
}, arguments) };
|
|
467
|
-
imports.wbg.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
468
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
469
|
-
return addHeapObject(ret);
|
|
470
|
-
};
|
|
471
|
-
imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
472
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
473
|
-
}, arguments) };
|
|
474
|
-
imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
475
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
452
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
453
|
+
const ret = getObject(arg0);
|
|
476
454
|
return addHeapObject(ret);
|
|
477
455
|
};
|
|
478
|
-
imports.wbg.
|
|
479
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
480
|
-
};
|
|
481
|
-
imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
456
|
+
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
482
457
|
const ret = getObject(arg0).crypto;
|
|
483
458
|
return addHeapObject(ret);
|
|
484
459
|
};
|
|
@@ -487,15 +462,15 @@ imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
|
487
462
|
const ret = typeof(val) === 'object' && val !== null;
|
|
488
463
|
return ret;
|
|
489
464
|
};
|
|
490
|
-
imports.wbg.
|
|
465
|
+
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
491
466
|
const ret = getObject(arg0).process;
|
|
492
467
|
return addHeapObject(ret);
|
|
493
468
|
};
|
|
494
|
-
imports.wbg.
|
|
469
|
+
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
495
470
|
const ret = getObject(arg0).versions;
|
|
496
471
|
return addHeapObject(ret);
|
|
497
472
|
};
|
|
498
|
-
imports.wbg.
|
|
473
|
+
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
499
474
|
const ret = getObject(arg0).node;
|
|
500
475
|
return addHeapObject(ret);
|
|
501
476
|
};
|
|
@@ -503,7 +478,7 @@ imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
|
503
478
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
504
479
|
return ret;
|
|
505
480
|
};
|
|
506
|
-
imports.wbg.
|
|
481
|
+
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
507
482
|
const ret = module.require;
|
|
508
483
|
return addHeapObject(ret);
|
|
509
484
|
}, arguments) };
|
|
@@ -519,7 +494,7 @@ imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(functi
|
|
|
519
494
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
520
495
|
return addHeapObject(ret);
|
|
521
496
|
}, arguments) };
|
|
522
|
-
imports.wbg.
|
|
497
|
+
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
523
498
|
const ret = getObject(arg0).msCrypto;
|
|
524
499
|
return addHeapObject(ret);
|
|
525
500
|
};
|
|
@@ -527,6 +502,35 @@ imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
|
527
502
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
528
503
|
return addHeapObject(ret);
|
|
529
504
|
};
|
|
505
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
506
|
+
const ret = wasm.memory;
|
|
507
|
+
return addHeapObject(ret);
|
|
508
|
+
};
|
|
509
|
+
imports.wbg.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
|
|
510
|
+
const ret = getObject(arg0).buffer;
|
|
511
|
+
return addHeapObject(ret);
|
|
512
|
+
};
|
|
513
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
|
|
514
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
515
|
+
return addHeapObject(ret);
|
|
516
|
+
};
|
|
517
|
+
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
518
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
519
|
+
}, arguments) };
|
|
520
|
+
imports.wbg.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
521
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
522
|
+
return addHeapObject(ret);
|
|
523
|
+
};
|
|
524
|
+
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
525
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
526
|
+
}, arguments) };
|
|
527
|
+
imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
528
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
529
|
+
return addHeapObject(ret);
|
|
530
|
+
};
|
|
531
|
+
imports.wbg.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
|
|
532
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
533
|
+
};
|
|
530
534
|
imports.wbg.__wbg_iterator_40027cdd598da26b = function() {
|
|
531
535
|
const ret = Symbol.iterator;
|
|
532
536
|
return addHeapObject(ret);
|
|
@@ -543,6 +547,18 @@ imports.wbg.__wbg_next_586204376d2ed373 = function(arg0) {
|
|
|
543
547
|
const ret = getObject(arg0).next;
|
|
544
548
|
return addHeapObject(ret);
|
|
545
549
|
};
|
|
550
|
+
imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
551
|
+
const ret = getObject(arg0).length;
|
|
552
|
+
return ret;
|
|
553
|
+
};
|
|
554
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
555
|
+
const obj = getObject(arg1);
|
|
556
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
557
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
558
|
+
var len1 = WASM_VECTOR_LEN;
|
|
559
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
560
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
561
|
+
};
|
|
546
562
|
imports.wbg.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
|
|
547
563
|
const ret = self.self;
|
|
548
564
|
return addHeapObject(ret);
|
|
@@ -568,22 +584,6 @@ imports.wbg.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
|
|
|
568
584
|
const ret = new Function(v0);
|
|
569
585
|
return addHeapObject(ret);
|
|
570
586
|
};
|
|
571
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
572
|
-
const ret = getObject(arg0);
|
|
573
|
-
return addHeapObject(ret);
|
|
574
|
-
};
|
|
575
|
-
imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
576
|
-
const ret = getObject(arg0).length;
|
|
577
|
-
return ret;
|
|
578
|
-
};
|
|
579
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
580
|
-
const obj = getObject(arg1);
|
|
581
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
582
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
583
|
-
var len1 = WASM_VECTOR_LEN;
|
|
584
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
585
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
586
|
-
};
|
|
587
587
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
588
588
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
589
589
|
return addHeapObject(ret);
|
|
@@ -623,6 +623,24 @@ imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
623
623
|
const ret = result;
|
|
624
624
|
return ret;
|
|
625
625
|
};
|
|
626
|
+
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
627
|
+
try {
|
|
628
|
+
var state0 = {a: arg0, b: arg1};
|
|
629
|
+
var cb0 = (arg0, arg1) => {
|
|
630
|
+
const a = state0.a;
|
|
631
|
+
state0.a = 0;
|
|
632
|
+
try {
|
|
633
|
+
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
634
|
+
} finally {
|
|
635
|
+
state0.a = a;
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
const ret = new Promise(cb0);
|
|
639
|
+
return addHeapObject(ret);
|
|
640
|
+
} finally {
|
|
641
|
+
state0.a = state0.b = 0;
|
|
642
|
+
}
|
|
643
|
+
};
|
|
626
644
|
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
627
645
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
628
646
|
return ret;
|
|
@@ -685,24 +703,6 @@ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
|
685
703
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
686
704
|
return addHeapObject(ret);
|
|
687
705
|
};
|
|
688
|
-
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
689
|
-
try {
|
|
690
|
-
var state0 = {a: arg0, b: arg1};
|
|
691
|
-
var cb0 = (arg0, arg1) => {
|
|
692
|
-
const a = state0.a;
|
|
693
|
-
state0.a = 0;
|
|
694
|
-
try {
|
|
695
|
-
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
696
|
-
} finally {
|
|
697
|
-
state0.a = a;
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
const ret = new Promise(cb0);
|
|
701
|
-
return addHeapObject(ret);
|
|
702
|
-
} finally {
|
|
703
|
-
state0.a = state0.b = 0;
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
706
|
imports.wbg.__wbg_new_632630b5cec17f21 = function() {
|
|
707
707
|
const ret = new Object();
|
|
708
708
|
return addHeapObject(ret);
|
|
@@ -744,8 +744,8 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
744
744
|
const ret = false;
|
|
745
745
|
return ret;
|
|
746
746
|
};
|
|
747
|
-
imports.wbg.
|
|
748
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
747
|
+
imports.wbg.__wbindgen_closure_wrapper24359 = function(arg0, arg1, arg2) {
|
|
748
|
+
const ret = makeMutClosure(arg0, arg1, 1813, __wbg_adapter_48);
|
|
749
749
|
return addHeapObject(ret);
|
|
750
750
|
};
|
|
751
751
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|