Socket
Socket
Sign inDemoInstall

hermes-transform

Package Overview
Dependencies
6
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.0 to 0.10.1

2

dist/transform/transformAST.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc