@swc/wasm-web 1.15.47 → 1.16.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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "강동윤 <kdy1997.dev@gmail.com>"
6
6
  ],
7
7
  "description": "wasm module for swc",
8
- "version": "1.15.47",
8
+ "version": "1.16.0",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
package/wasm.d.ts CHANGED
@@ -1432,7 +1432,7 @@ export interface Constructor extends Node, HasSpan {
1432
1432
 
1433
1433
  params: (TsParameterProperty | Param)[];
1434
1434
 
1435
- body?: BlockStatement;
1435
+ body?: FunctionBody;
1436
1436
 
1437
1437
  accessibility?: Accessibility;
1438
1438
 
@@ -1745,7 +1745,7 @@ export interface ArrowFunctionExpression extends ExpressionBase {
1745
1745
 
1746
1746
  params: Pattern[];
1747
1747
 
1748
- body: BlockStatement | Expression;
1748
+ body: FunctionBody | Expression;
1749
1749
 
1750
1750
  async: boolean;
1751
1751
 
@@ -1809,9 +1809,11 @@ export interface ParenthesisExpression extends ExpressionBase {
1809
1809
  }
1810
1810
 
1811
1811
  export interface Fn extends HasSpan, HasDecorator {
1812
+ thisParam?: TsThisParameter;
1813
+
1812
1814
  params: Param[];
1813
1815
 
1814
- body?: BlockStatement;
1816
+ body?: FunctionBody;
1815
1817
 
1816
1818
  generator: boolean;
1817
1819
 
@@ -2320,16 +2322,13 @@ export interface AssignmentProperty extends Node {
2320
2322
  export interface GetterProperty extends PropBase, HasSpan {
2321
2323
  type: "GetterProperty";
2322
2324
 
2323
- typeAnnotation?: TsTypeAnnotation;
2324
-
2325
- body?: BlockStatement;
2325
+ function: Fn;
2326
2326
  }
2327
2327
 
2328
2328
  export interface SetterProperty extends PropBase, HasSpan {
2329
2329
  type: "SetterProperty";
2330
2330
 
2331
- param: Pattern;
2332
- body?: BlockStatement;
2331
+ function: Fn;
2333
2332
  }
2334
2333
 
2335
2334
  export interface MethodProperty extends PropBase, Fn {
@@ -2354,6 +2353,12 @@ export interface BlockStatement extends Node, HasSpan {
2354
2353
  stmts: Statement[];
2355
2354
  }
2356
2355
 
2356
+ export interface FunctionBody extends Node, HasSpan {
2357
+ type: "FunctionBody";
2358
+
2359
+ stmts: Statement[];
2360
+ }
2361
+
2357
2362
  export interface ExpressionStatement extends Node, HasSpan {
2358
2363
  type: "ExpressionStatement";
2359
2364
  expression: Expression;
@@ -2688,6 +2693,14 @@ export interface TsThisType extends Node, HasSpan {
2688
2693
  type: "TsThisType";
2689
2694
  }
2690
2695
 
2696
+ export interface TsThisParameter extends Node, HasSpan {
2697
+ type: "TsThisParameter";
2698
+
2699
+ thisSpan: Span;
2700
+
2701
+ typeAnnotation?: TsTypeAnnotation;
2702
+ }
2703
+
2691
2704
  export type TsFnParameter =
2692
2705
  | BindingIdentifier
2693
2706
  | ArrayPattern
package/wasm.js CHANGED
@@ -635,8 +635,8 @@ function __wbg_get_imports() {
635
635
  const ret = false;
636
636
  return ret;
637
637
  };
638
- imports.wbg.__wbindgen_closure_wrapper16060 = function(arg0, arg1, arg2) {
639
- const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_52);
638
+ imports.wbg.__wbindgen_closure_wrapper16161 = function(arg0, arg1, arg2) {
639
+ const ret = makeMutClosure(arg0, arg1, 666, __wbg_adapter_52);
640
640
  return addHeapObject(ret);
641
641
  };
642
642
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
package/wasm_bg.wasm CHANGED
Binary file