@next/swc-wasm-nodejs 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 +2 -2
- package/wasm.js +97 -97
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-nodejs",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"wasm_bg.wasm",
|
|
6
6
|
"wasm.js",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/vercel/next.js",
|
|
14
|
-
"directory": "
|
|
14
|
+
"directory": "crates/wasm"
|
|
15
15
|
}
|
|
16
16
|
}
|
package/wasm.js
CHANGED
|
@@ -7,19 +7,10 @@ const heap = new Array(128).fill(undefined);
|
|
|
7
7
|
|
|
8
8
|
heap.push(undefined, null, true, false);
|
|
9
9
|
|
|
10
|
-
let heap_next = heap.length;
|
|
11
|
-
|
|
12
|
-
function addHeapObject(obj) {
|
|
13
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
14
|
-
const idx = heap_next;
|
|
15
|
-
heap_next = heap[idx];
|
|
16
|
-
|
|
17
|
-
heap[idx] = obj;
|
|
18
|
-
return idx;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
10
|
function getObject(idx) { return heap[idx]; }
|
|
22
11
|
|
|
12
|
+
let heap_next = heap.length;
|
|
13
|
+
|
|
23
14
|
function dropObject(idx) {
|
|
24
15
|
if (idx < 132) return;
|
|
25
16
|
heap[idx] = heap_next;
|
|
@@ -32,6 +23,15 @@ function takeObject(idx) {
|
|
|
32
23
|
return ret;
|
|
33
24
|
}
|
|
34
25
|
|
|
26
|
+
function addHeapObject(obj) {
|
|
27
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
|
+
const idx = heap_next;
|
|
29
|
+
heap_next = heap[idx];
|
|
30
|
+
|
|
31
|
+
heap[idx] = obj;
|
|
32
|
+
return idx;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
35
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
36
36
|
|
|
37
37
|
cachedTextDecoder.decode();
|
|
@@ -233,7 +233,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
233
233
|
return real;
|
|
234
234
|
}
|
|
235
235
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
236
|
-
wasm.
|
|
236
|
+
wasm._dyn_core_575a3b57185f9003___ops__function__FnMut_______Output______as_wasm_bindgen_9ae5c17cf8bb59fd___closure__WasmClosure___describe__invoke___wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function getCachedStringFromWasm0(ptr, len) {
|
|
@@ -252,7 +252,7 @@ function handleError(f, args) {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
255
|
-
wasm.
|
|
255
|
+
wasm.wasm_bindgen_9ae5c17cf8bb59fd___convert__closures__invoke2_mut___wasm_bindgen_9ae5c17cf8bb59fd___JsValue__wasm_bindgen_9ae5c17cf8bb59fd___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
/**
|
|
@@ -379,6 +379,10 @@ module.exports.parse = function(s, opts) {
|
|
|
379
379
|
return takeObject(ret);
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
383
|
+
takeObject(arg0);
|
|
384
|
+
};
|
|
385
|
+
|
|
382
386
|
module.exports.__wbg_new0_7a6141101f2206da = function() {
|
|
383
387
|
const ret = new Date();
|
|
384
388
|
return addHeapObject(ret);
|
|
@@ -394,10 +398,6 @@ module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
|
|
|
394
398
|
return addHeapObject(ret);
|
|
395
399
|
};
|
|
396
400
|
|
|
397
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
398
|
-
takeObject(arg0);
|
|
399
|
-
};
|
|
400
|
-
|
|
401
401
|
module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
|
|
402
402
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
403
403
|
return ret;
|
|
@@ -427,44 +427,12 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
|
427
427
|
console.error(v0);
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
module.exports.
|
|
431
|
-
const ret =
|
|
432
|
-
return addHeapObject(ret);
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
|
|
436
|
-
const ret = getObject(arg0).buffer;
|
|
437
|
-
return addHeapObject(ret);
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
|
|
441
|
-
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
442
|
-
return addHeapObject(ret);
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
446
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
447
|
-
}, arguments) };
|
|
448
|
-
|
|
449
|
-
module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
450
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
451
|
-
return addHeapObject(ret);
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
455
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
|
456
|
-
}, arguments) };
|
|
457
|
-
|
|
458
|
-
module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
459
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
430
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
431
|
+
const ret = getObject(arg0);
|
|
460
432
|
return addHeapObject(ret);
|
|
461
433
|
};
|
|
462
434
|
|
|
463
|
-
module.exports.
|
|
464
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
435
|
+
module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
|
468
436
|
const ret = getObject(arg0).crypto;
|
|
469
437
|
return addHeapObject(ret);
|
|
470
438
|
};
|
|
@@ -475,17 +443,17 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
475
443
|
return ret;
|
|
476
444
|
};
|
|
477
445
|
|
|
478
|
-
module.exports.
|
|
446
|
+
module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
|
|
479
447
|
const ret = getObject(arg0).process;
|
|
480
448
|
return addHeapObject(ret);
|
|
481
449
|
};
|
|
482
450
|
|
|
483
|
-
module.exports.
|
|
451
|
+
module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
|
|
484
452
|
const ret = getObject(arg0).versions;
|
|
485
453
|
return addHeapObject(ret);
|
|
486
454
|
};
|
|
487
455
|
|
|
488
|
-
module.exports.
|
|
456
|
+
module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
|
489
457
|
const ret = getObject(arg0).node;
|
|
490
458
|
return addHeapObject(ret);
|
|
491
459
|
};
|
|
@@ -495,7 +463,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
|
|
|
495
463
|
return ret;
|
|
496
464
|
};
|
|
497
465
|
|
|
498
|
-
module.exports.
|
|
466
|
+
module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
|
499
467
|
const ret = module.require;
|
|
500
468
|
return addHeapObject(ret);
|
|
501
469
|
}, arguments) };
|
|
@@ -515,7 +483,7 @@ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(fun
|
|
|
515
483
|
return addHeapObject(ret);
|
|
516
484
|
}, arguments) };
|
|
517
485
|
|
|
518
|
-
module.exports.
|
|
486
|
+
module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
|
519
487
|
const ret = getObject(arg0).msCrypto;
|
|
520
488
|
return addHeapObject(ret);
|
|
521
489
|
};
|
|
@@ -525,6 +493,43 @@ module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
|
525
493
|
return addHeapObject(ret);
|
|
526
494
|
};
|
|
527
495
|
|
|
496
|
+
module.exports.__wbindgen_memory = function() {
|
|
497
|
+
const ret = wasm.memory;
|
|
498
|
+
return addHeapObject(ret);
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
|
|
502
|
+
const ret = getObject(arg0).buffer;
|
|
503
|
+
return addHeapObject(ret);
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
|
|
507
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
508
|
+
return addHeapObject(ret);
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
|
512
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
513
|
+
}, arguments) };
|
|
514
|
+
|
|
515
|
+
module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
516
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
517
|
+
return addHeapObject(ret);
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
|
521
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
522
|
+
}, arguments) };
|
|
523
|
+
|
|
524
|
+
module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
525
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
526
|
+
return addHeapObject(ret);
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
|
|
530
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
531
|
+
};
|
|
532
|
+
|
|
528
533
|
module.exports.__wbg_iterator_40027cdd598da26b = function() {
|
|
529
534
|
const ret = Symbol.iterator;
|
|
530
535
|
return addHeapObject(ret);
|
|
@@ -545,6 +550,20 @@ module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
|
|
|
545
550
|
return addHeapObject(ret);
|
|
546
551
|
};
|
|
547
552
|
|
|
553
|
+
module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
554
|
+
const ret = getObject(arg0).length;
|
|
555
|
+
return ret;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
559
|
+
const obj = getObject(arg1);
|
|
560
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
561
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
562
|
+
var len1 = WASM_VECTOR_LEN;
|
|
563
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
564
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
565
|
+
};
|
|
566
|
+
|
|
548
567
|
module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
|
|
549
568
|
const ret = self.self;
|
|
550
569
|
return addHeapObject(ret);
|
|
@@ -576,25 +595,6 @@ module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
|
|
|
576
595
|
return addHeapObject(ret);
|
|
577
596
|
};
|
|
578
597
|
|
|
579
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
580
|
-
const ret = getObject(arg0);
|
|
581
|
-
return addHeapObject(ret);
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
585
|
-
const ret = getObject(arg0).length;
|
|
586
|
-
return ret;
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
590
|
-
const obj = getObject(arg1);
|
|
591
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
592
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
|
-
var len1 = WASM_VECTOR_LEN;
|
|
594
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
595
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
598
|
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
599
599
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
600
600
|
return addHeapObject(ret);
|
|
@@ -640,6 +640,25 @@ module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
640
640
|
return ret;
|
|
641
641
|
};
|
|
642
642
|
|
|
643
|
+
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
644
|
+
try {
|
|
645
|
+
var state0 = {a: arg0, b: arg1};
|
|
646
|
+
var cb0 = (arg0, arg1) => {
|
|
647
|
+
const a = state0.a;
|
|
648
|
+
state0.a = 0;
|
|
649
|
+
try {
|
|
650
|
+
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
651
|
+
} finally {
|
|
652
|
+
state0.a = a;
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
const ret = new Promise(cb0);
|
|
656
|
+
return addHeapObject(ret);
|
|
657
|
+
} finally {
|
|
658
|
+
state0.a = state0.b = 0;
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
|
|
643
662
|
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
644
663
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
645
664
|
return ret;
|
|
@@ -717,25 +736,6 @@ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
|
717
736
|
return addHeapObject(ret);
|
|
718
737
|
};
|
|
719
738
|
|
|
720
|
-
module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
721
|
-
try {
|
|
722
|
-
var state0 = {a: arg0, b: arg1};
|
|
723
|
-
var cb0 = (arg0, arg1) => {
|
|
724
|
-
const a = state0.a;
|
|
725
|
-
state0.a = 0;
|
|
726
|
-
try {
|
|
727
|
-
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
728
|
-
} finally {
|
|
729
|
-
state0.a = a;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
const ret = new Promise(cb0);
|
|
733
|
-
return addHeapObject(ret);
|
|
734
|
-
} finally {
|
|
735
|
-
state0.a = state0.b = 0;
|
|
736
|
-
}
|
|
737
|
-
};
|
|
738
|
-
|
|
739
739
|
module.exports.__wbg_new_632630b5cec17f21 = function() {
|
|
740
740
|
const ret = new Object();
|
|
741
741
|
return addHeapObject(ret);
|
|
@@ -786,8 +786,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
786
786
|
return ret;
|
|
787
787
|
};
|
|
788
788
|
|
|
789
|
-
module.exports.
|
|
790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
789
|
+
module.exports.__wbindgen_closure_wrapper24359 = function(arg0, arg1, arg2) {
|
|
790
|
+
const ret = makeMutClosure(arg0, arg1, 1813, __wbg_adapter_48);
|
|
791
791
|
return addHeapObject(ret);
|
|
792
792
|
};
|
|
793
793
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|