hermes-transform
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -46,3 +46,3 @@ /** | ||
}, visitors) { | ||
// traverse the AST and colllect the mutations | ||
// traverse the AST and collect the mutations | ||
const transformContext = (0, _TransformContext.getTransformContext)(); | ||
@@ -49,0 +49,0 @@ (0, _traverse.traverseWithContext)(code, ast, scopeManager, () => transformContext, visitors); // apply the mutations to the AST |
@@ -17,3 +17,3 @@ /** | ||
var _hermesEslint = require("hermes-eslint"); | ||
var _hermesParser = require("hermes-parser"); | ||
@@ -27,3 +27,3 @@ var esquery = _interopRequireWildcard(require("./esquery")); | ||
const ESQUERY_OPTIONS = Object.freeze({ | ||
visitorKeys: _hermesEslint.VisitorKeys, | ||
visitorKeys: _hermesParser.FlowVisitorKeys, | ||
fallback: node => { | ||
@@ -72,3 +72,3 @@ throw new Error(`No visitor keys found for node type "${node.type}".`); | ||
case 'identifier': | ||
if (!(parsedSelector.value in _hermesEslint.VisitorKeys)) { | ||
if (!(parsedSelector.value in _hermesParser.FlowVisitorKeys)) { | ||
throw new Error(`Unexpected selector ${parsedSelector.value}`); | ||
@@ -75,0 +75,0 @@ } // $FlowExpectedError[incompatible-return] |
{ | ||
"name": "hermes-transform", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"description": "Tools built on top of Hermes-ESTree to enable codebase transformation", | ||
@@ -15,5 +15,5 @@ "main": "dist/index.js", | ||
"flow-enums-runtime": "^0.0.6", | ||
"hermes-eslint": "0.10.0", | ||
"hermes-estree": "0.10.0", | ||
"hermes-parser": "0.10.0" | ||
"hermes-eslint": "0.10.1", | ||
"hermes-estree": "0.10.1", | ||
"hermes-parser": "0.10.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
638657
+ Addedhermes-eslint@0.10.1(transitive)
+ Addedhermes-estree@0.10.1(transitive)
+ Addedhermes-parser@0.10.1(transitive)
- Removedhermes-eslint@0.10.0(transitive)
- Removedhermes-estree@0.10.0(transitive)
- Removedhermes-parser@0.10.0(transitive)
Updatedhermes-eslint@0.10.1
Updatedhermes-estree@0.10.1
Updatedhermes-parser@0.10.1