hermes-transform 0.26.0 → 0.28.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.
|
@@ -82,7 +82,7 @@ function mutateESTreeASTCommentsForPrettier(program, text) {
|
|
|
82
82
|
docblockComment.leading = true; // $FlowExpectedError[prop-missing]
|
|
83
83
|
|
|
84
84
|
docblockComment.trailing = false;
|
|
85
|
-
} // If we have a first node in the program body,
|
|
85
|
+
} // If we have a first node in the program body, attach the comment to that
|
|
86
86
|
// otherwise set it on the program.
|
|
87
87
|
|
|
88
88
|
|
|
@@ -77,7 +77,7 @@ export function mutateESTreeASTCommentsForPrettier(
|
|
|
77
77
|
docblockComment.trailing = false;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// If we have a first node in the program body,
|
|
80
|
+
// If we have a first node in the program body, attach the comment to that
|
|
81
81
|
// otherwise set it on the program.
|
|
82
82
|
if (program.body.length > 0) {
|
|
83
83
|
const firstStatement = program.body[0];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hermes-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "Tools built on top of Hermes-ESTree to enable codebase transformation",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"@babel/code-frame": "^7.16.0",
|
|
13
13
|
"esquery": "^1.4.0",
|
|
14
14
|
"flow-enums-runtime": "^0.0.6",
|
|
15
|
-
"hermes-eslint": "0.
|
|
16
|
-
"hermes-estree": "0.
|
|
17
|
-
"hermes-parser": "0.
|
|
15
|
+
"hermes-eslint": "0.28.0",
|
|
16
|
+
"hermes-estree": "0.28.0",
|
|
17
|
+
"hermes-parser": "0.28.0",
|
|
18
18
|
"string-width": "4.2.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"prettier": "^3.0.0 || ^2.7.1",
|
|
22
|
-
"prettier-plugin-hermes-parser": "0.
|
|
22
|
+
"prettier-plugin-hermes-parser": "0.28.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|