@next/swc-wasm-web 16.2.1-canary.4 → 16.2.1-canary.41

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.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/wasm.d.ts +55 -44
  3. package/wasm.js +588 -592
  4. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
3
  "type": "module",
4
- "version": "16.2.1-canary.4",
4
+ "version": "16.2.1-canary.41",
5
5
  "files": [
6
6
  "wasm_bg.wasm",
7
7
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,60 +1,71 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function minifySync(s: string, opts: any): any;
4
- export function minify(s: string, opts: any): Promise<any>;
5
- export function transformSync(s: any, opts: any): any;
6
- export function transform(s: any, opts: any): Promise<any>;
7
- export function parseSync(s: string, opts: any): any;
8
- export function parse(s: string, opts: any): Promise<any>;
9
- export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
3
+
10
4
  export function codeFrameColumns(source: Uint8Array, location: any, options: any): string;
11
- export function mdxCompileSync(value: string, opts: any): any;
5
+
6
+ export function expandNextJsTemplate(content: Uint8Array, template_path: string, next_package_dir_path: string, replacements: any, injections: any, imports: any): string;
7
+
12
8
  export function mdxCompile(value: string, opts: any): Promise<any>;
13
9
 
10
+ export function mdxCompileSync(value: string, opts: any): any;
11
+
12
+ export function minify(s: string, opts: any): Promise<any>;
13
+
14
+ export function minifySync(s: string, opts: any): any;
15
+
16
+ export function parse(s: string, opts: any): Promise<any>;
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;
23
+
14
24
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
15
25
 
16
26
  export interface InitOutput {
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
- readonly mdxCompile: (a: any, b: any) => any;
21
- readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
22
- readonly minify: (a: any, b: any) => any;
23
- readonly minifySync: (a: any, b: any) => [number, number, number];
24
- readonly parse: (a: any, b: any) => any;
25
- readonly parseSync: (a: any, b: any) => [number, number, number];
26
- readonly transform: (a: any, b: any) => any;
27
- readonly transformSync: (a: any, b: any) => [number, number, number];
28
- readonly __wbindgen_malloc: (a: number, b: number) => number;
29
- readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
30
- readonly __wbindgen_exn_store: (a: number) => void;
31
- readonly __externref_table_alloc: () => number;
32
- readonly __wbindgen_export_4: WebAssembly.Table;
33
- readonly __wbindgen_free: (a: number, b: number, c: number) => void;
34
- readonly __wbindgen_export_6: WebAssembly.Table;
35
- readonly __externref_table_dealloc: (a: number) => void;
36
- readonly closure4295_externref_shim: (a: number, b: number, c: any) => void;
37
- readonly closure400_externref_shim: (a: number, b: number, c: any, d: any) => void;
38
- readonly __wbindgen_start: () => void;
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>;