hermes-transform 0.21.0 → 0.22.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/dist/generated/special-case-node-types/DeclareExportDeclaration.js +3 -0
- package/dist/generated/special-case-node-types/DeclareExportDeclaration.js.flow +3 -0
- package/dist/generated/special-case-node-types/ExportNamedDeclaration.js +1 -0
- package/dist/generated/special-case-node-types/ExportNamedDeclaration.js.flow +1 -0
- package/package.json +5 -5
|
@@ -21,6 +21,7 @@ var _detachedNode = require("../../detachedNode");
|
|
|
21
21
|
function DeclareExportDefaultDeclaration(props) {
|
|
22
22
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
23
23
|
type: 'DeclareExportDeclaration',
|
|
24
|
+
// $FlowFixMe[incompatible-call]
|
|
24
25
|
declaration: (0, _detachedNode.asDetachedNode)(props.declaration),
|
|
25
26
|
specifiers: [],
|
|
26
27
|
source: null,
|
|
@@ -33,6 +34,7 @@ function DeclareExportDefaultDeclaration(props) {
|
|
|
33
34
|
function DeclareExportDeclarationNamedWithDeclaration(props) {
|
|
34
35
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
35
36
|
type: 'DeclareExportDeclaration',
|
|
37
|
+
// $FlowFixMe[incompatible-call]
|
|
36
38
|
declaration: (0, _detachedNode.asDetachedNode)(props.declaration),
|
|
37
39
|
specifiers: [],
|
|
38
40
|
source: null,
|
|
@@ -47,6 +49,7 @@ function DeclareExportDeclarationNamedWithSpecifiers(props) {
|
|
|
47
49
|
type: 'DeclareExportDeclaration',
|
|
48
50
|
declaration: null,
|
|
49
51
|
specifiers: props.specifiers.map(n => (0, _detachedNode.asDetachedNode)(n)),
|
|
52
|
+
// $FlowFixMe[incompatible-call]
|
|
50
53
|
source: (0, _detachedNode.asDetachedNode)(props.source),
|
|
51
54
|
default: false
|
|
52
55
|
});
|
|
@@ -35,6 +35,7 @@ export function DeclareExportDefaultDeclaration(props: {
|
|
|
35
35
|
props.parent,
|
|
36
36
|
{
|
|
37
37
|
type: 'DeclareExportDeclaration',
|
|
38
|
+
// $FlowFixMe[incompatible-call]
|
|
38
39
|
declaration: asDetachedNode(props.declaration),
|
|
39
40
|
specifiers: [],
|
|
40
41
|
source: null,
|
|
@@ -58,6 +59,7 @@ export function DeclareExportDeclarationNamedWithDeclaration(props: {
|
|
|
58
59
|
props.parent,
|
|
59
60
|
{
|
|
60
61
|
type: 'DeclareExportDeclaration',
|
|
62
|
+
// $FlowFixMe[incompatible-call]
|
|
61
63
|
declaration: asDetachedNode(props.declaration),
|
|
62
64
|
specifiers: [],
|
|
63
65
|
source: null,
|
|
@@ -88,6 +90,7 @@ export function DeclareExportDeclarationNamedWithSpecifiers(props: {
|
|
|
88
90
|
type: 'DeclareExportDeclaration',
|
|
89
91
|
declaration: null,
|
|
90
92
|
specifiers: props.specifiers.map(n => asDetachedNode(n)),
|
|
93
|
+
// $FlowFixMe[incompatible-call]
|
|
91
94
|
source: asDetachedNode(props.source),
|
|
92
95
|
default: false,
|
|
93
96
|
},
|
|
@@ -20,6 +20,7 @@ var _detachedNode = require("../../detachedNode");
|
|
|
20
20
|
function ExportNamedDeclarationWithDeclaration(props) {
|
|
21
21
|
const node = (0, _detachedNode.detachedProps)(props.parent, {
|
|
22
22
|
type: 'ExportNamedDeclaration',
|
|
23
|
+
// $FlowFixMe[incompatible-call]
|
|
23
24
|
declaration: (0, _detachedNode.asDetachedNode)(props.declaration),
|
|
24
25
|
specifiers: [],
|
|
25
26
|
source: null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hermes-transform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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.22.0",
|
|
16
|
+
"hermes-estree": "0.22.0",
|
|
17
|
+
"hermes-parser": "0.22.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.22.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|