@swc/wasm-web 1.5.3 → 1.5.4

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.5.3",
7
+ "version": "1.5.4",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/wasm-web.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
  }
@@ -2840,6 +2804,42 @@ export interface Invalid extends Node, HasSpan {
2840
2804
 
2841
2805
 
2842
2806
 
2807
+ export function minify(src: string, opts?: JsMinifyOptions): Promise<Output>;
2808
+ export function minifySync(code: string, opts?: JsMinifyOptions): Output;
2809
+
2810
+ export function parse(src: string, options: ParseOptions & {
2811
+ isModule: false;
2812
+ }): Promise<Script>;
2813
+ export function parse(src: string, options?: ParseOptions): Promise<Module>;
2814
+ export function parseSync(src: string, options: ParseOptions & {
2815
+ isModule: false;
2816
+ }): Script;
2817
+ export function parseSync(src: string, options?: ParseOptions): Module;
2818
+
2819
+ export function print(m: Program, options?: Options): Promise<Output>;
2820
+ export function printSync(m: Program, options?: Options): Output
2821
+
2822
+ /**
2823
+ * Note: this interface currently does not do _actual_ async work, only provides
2824
+ * a corresponding async interfaces to the `@swc/core`'s interface.
2825
+ */
2826
+ export function transform(
2827
+ code: string | Program,
2828
+ options?: Options,
2829
+ experimental_plugin_bytes_resolver?: any
2830
+ ): Promise<Output>;
2831
+ /**
2832
+ * @param {string} code
2833
+ * @param {Options} opts
2834
+ * @param {Record<string, ArrayBuffer>} experimental_plugin_bytes_resolver An object contains bytes array for the plugin
2835
+ * specified in config. Key of record represents the name of the plugin specified in config. Note this is an experimental
2836
+ * interface, likely will change.
2837
+ * @returns {Output}
2838
+ */
2839
+ export function transformSync(code: string | Program, opts?: Options, experimental_plugin_bytes_resolver?: any): Output;
2840
+
2841
+
2842
+
2843
2843
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2844
2844
 
2845
2845
  export interface InitOutput {
package/wasm-web.js CHANGED
@@ -551,6 +551,10 @@ function __wbg_get_imports() {
551
551
  const ret = new Error(getStringFromWasm0(arg0, arg1));
552
552
  return addHeapObject(ret);
553
553
  };
554
+ imports.wbg.__wbindgen_is_null = function(arg0) {
555
+ const ret = getObject(arg0) === null;
556
+ return ret;
557
+ };
554
558
  imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
555
559
  try {
556
560
  var state0 = {a: arg0, b: arg1};
@@ -569,10 +573,6 @@ function __wbg_get_imports() {
569
573
  state0.a = state0.b = 0;
570
574
  }
571
575
  };
572
- imports.wbg.__wbindgen_is_null = function(arg0) {
573
- const ret = getObject(arg0) === null;
574
- return ret;
575
- };
576
576
  imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
577
577
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
578
578
  return addHeapObject(ret);
@@ -756,7 +756,7 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
756
756
  const ret = false;
757
757
  return ret;
758
758
  };
759
- imports.wbg.__wbindgen_closure_wrapper17795 = function(arg0, arg1, arg2) {
759
+ imports.wbg.__wbindgen_closure_wrapper17785 = function(arg0, arg1, arg2) {
760
760
  const ret = makeMutClosure(arg0, arg1, 280, __wbg_adapter_50);
761
761
  return addHeapObject(ret);
762
762
  };
package/wasm-web_bg.wasm CHANGED
Binary file