@swc/wasm 1.11.7 → 1.11.8

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "강동윤 <kdy1997.dev@gmail.com>"
5
5
  ],
6
6
  "description": "wasm module for swc",
7
- "version": "1.11.7",
7
+ "version": "1.11.8",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm.d.ts CHANGED
@@ -1,42 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
- export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
5
- export function minifySync(code: string, opts?: JsMinifyOptions): Output;
6
-
7
- export function parse(src: string, options: ParseOptions & {
8
- isModule: false;
9
- }): Promise<Script>;
10
- export function parse(src: string, options?: ParseOptions): Promise<Module>;
11
- export function parseSync(src: string, options: ParseOptions & {
12
- isModule: false;
13
- }): Script;
14
- export function parseSync(src: string, options?: ParseOptions): Module;
15
-
16
- export function print(m: Program, options?: Options): Promise<Output>;
17
- export function printSync(m: Program, options?: Options): Output
18
-
19
- /**
20
- * Note: this interface currently does not do _actual_ async work, only provides
21
- * a corresponding async interfaces to the `@swc/core`'s interface.
22
- */
23
- export function transform(
24
- code: string | Program,
25
- options?: Options,
26
- experimental_plugin_bytes_resolver?: any
27
- ): Promise<Output>;
28
- /**
29
- * @param {string} code
30
- * @param {Options} opts
31
- * @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
32
- * specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
33
- * interface, likely will change.
34
- * @returns {Output}
35
- */
36
- export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
37
-
38
-
39
-
40
4
  export interface Plugin {
41
5
  (module: Program): Program;
42
6
  }
@@ -2830,3 +2794,39 @@ export interface Invalid extends Node, HasSpan {
2830
2794
  }
2831
2795
 
2832
2796
 
2797
+
2798
+ export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
2799
+ export function minifySync(code: string, opts?: JsMinifyOptions): Output;
2800
+
2801
+ export function parse(src: string, options: ParseOptions & {
2802
+ isModule: false;
2803
+ }): Promise<Script>;
2804
+ export function parse(src: string, options?: ParseOptions): Promise<Module>;
2805
+ export function parseSync(src: string, options: ParseOptions & {
2806
+ isModule: false;
2807
+ }): Script;
2808
+ export function parseSync(src: string, options?: ParseOptions): Module;
2809
+
2810
+ export function print(m: Program, options?: Options): Promise<Output>;
2811
+ export function printSync(m: Program, options?: Options): Output
2812
+
2813
+ /**
2814
+ * Note: this interface currently does not do _actual_ async work, only provides
2815
+ * a corresponding async interfaces to the `@swc/core`'s interface.
2816
+ */
2817
+ export function transform(
2818
+ code: string | Program,
2819
+ options?: Options,
2820
+ experimental_plugin_bytes_resolver?: any
2821
+ ): Promise<Output>;
2822
+ /**
2823
+ * @param {string} code
2824
+ * @param {Options} opts
2825
+ * @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
2826
+ * specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
2827
+ * interface, likely will change.
2828
+ * @returns {Output}
2829
+ */
2830
+ export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
2831
+
2832
+
package/wasm.js CHANGED
@@ -685,8 +685,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
685
685
  return ret;
686
686
  };
687
687
 
688
- module.exports.__wbindgen_closure_wrapper15521 = function(arg0, arg1, arg2) {
689
- const ret = makeMutClosure(arg0, arg1, 1026, __wbg_adapter_50);
688
+ module.exports.__wbindgen_closure_wrapper15497 = function(arg0, arg1, arg2) {
689
+ const ret = makeMutClosure(arg0, arg1, 1025, __wbg_adapter_50);
690
690
  return addHeapObject(ret);
691
691
  };
692
692
 
package/wasm_bg.wasm CHANGED
Binary file