@next/swc-wasm-web 15.0.2-canary.8 → 15.0.2
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 -3
- package/wasm.d.ts +14 -14
- package/wasm.js +58 -58
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/swc-wasm-web",
|
|
3
|
-
"
|
|
4
|
-
"version": "15.0.2-canary.8",
|
|
3
|
+
"version": "15.0.2",
|
|
5
4
|
"files": [
|
|
6
5
|
"wasm_bg.wasm",
|
|
7
6
|
"wasm.js",
|
|
8
7
|
"wasm.d.ts"
|
|
9
8
|
],
|
|
10
|
-
"
|
|
9
|
+
"module": "wasm.js",
|
|
11
10
|
"types": "wasm.d.ts",
|
|
12
11
|
"sideEffects": [
|
|
13
12
|
"./snippets/*"
|
package/wasm.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} value
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {Promise<any>}
|
|
13
|
-
*/
|
|
14
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
4
|
* @param {string} s
|
|
17
5
|
* @param {any} opts
|
|
18
6
|
* @returns {any}
|
|
@@ -48,19 +36,31 @@ export function parseSync(s: string, opts: any): any;
|
|
|
48
36
|
* @returns {Promise<any>}
|
|
49
37
|
*/
|
|
50
38
|
export function parse(s: string, opts: any): Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} value
|
|
41
|
+
* @param {any} opts
|
|
42
|
+
* @returns {any}
|
|
43
|
+
*/
|
|
44
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param {string} value
|
|
47
|
+
* @param {any} opts
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
50
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
51
51
|
|
|
52
52
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
53
53
|
|
|
54
54
|
export interface InitOutput {
|
|
55
55
|
readonly memory: WebAssembly.Memory;
|
|
56
|
-
readonly mdxCompileSync: (a: number, b: number, c: number) => void;
|
|
57
|
-
readonly mdxCompile: (a: number, b: number) => number;
|
|
58
56
|
readonly minifySync: (a: number, b: number, c: number) => void;
|
|
59
57
|
readonly minify: (a: number, b: number) => number;
|
|
60
58
|
readonly transformSync: (a: number, b: number, c: number) => void;
|
|
61
59
|
readonly transform: (a: number, b: number) => number;
|
|
62
60
|
readonly parseSync: (a: number, b: number, c: number) => void;
|
|
63
61
|
readonly parse: (a: number, b: number) => number;
|
|
62
|
+
readonly mdxCompileSync: (a: number, b: number, c: number) => void;
|
|
63
|
+
readonly mdxCompile: (a: number, b: number) => number;
|
|
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;
|
package/wasm.js
CHANGED
|
@@ -253,14 +253,14 @@ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
|
-
* @param {string}
|
|
256
|
+
* @param {string} s
|
|
257
257
|
* @param {any} opts
|
|
258
258
|
* @returns {any}
|
|
259
259
|
*/
|
|
260
|
-
export function
|
|
260
|
+
export function minifySync(s, opts) {
|
|
261
261
|
try {
|
|
262
262
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
263
|
-
wasm.
|
|
263
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
264
264
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
265
265
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
266
266
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -274,24 +274,24 @@ export function mdxCompileSync(value, opts) {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
|
-
* @param {string}
|
|
277
|
+
* @param {string} s
|
|
278
278
|
* @param {any} opts
|
|
279
279
|
* @returns {Promise<any>}
|
|
280
280
|
*/
|
|
281
|
-
export function
|
|
282
|
-
const ret = wasm.
|
|
281
|
+
export function minify(s, opts) {
|
|
282
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
283
283
|
return takeObject(ret);
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
|
-
* @param {
|
|
287
|
+
* @param {any} s
|
|
288
288
|
* @param {any} opts
|
|
289
289
|
* @returns {any}
|
|
290
290
|
*/
|
|
291
|
-
export function
|
|
291
|
+
export function transformSync(s, opts) {
|
|
292
292
|
try {
|
|
293
293
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
294
|
-
wasm.
|
|
294
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
295
295
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
296
296
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
297
297
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -305,24 +305,24 @@ export function minifySync(s, opts) {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* @param {
|
|
308
|
+
* @param {any} s
|
|
309
309
|
* @param {any} opts
|
|
310
310
|
* @returns {Promise<any>}
|
|
311
311
|
*/
|
|
312
|
-
export function
|
|
313
|
-
const ret = wasm.
|
|
312
|
+
export function transform(s, opts) {
|
|
313
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
314
314
|
return takeObject(ret);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
/**
|
|
318
|
-
* @param {
|
|
318
|
+
* @param {string} s
|
|
319
319
|
* @param {any} opts
|
|
320
320
|
* @returns {any}
|
|
321
321
|
*/
|
|
322
|
-
export function
|
|
322
|
+
export function parseSync(s, opts) {
|
|
323
323
|
try {
|
|
324
324
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
325
|
-
wasm.
|
|
325
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
326
326
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
327
327
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
328
328
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -336,24 +336,24 @@ export function transformSync(s, opts) {
|
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
|
-
* @param {
|
|
339
|
+
* @param {string} s
|
|
340
340
|
* @param {any} opts
|
|
341
341
|
* @returns {Promise<any>}
|
|
342
342
|
*/
|
|
343
|
-
export function
|
|
344
|
-
const ret = wasm.
|
|
343
|
+
export function parse(s, opts) {
|
|
344
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
345
345
|
return takeObject(ret);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
/**
|
|
349
|
-
* @param {string}
|
|
349
|
+
* @param {string} value
|
|
350
350
|
* @param {any} opts
|
|
351
351
|
* @returns {any}
|
|
352
352
|
*/
|
|
353
|
-
export function
|
|
353
|
+
export function mdxCompileSync(value, opts) {
|
|
354
354
|
try {
|
|
355
355
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
356
|
-
wasm.
|
|
356
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
357
357
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
358
358
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
359
359
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -367,12 +367,12 @@ export function parseSync(s, opts) {
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
|
-
* @param {string}
|
|
370
|
+
* @param {string} value
|
|
371
371
|
* @param {any} opts
|
|
372
372
|
* @returns {Promise<any>}
|
|
373
373
|
*/
|
|
374
|
-
export function
|
|
375
|
-
const ret = wasm.
|
|
374
|
+
export function mdxCompile(value, opts) {
|
|
375
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
376
376
|
return takeObject(ret);
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -623,17 +623,23 @@ imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
623
623
|
const ret = result;
|
|
624
624
|
return ret;
|
|
625
625
|
};
|
|
626
|
-
imports.wbg.
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
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
|
+
}
|
|
637
643
|
};
|
|
638
644
|
imports.wbg.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
639
645
|
const ret = getObject(arg0).next();
|
|
@@ -647,10 +653,26 @@ imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
|
647
653
|
const ret = getObject(arg0).value;
|
|
648
654
|
return addHeapObject(ret);
|
|
649
655
|
};
|
|
656
|
+
imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
657
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
658
|
+
return addHeapObject(ret);
|
|
659
|
+
};
|
|
660
|
+
imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
661
|
+
const ret = Object.entries(getObject(arg0));
|
|
662
|
+
return addHeapObject(ret);
|
|
663
|
+
};
|
|
664
|
+
imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
665
|
+
const ret = getObject(arg0).length;
|
|
666
|
+
return ret;
|
|
667
|
+
};
|
|
650
668
|
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
651
669
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
652
670
|
return ret;
|
|
653
671
|
};
|
|
672
|
+
imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
673
|
+
const ret = Array.isArray(getObject(arg0));
|
|
674
|
+
return ret;
|
|
675
|
+
};
|
|
654
676
|
imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
655
677
|
const ret = Number.isSafeInteger(getObject(arg0));
|
|
656
678
|
return ret;
|
|
@@ -677,10 +699,6 @@ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
|
677
699
|
const ret = BigInt.asUintN(64, arg0);
|
|
678
700
|
return addHeapObject(ret);
|
|
679
701
|
};
|
|
680
|
-
imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
681
|
-
const ret = Object.entries(getObject(arg0));
|
|
682
|
-
return addHeapObject(ret);
|
|
683
|
-
};
|
|
684
702
|
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
685
703
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
686
704
|
return addHeapObject(ret);
|
|
@@ -692,24 +710,6 @@ imports.wbg.__wbg_new_632630b5cec17f21 = function() {
|
|
|
692
710
|
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
693
711
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
694
712
|
};
|
|
695
|
-
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
696
|
-
try {
|
|
697
|
-
var state0 = {a: arg0, b: arg1};
|
|
698
|
-
var cb0 = (arg0, arg1) => {
|
|
699
|
-
const a = state0.a;
|
|
700
|
-
state0.a = 0;
|
|
701
|
-
try {
|
|
702
|
-
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
703
|
-
} finally {
|
|
704
|
-
state0.a = a;
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
const ret = new Promise(cb0);
|
|
708
|
-
return addHeapObject(ret);
|
|
709
|
-
} finally {
|
|
710
|
-
state0.a = state0.b = 0;
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
713
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
714
714
|
const ret = debugString(getObject(arg1));
|
|
715
715
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -744,7 +744,7 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
|
744
744
|
const ret = false;
|
|
745
745
|
return ret;
|
|
746
746
|
};
|
|
747
|
-
imports.wbg.
|
|
747
|
+
imports.wbg.__wbindgen_closure_wrapper24365 = function(arg0, arg1, arg2) {
|
|
748
748
|
const ret = makeMutClosure(arg0, arg1, 1811, __wbg_adapter_48);
|
|
749
749
|
return addHeapObject(ret);
|
|
750
750
|
};
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|