flow-api-translator 0.32.0 → 0.32.1

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/dist/flowToJS.js CHANGED
@@ -35,5 +35,5 @@ function stripAtFlow(ast, _options) {
35
35
  }
36
36
 
37
37
  function flowToJS(sourceAST, _code, _scopeManager) {
38
- return [_hermesParser.Transforms.stripComponentSyntax, _hermesParser.Transforms.stripFlowTypes, stripAtFlow].reduce((ast, transform) => transform(ast, {}), sourceAST);
38
+ return [_hermesParser.Transforms.transformComponentSyntax, _hermesParser.Transforms.stripFlowTypes, stripAtFlow].reduce((ast, transform) => transform(ast, {}), sourceAST);
39
39
  }
@@ -37,7 +37,7 @@ export function flowToJS(
37
37
  _scopeManager: ScopeManager,
38
38
  ): Program {
39
39
  return [
40
- Transforms.stripComponentSyntax,
40
+ Transforms.transformComponentSyntax,
41
41
  Transforms.stripFlowTypes,
42
42
  stripAtFlow,
43
43
  ].reduce((ast, transform) => transform(ast, {}), sourceAST);
@@ -35,5 +35,5 @@ function stripAtFlow(ast, _options) {
35
35
  }
36
36
 
37
37
  function flowToJS(sourceAST, _code, _scopeManager) {
38
- return [_hermesParser.Transforms.stripComponentSyntax, _hermesParser.Transforms.stripFlowTypes, stripAtFlow].reduce((ast, transform) => transform(ast, {}), sourceAST);
38
+ return [_hermesParser.Transforms.transformComponentSyntax, _hermesParser.Transforms.stripFlowTypes, stripAtFlow].reduce((ast, transform) => transform(ast, {}), sourceAST);
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-api-translator",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "Toolkit for creating Flow and TypeScript compatible libraries from Flow source code.",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "@typescript-eslint/parser": "8.38.0",
14
14
  "@typescript-eslint/visitor-keys": "8.38.0",
15
15
  "flow-enums-runtime": "^0.0.6",
16
- "hermes-eslint": "0.32.0",
17
- "hermes-estree": "0.32.0",
18
- "hermes-parser": "0.32.0",
19
- "hermes-transform": "0.32.0",
16
+ "hermes-eslint": "0.32.1",
17
+ "hermes-estree": "0.32.1",
18
+ "hermes-parser": "0.32.1",
19
+ "hermes-transform": "0.32.1",
20
20
  "typescript": "5.3.2"
21
21
  },
22
22
  "peerDependencies": {