@next/swc-wasm-web 16.2.4 → 16.3.0-canary.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 +1 -1
- package/wasm.d.ts +54 -43
- package/wasm.js +587 -591
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,60 +1,71 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export function codeFrameColumns(source: Uint8Array, location: any, options: any): string;
|
|
5
|
+
|
|
6
|
+
export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
|
|
7
|
+
|
|
4
8
|
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
5
|
-
|
|
9
|
+
|
|
10
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
11
|
+
|
|
6
12
|
export function minify(s: string, opts: any): Promise<any>;
|
|
7
|
-
|
|
8
|
-
export function
|
|
9
|
-
|
|
13
|
+
|
|
14
|
+
export function minifySync(s: string, opts: any): any;
|
|
15
|
+
|
|
10
16
|
export function parse(s: string, opts: any): Promise<any>;
|
|
11
|
-
|
|
12
|
-
export function
|
|
17
|
+
|
|
18
|
+
export function parseSync(s: string, opts: any): any;
|
|
19
|
+
|
|
20
|
+
export function transform(s: any, opts: any): Promise<any>;
|
|
21
|
+
|
|
22
|
+
export function transformSync(s: any, opts: any): any;
|
|
13
23
|
|
|
14
24
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
15
25
|
|
|
16
26
|
export interface InitOutput {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
readonly memory: WebAssembly.Memory;
|
|
28
|
+
readonly codeFrameColumns: (a: number, b: number, c: any, d: any) => [number, number, number, number];
|
|
29
|
+
readonly expandNextJsTemplate: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: any, i: any) => [number, number, number, number];
|
|
30
|
+
readonly mdxCompile: (a: any, b: any) => any;
|
|
31
|
+
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
32
|
+
readonly minify: (a: any, b: any) => any;
|
|
33
|
+
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
34
|
+
readonly parse: (a: any, b: any) => any;
|
|
35
|
+
readonly parseSync: (a: any, b: any) => [number, number, number];
|
|
36
|
+
readonly transform: (a: any, b: any) => any;
|
|
37
|
+
readonly transformSync: (a: any, b: any) => [number, number, number];
|
|
38
|
+
readonly wasm_bindgen_235020ff9ac9cf73___closure__destroy___dyn_core_4b0d4602549cae5f___ops__function__FnMut__wasm_bindgen_235020ff9ac9cf73___JsValue____Output___core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___: (a: number, b: number) => void;
|
|
39
|
+
readonly wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___wasm_bindgen_235020ff9ac9cf73___JsValue__core_4b0d4602549cae5f___result__Result_____wasm_bindgen_235020ff9ac9cf73___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
40
|
+
readonly wasm_bindgen_235020ff9ac9cf73___convert__closures_____invoke___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined___js_sys_89f358efc19b5c75___Function_fn_wasm_bindgen_235020ff9ac9cf73___JsValue_____wasm_bindgen_235020ff9ac9cf73___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
41
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
42
|
+
readonly __wbindgen_malloc_command_export: (a: number, b: number) => number;
|
|
43
|
+
readonly __wbindgen_realloc_command_export: (a: number, b: number, c: number, d: number) => number;
|
|
44
|
+
readonly __wbindgen_exn_store_command_export: (a: number) => void;
|
|
45
|
+
readonly __externref_table_alloc_command_export: () => number;
|
|
46
|
+
readonly __wbindgen_free_command_export: (a: number, b: number, c: number) => void;
|
|
47
|
+
readonly __externref_table_dealloc_command_export: (a: number) => void;
|
|
48
|
+
readonly __wbindgen_start: () => void;
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
52
|
+
|
|
42
53
|
/**
|
|
43
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
44
|
-
* a precompiled `WebAssembly.Module`.
|
|
45
|
-
*
|
|
46
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
47
|
-
*
|
|
48
|
-
* @returns {InitOutput}
|
|
49
|
-
*/
|
|
54
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
55
|
+
* a precompiled `WebAssembly.Module`.
|
|
56
|
+
*
|
|
57
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
58
|
+
*
|
|
59
|
+
* @returns {InitOutput}
|
|
60
|
+
*/
|
|
50
61
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
51
62
|
|
|
52
63
|
/**
|
|
53
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
54
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
55
|
-
*
|
|
56
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
57
|
-
*
|
|
58
|
-
* @returns {Promise<InitOutput>}
|
|
59
|
-
*/
|
|
64
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
65
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
66
|
+
*
|
|
67
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
68
|
+
*
|
|
69
|
+
* @returns {Promise<InitOutput>}
|
|
70
|
+
*/
|
|
60
71
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|