@next/swc-wasm-web 16.2.1-canary.4 → 16.2.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 -3
- package/wasm.d.ts +6 -6
- package/wasm.js +27 -27
- 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": "16.2.1-canary.4",
|
|
3
|
+
"version": "16.2.1",
|
|
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,5 +1,7 @@
|
|
|
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;
|
|
@@ -8,17 +10,15 @@ export function parseSync(s: string, opts: any): any;
|
|
|
8
10
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
11
|
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
10
12
|
export function codeFrameColumns(source: Uint8Array, location: any, options: any): string;
|
|
11
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
12
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
13
13
|
|
|
14
14
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
15
15
|
|
|
16
16
|
export interface InitOutput {
|
|
17
17
|
readonly memory: WebAssembly.Memory;
|
|
18
|
-
readonly codeFrameColumns: (a: number, b: number, c: any, d: any) => [number, number, number, number];
|
|
19
|
-
readonly expandNextJsTemplate: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => [number, number, number, number];
|
|
20
18
|
readonly mdxCompile: (a: any, b: any) => any;
|
|
21
19
|
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
20
|
+
readonly codeFrameColumns: (a: number, b: number, c: any, d: any) => [number, number, number, number];
|
|
21
|
+
readonly expandNextJsTemplate: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => [number, number, number, number];
|
|
22
22
|
readonly minify: (a: any, b: any) => any;
|
|
23
23
|
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
24
24
|
readonly parse: (a: any, b: any) => any;
|
|
@@ -33,8 +33,8 @@ export interface InitOutput {
|
|
|
33
33
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
34
34
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
35
35
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
36
|
+
readonly closure5233_externref_shim: (a: number, b: number, c: any) => void;
|
|
37
|
+
readonly closure457_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
38
38
|
readonly __wbindgen_start: () => void;
|
|
39
39
|
}
|
|
40
40
|
|
package/wasm.js
CHANGED
|
@@ -218,6 +218,29 @@ function takeFromExternrefTable0(idx) {
|
|
|
218
218
|
wasm.__externref_table_dealloc(idx);
|
|
219
219
|
return value;
|
|
220
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
|
+
|
|
221
244
|
/**
|
|
222
245
|
* @param {string} s
|
|
223
246
|
* @param {any} opts
|
|
@@ -336,35 +359,12 @@ export function codeFrameColumns(source, location, options) {
|
|
|
336
359
|
return v2;
|
|
337
360
|
}
|
|
338
361
|
|
|
339
|
-
/**
|
|
340
|
-
* @param {string} value
|
|
341
|
-
* @param {any} opts
|
|
342
|
-
* @returns {any}
|
|
343
|
-
*/
|
|
344
|
-
export function mdxCompileSync(value, opts) {
|
|
345
|
-
const ret = wasm.mdxCompileSync(value, opts);
|
|
346
|
-
if (ret[2]) {
|
|
347
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
348
|
-
}
|
|
349
|
-
return takeFromExternrefTable0(ret[0]);
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* @param {string} value
|
|
354
|
-
* @param {any} opts
|
|
355
|
-
* @returns {Promise<any>}
|
|
356
|
-
*/
|
|
357
|
-
export function mdxCompile(value, opts) {
|
|
358
|
-
const ret = wasm.mdxCompile(value, opts);
|
|
359
|
-
return ret;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
362
|
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
363
|
-
wasm.
|
|
363
|
+
wasm.closure5233_externref_shim(arg0, arg1, arg2);
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
function __wbg_adapter_89(arg0, arg1, arg2, arg3) {
|
|
367
|
-
wasm.
|
|
367
|
+
wasm.closure457_externref_shim(arg0, arg1, arg2, arg3);
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
async function __wbg_load(module, imports) {
|
|
@@ -630,8 +630,8 @@ function __wbg_get_imports() {
|
|
|
630
630
|
const ret = false;
|
|
631
631
|
return ret;
|
|
632
632
|
};
|
|
633
|
-
imports.wbg.
|
|
634
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
633
|
+
imports.wbg.__wbindgen_closure_wrapper37407 = function(arg0, arg1, arg2) {
|
|
634
|
+
const ret = makeMutClosure(arg0, arg1, 5234, __wbg_adapter_50);
|
|
635
635
|
return ret;
|
|
636
636
|
};
|
|
637
637
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|