flow-api-translator 0.36.1 → 0.327.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.
Files changed (37) hide show
  1. package/dist/TSDefToFlowDef.js +66 -327
  2. package/dist/TSDefToFlowDef.js.flow +70 -35
  3. package/dist/flowDefToTSDef.js +134 -825
  4. package/dist/flowDefToTSDef.js.flow +196 -100
  5. package/dist/flowImportTo.js +5 -25
  6. package/dist/flowImportTo.js.flow +4 -4
  7. package/dist/flowToFlowDef.js +190 -379
  8. package/dist/flowToFlowDef.js.flow +109 -27
  9. package/dist/flowToJS.js +3 -19
  10. package/dist/flowToJS.js.flow +5 -5
  11. package/dist/index.js +12 -50
  12. package/dist/index.js.flow +1 -1
  13. package/dist/src/TSDefToFlowDef.js +66 -327
  14. package/dist/src/flowDefToTSDef.js +134 -825
  15. package/dist/src/flowImportTo.js +5 -25
  16. package/dist/src/flowToFlowDef.js +190 -379
  17. package/dist/src/flowToJS.js +3 -19
  18. package/dist/src/index.js +12 -50
  19. package/dist/src/utils/DocblockUtils.js +4 -14
  20. package/dist/src/utils/ErrorUtils.js +4 -40
  21. package/dist/src/utils/FlowAnalyze.js +8 -28
  22. package/dist/src/utils/TSNodeUtils.js +83 -0
  23. package/dist/src/utils/TranslationUtils.js +0 -13
  24. package/dist/src/utils/ts-estree-ast-types.js +0 -29
  25. package/dist/utils/DocblockUtils.js +4 -14
  26. package/dist/utils/DocblockUtils.js.flow +1 -1
  27. package/dist/utils/ErrorUtils.js +4 -40
  28. package/dist/utils/ErrorUtils.js.flow +6 -6
  29. package/dist/utils/FlowAnalyze.js +8 -28
  30. package/dist/utils/FlowAnalyze.js.flow +9 -4
  31. package/dist/utils/TSNodeUtils.js +83 -0
  32. package/dist/utils/TSNodeUtils.js.flow +108 -0
  33. package/dist/utils/TranslationUtils.js +0 -13
  34. package/dist/utils/TranslationUtils.js.flow +2 -2
  35. package/dist/utils/ts-estree-ast-types.js +0 -29
  36. package/dist/utils/ts-estree-ast-types.js.flow +697 -740
  37. package/package.json +10 -9
package/package.json CHANGED
@@ -1,30 +1,31 @@
1
1
  {
2
2
  "name": "flow-api-translator",
3
- "version": "0.36.1",
3
+ "version": "0.327.0",
4
4
  "description": "Toolkit for creating Flow and TypeScript compatible libraries from Flow source code.",
5
- "main": "dist/index.js",
5
+ "homepage": "https://flow.org",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git@github.com:facebook/hermes.git"
9
+ "url": "https://github.com/facebook/flow.git"
10
10
  },
11
+ "main": "dist/index.js",
11
12
  "dependencies": {
12
13
  "@babel/code-frame": "^7.16.0",
13
14
  "@typescript-eslint/parser": "8.38.0",
14
15
  "@typescript-eslint/visitor-keys": "8.38.0",
15
16
  "flow-enums-runtime": "^0.0.6",
16
- "hermes-eslint": "0.36.1",
17
- "hermes-estree": "0.36.1",
18
- "hermes-parser": "0.36.1",
19
- "hermes-transform": "0.36.1",
17
+ "flow-eslint": "0.327.0",
18
+ "flow-estree": "0.327.0",
19
+ "flow-parser": "0.327.0",
20
+ "flow-transform": "0.327.0",
20
21
  "typescript": "5.3.2"
21
22
  },
22
23
  "peerDependencies": {
23
- "prettier": "^3.0.0 || ^2.7.1"
24
+ "prettier": "^3.0.0"
24
25
  },
25
26
  "files": [
26
27
  "dist",
27
- "LICENCE",
28
+ "LICENSE",
28
29
  "README.md"
29
30
  ]
30
31
  }