@next/swc-wasm-web 15.4.0 → 15.4.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 +1 -1
- package/wasm.d.ts +6 -8
- package/wasm.js +36 -73
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
4
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
3
5
|
export function minifySync(s: string, opts: any): any;
|
|
4
6
|
export function minify(s: string, opts: any): Promise<any>;
|
|
5
7
|
export function transformSync(s: any, opts: any): any;
|
|
6
8
|
export function transform(s: any, opts: any): Promise<any>;
|
|
7
9
|
export function parseSync(s: string, opts: any): any;
|
|
8
10
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
10
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
11
11
|
|
|
12
12
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
13
13
|
|
|
14
14
|
export interface InitOutput {
|
|
15
15
|
readonly memory: WebAssembly.Memory;
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
16
|
+
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
17
|
+
readonly mdxCompile: (a: any, b: any) => any;
|
|
18
18
|
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
19
19
|
readonly minify: (a: any, b: any) => any;
|
|
20
20
|
readonly transformSync: (a: any, b: any) => [number, number, number];
|
|
21
21
|
readonly transform: (a: any, b: any) => any;
|
|
22
22
|
readonly parseSync: (a: any, b: any) => [number, number, number];
|
|
23
23
|
readonly parse: (a: any, b: any) => any;
|
|
24
|
-
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
25
|
-
readonly mdxCompile: (a: any, b: any) => any;
|
|
26
24
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
27
25
|
readonly __externref_table_alloc: () => number;
|
|
28
26
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
@@ -31,8 +29,8 @@ export interface InitOutput {
|
|
|
31
29
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
32
30
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
33
31
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
32
|
+
readonly closure1071_externref_shim: (a: number, b: number, c: any) => void;
|
|
33
|
+
readonly closure123_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
34
|
readonly __wbindgen_start: () => void;
|
|
37
35
|
}
|
|
38
36
|
|
package/wasm.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as __wbg_star0 from 'env';
|
|
2
|
-
|
|
3
1
|
let wasm;
|
|
4
2
|
|
|
5
3
|
function addToExternrefTable0(obj) {
|
|
@@ -45,6 +43,11 @@ function getCachedStringFromWasm0(ptr, len) {
|
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
|
|
46
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
47
|
+
ptr = ptr >>> 0;
|
|
48
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
49
|
+
}
|
|
50
|
+
|
|
48
51
|
let WASM_VECTOR_LEN = 0;
|
|
49
52
|
|
|
50
53
|
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
@@ -215,6 +218,29 @@ function takeFromExternrefTable0(idx) {
|
|
|
215
218
|
wasm.__externref_table_dealloc(idx);
|
|
216
219
|
return value;
|
|
217
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* @param {string} value
|
|
223
|
+
* @param {any} opts
|
|
224
|
+
* @returns {any}
|
|
225
|
+
*/
|
|
226
|
+
export function mdxCompileSync(value, opts) {
|
|
227
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
228
|
+
if (ret[2]) {
|
|
229
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
230
|
+
}
|
|
231
|
+
return takeFromExternrefTable0(ret[0]);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} value
|
|
236
|
+
* @param {any} opts
|
|
237
|
+
* @returns {Promise<any>}
|
|
238
|
+
*/
|
|
239
|
+
export function mdxCompile(value, opts) {
|
|
240
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
241
|
+
return ret;
|
|
242
|
+
}
|
|
243
|
+
|
|
218
244
|
/**
|
|
219
245
|
* @param {string} s
|
|
220
246
|
* @param {any} opts
|
|
@@ -284,35 +310,12 @@ export function parse(s, opts) {
|
|
|
284
310
|
return ret;
|
|
285
311
|
}
|
|
286
312
|
|
|
287
|
-
/**
|
|
288
|
-
* @param {string} value
|
|
289
|
-
* @param {any} opts
|
|
290
|
-
* @returns {any}
|
|
291
|
-
*/
|
|
292
|
-
export function mdxCompileSync(value, opts) {
|
|
293
|
-
const ret = wasm.mdxCompileSync(value, opts);
|
|
294
|
-
if (ret[2]) {
|
|
295
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
296
|
-
}
|
|
297
|
-
return takeFromExternrefTable0(ret[0]);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* @param {string} value
|
|
302
|
-
* @param {any} opts
|
|
303
|
-
* @returns {Promise<any>}
|
|
304
|
-
*/
|
|
305
|
-
export function mdxCompile(value, opts) {
|
|
306
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
307
|
-
return ret;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
313
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
311
|
-
wasm.
|
|
314
|
+
wasm.closure1071_externref_shim(arg0, arg1, arg2);
|
|
312
315
|
}
|
|
313
316
|
|
|
314
|
-
function
|
|
315
|
-
wasm.
|
|
317
|
+
function __wbg_adapter_101(arg0, arg1, arg2, arg3) {
|
|
318
|
+
wasm.closure123_externref_shim(arg0, arg1, arg2, arg3);
|
|
316
319
|
}
|
|
317
320
|
|
|
318
321
|
async function __wbg_load(module, imports) {
|
|
@@ -361,10 +364,6 @@ function __wbg_get_imports() {
|
|
|
361
364
|
const ret = arg0.call(arg1, arg2);
|
|
362
365
|
return ret;
|
|
363
366
|
}, arguments) };
|
|
364
|
-
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
365
|
-
const ret = arg0.crypto;
|
|
366
|
-
return ret;
|
|
367
|
-
};
|
|
368
367
|
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
369
368
|
const ret = arg0.done;
|
|
370
369
|
return ret;
|
|
@@ -378,8 +377,8 @@ function __wbg_get_imports() {
|
|
|
378
377
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
379
378
|
console.error(v0);
|
|
380
379
|
};
|
|
381
|
-
imports.wbg.
|
|
382
|
-
|
|
380
|
+
imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
|
|
381
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
383
382
|
}, arguments) };
|
|
384
383
|
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
385
384
|
const ret = arg0.getTime();
|
|
@@ -441,10 +440,6 @@ function __wbg_get_imports() {
|
|
|
441
440
|
const ret = arg0.length;
|
|
442
441
|
return ret;
|
|
443
442
|
};
|
|
444
|
-
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
445
|
-
const ret = arg0.msCrypto;
|
|
446
|
-
return ret;
|
|
447
|
-
};
|
|
448
443
|
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
449
444
|
const ret = new Date();
|
|
450
445
|
return ret;
|
|
@@ -456,7 +451,7 @@ function __wbg_get_imports() {
|
|
|
456
451
|
const a = state0.a;
|
|
457
452
|
state0.a = 0;
|
|
458
453
|
try {
|
|
459
|
-
return
|
|
454
|
+
return __wbg_adapter_101(a, state0.b, arg0, arg1);
|
|
460
455
|
} finally {
|
|
461
456
|
state0.a = a;
|
|
462
457
|
}
|
|
@@ -492,14 +487,6 @@ function __wbg_get_imports() {
|
|
|
492
487
|
const ret = new Function(v0);
|
|
493
488
|
return ret;
|
|
494
489
|
};
|
|
495
|
-
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
496
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
497
|
-
return ret;
|
|
498
|
-
};
|
|
499
|
-
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
500
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
501
|
-
return ret;
|
|
502
|
-
};
|
|
503
490
|
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
504
491
|
const ret = arg0.next;
|
|
505
492
|
return ret;
|
|
@@ -508,14 +495,6 @@ function __wbg_get_imports() {
|
|
|
508
495
|
const ret = arg0.next();
|
|
509
496
|
return ret;
|
|
510
497
|
}, arguments) };
|
|
511
|
-
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
512
|
-
const ret = arg0.node;
|
|
513
|
-
return ret;
|
|
514
|
-
};
|
|
515
|
-
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
516
|
-
const ret = arg0.process;
|
|
517
|
-
return ret;
|
|
518
|
-
};
|
|
519
498
|
imports.wbg.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
|
|
520
499
|
const ret = arg0.queueMicrotask;
|
|
521
500
|
return ret;
|
|
@@ -523,13 +502,6 @@ function __wbg_get_imports() {
|
|
|
523
502
|
imports.wbg.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
|
|
524
503
|
queueMicrotask(arg0);
|
|
525
504
|
};
|
|
526
|
-
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
|
|
527
|
-
arg0.randomFillSync(arg1);
|
|
528
|
-
}, arguments) };
|
|
529
|
-
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
|
|
530
|
-
const ret = module.require;
|
|
531
|
-
return ret;
|
|
532
|
-
}, arguments) };
|
|
533
505
|
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
534
506
|
const ret = Promise.resolve(arg0);
|
|
535
507
|
return ret;
|
|
@@ -566,10 +538,6 @@ function __wbg_get_imports() {
|
|
|
566
538
|
const ret = typeof window === 'undefined' ? null : window;
|
|
567
539
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
568
540
|
};
|
|
569
|
-
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
570
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
571
|
-
return ret;
|
|
572
|
-
};
|
|
573
541
|
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
574
542
|
const ret = arg0.then(arg1);
|
|
575
543
|
return ret;
|
|
@@ -578,10 +546,6 @@ function __wbg_get_imports() {
|
|
|
578
546
|
const ret = arg0.value;
|
|
579
547
|
return ret;
|
|
580
548
|
};
|
|
581
|
-
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
582
|
-
const ret = arg0.versions;
|
|
583
|
-
return ret;
|
|
584
|
-
};
|
|
585
549
|
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
586
550
|
const ret = arg0;
|
|
587
551
|
return ret;
|
|
@@ -610,8 +574,8 @@ function __wbg_get_imports() {
|
|
|
610
574
|
const ret = false;
|
|
611
575
|
return ret;
|
|
612
576
|
};
|
|
613
|
-
imports.wbg.
|
|
614
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
577
|
+
imports.wbg.__wbindgen_closure_wrapper23993 = function(arg0, arg1, arg2) {
|
|
578
|
+
const ret = makeMutClosure(arg0, arg1, 1072, __wbg_adapter_50);
|
|
615
579
|
return ret;
|
|
616
580
|
};
|
|
617
581
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -697,7 +661,6 @@ function __wbg_get_imports() {
|
|
|
697
661
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
698
662
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
699
663
|
};
|
|
700
|
-
imports['env'] = __wbg_star0;
|
|
701
664
|
|
|
702
665
|
return imports;
|
|
703
666
|
}
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|