Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hermes-parser

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hermes-parser - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

14

dist/HermesToESTreeAdapter.js

@@ -107,2 +107,5 @@ "use strict";

case 'Property':
return this.mapProperty(node);
default:

@@ -226,2 +229,13 @@ return this.mapNodeDefault(node);

mapProperty(nodeUnprocessed) {
const node = this.mapNodeDefault(nodeUnprocessed);
if (node.value.type === 'FunctionExpression') {
node.value.loc.start = node.key.loc.end;
node.value.range[0] = node.key.range[1];
}
return node;
}
mapComment(node) {

@@ -228,0 +242,0 @@ if (node.type === 'CommentBlock') {

6

package.json
{
"name": "hermes-parser",
"version": "0.6.0",
"version": "0.7.0",
"description": "A JavaScript parser built from the Hermes engine",

@@ -12,6 +12,6 @@ "main": "dist/index.js",

"dependencies": {
"hermes-estree": "0.6.0"
"hermes-estree": "0.7.0"
},
"devDependencies": {
"hermes-transform": "0.6.0"
"hermes-transform": "0.7.0"
},

@@ -18,0 +18,0 @@ "files": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc