@next/swc-wasm-web 15.4.0-canary.9 → 15.4.0
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 +3 -2
- package/wasm.d.ts +25 -60
- package/wasm.js +502 -542
- 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.4.0",
|
|
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/*"
|
package/wasm.d.ts
CHANGED
|
@@ -1,74 +1,39 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
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
|
-
* @param {string} s
|
|
17
|
-
* @param {any} opts
|
|
18
|
-
* @returns {any}
|
|
19
|
-
*/
|
|
20
3
|
export function minifySync(s: string, opts: any): any;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} s
|
|
23
|
-
* @param {any} opts
|
|
24
|
-
* @returns {Promise<any>}
|
|
25
|
-
*/
|
|
26
4
|
export function minify(s: string, opts: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* @param {any} s
|
|
29
|
-
* @param {any} opts
|
|
30
|
-
* @returns {any}
|
|
31
|
-
*/
|
|
32
5
|
export function transformSync(s: any, opts: any): any;
|
|
33
|
-
/**
|
|
34
|
-
* @param {any} s
|
|
35
|
-
* @param {any} opts
|
|
36
|
-
* @returns {Promise<any>}
|
|
37
|
-
*/
|
|
38
6
|
export function transform(s: any, opts: any): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} s
|
|
41
|
-
* @param {any} opts
|
|
42
|
-
* @returns {any}
|
|
43
|
-
*/
|
|
44
7
|
export function parseSync(s: string, opts: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} s
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {Promise<any>}
|
|
49
|
-
*/
|
|
50
8
|
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>;
|
|
51
11
|
|
|
52
12
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
53
13
|
|
|
54
14
|
export interface InitOutput {
|
|
55
15
|
readonly memory: WebAssembly.Memory;
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly minifySync: (a:
|
|
59
|
-
readonly minify: (a:
|
|
60
|
-
readonly transformSync: (a:
|
|
61
|
-
readonly transform: (a:
|
|
62
|
-
readonly parseSync: (a:
|
|
63
|
-
readonly parse: (a:
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
16
|
+
readonly napi_register_wasm_v1: (a: number, b: number) => number;
|
|
17
|
+
readonly napi_register_module_v1: (a: number, b: number) => number;
|
|
18
|
+
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
19
|
+
readonly minify: (a: any, b: any) => any;
|
|
20
|
+
readonly transformSync: (a: any, b: any) => [number, number, number];
|
|
21
|
+
readonly transform: (a: any, b: any) => any;
|
|
22
|
+
readonly parseSync: (a: any, b: any) => [number, number, number];
|
|
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
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
27
|
+
readonly __externref_table_alloc: () => number;
|
|
66
28
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
67
|
-
readonly _dyn_core_d740453d92c4907d___ops__function__FnMut_______Output______as_wasm_bindgen_b3e6b9209ca1af04___closure__WasmClosure___describe__invoke___wasm_bindgen_b3e6b9209ca1af04___JsValue_____: (a: number, b: number, c: number) => void;
|
|
68
29
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
30
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
31
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
33
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
34
|
+
readonly closure1082_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
|
+
readonly closure145_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
|
+
readonly __wbindgen_start: () => void;
|
|
72
37
|
}
|
|
73
38
|
|
|
74
39
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
@@ -76,18 +41,18 @@ export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
|
76
41
|
* Instantiates the given `module`, which can either be bytes or
|
|
77
42
|
* a precompiled `WebAssembly.Module`.
|
|
78
43
|
*
|
|
79
|
-
* @param {SyncInitInput} module
|
|
44
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
80
45
|
*
|
|
81
46
|
* @returns {InitOutput}
|
|
82
47
|
*/
|
|
83
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
|
48
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
84
49
|
|
|
85
50
|
/**
|
|
86
51
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
87
52
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
88
53
|
*
|
|
89
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
54
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
90
55
|
*
|
|
91
56
|
* @returns {Promise<InitOutput>}
|
|
92
57
|
*/
|
|
93
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
58
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|