@swc/wasm-web 1.3.64 → 1.3.66

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.3.64",
7
+ "version": "1.3.66",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm-web.d.ts CHANGED
@@ -7,6 +7,42 @@
7
7
  */
8
8
  export function browserslist(query: string, opts: any): any;
9
9
 
10
+ export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
11
+ export function minifySync(code: string, opts?: JsMinifyOptions): Output;
12
+
13
+ export function parse(src: string, options: ParseOptions & {
14
+ isModule: false;
15
+ }): Promise<Script>;
16
+ export function parse(src: string, options?: ParseOptions): Promise<Module>;
17
+ export function parseSync(src: string, options: ParseOptions & {
18
+ isModule: false;
19
+ }): Script;
20
+ export function parseSync(src: string, options?: ParseOptions): Module;
21
+
22
+ export function print(m: Program, options?: Options): Promise<Output>;
23
+ export function printSync(m: Program, options?: Options): Output
24
+
25
+ /**
26
+ * Note: this interface currently does not do _actual_ async work, only provides
27
+ * a corresponding async interfaces to the `@swc/core`'s interface.
28
+ */
29
+ export function transform(
30
+ code: string | Program,
31
+ options?: Options,
32
+ experimental_plugin_bytes_resolver?: any
33
+ ): Promise<Output>;
34
+ /**
35
+ * @param {string} code
36
+ * @param {Options} opts
37
+ * @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
38
+ * specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
39
+ * interface, likely will change.
40
+ * @returns {Output}
41
+ */
42
+ export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
43
+
44
+
45
+
10
46
  export interface Plugin {
11
47
  (module: Program): Program;
12
48
  }
@@ -2810,42 +2846,6 @@ export interface Invalid extends Node, HasSpan {
2810
2846
 
2811
2847
 
2812
2848
 
2813
- export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
2814
- export function minifySync(code: string, opts?: JsMinifyOptions): Output;
2815
-
2816
- export function parse(src: string, options: ParseOptions & {
2817
- isModule: false;
2818
- }): Promise<Script>;
2819
- export function parse(src: string, options?: ParseOptions): Promise<Module>;
2820
- export function parseSync(src: string, options: ParseOptions & {
2821
- isModule: false;
2822
- }): Script;
2823
- export function parseSync(src: string, options?: ParseOptions): Module;
2824
-
2825
- export function print(m: Program, options?: Options): Promise<Output>;
2826
- export function printSync(m: Program, options?: Options): Output
2827
-
2828
- /**
2829
- * Note: this interface currently does not do _actual_ async work, only provides
2830
- * a corresponding async interfaces to the `@swc/core`'s interface.
2831
- */
2832
- export function transform(
2833
- code: string | Program,
2834
- options?: Options,
2835
- experimental_plugin_bytes_resolver?: any
2836
- ): Promise<Output>;
2837
- /**
2838
- * @param {string} code
2839
- * @param {Options} opts
2840
- * @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
2841
- * specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
2842
- * interface, likely will change.
2843
- * @returns {Output}
2844
- */
2845
- export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
2846
-
2847
-
2848
-
2849
2849
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2850
2850
 
2851
2851
  export interface InitOutput {
package/wasm-web.js CHANGED
@@ -550,14 +550,22 @@ function getImports() {
550
550
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
551
551
  return addHeapObject(ret);
552
552
  };
553
- imports.wbg.__wbindgen_is_null = function(arg0) {
554
- const ret = getObject(arg0) === null;
555
- return ret;
553
+ imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
554
+ const ret = Object.entries(getObject(arg0));
555
+ return addHeapObject(ret);
556
+ };
557
+ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
558
+ const ret = getObject(arg0)[getObject(arg1)];
559
+ return addHeapObject(ret);
556
560
  };
557
561
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
558
562
  const ret = getObject(arg0) === undefined;
559
563
  return ret;
560
564
  };
565
+ imports.wbg.__wbindgen_is_null = function(arg0) {
566
+ const ret = getObject(arg0) === null;
567
+ return ret;
568
+ };
561
569
  imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
562
570
  try {
563
571
  var state0 = {a: arg0, b: arg1};
@@ -576,14 +584,6 @@ function getImports() {
576
584
  state0.a = state0.b = 0;
577
585
  }
578
586
  };
579
- imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
580
- const ret = Object.entries(getObject(arg0));
581
- return addHeapObject(ret);
582
- };
583
- imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
584
- const ret = getObject(arg0)[getObject(arg1)];
585
- return addHeapObject(ret);
586
- };
587
587
  imports.wbg.__wbindgen_number_new = function(arg0) {
588
588
  const ret = arg0;
589
589
  return addHeapObject(ret);
@@ -734,7 +734,7 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
734
734
  const ret = false;
735
735
  return ret;
736
736
  };
737
- imports.wbg.__wbindgen_closure_wrapper14888 = function(arg0, arg1, arg2) {
737
+ imports.wbg.__wbindgen_closure_wrapper14850 = function(arg0, arg1, arg2) {
738
738
  const ret = makeMutClosure(arg0, arg1, 241, __wbg_adapter_50);
739
739
  return addHeapObject(ret);
740
740
  };
package/wasm-web_bg.wasm CHANGED
Binary file