Socket
Socket
Sign inDemoInstall

hermes-parser

Package Overview
Dependencies
Maintainers
3
Versions
41
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.4.7 to 0.4.8

19

dist/HermesToBabelAdapter.js

@@ -137,2 +137,6 @@ /**

case 'IndexedAccessType':
case 'OptionalIndexedAccessType':
return this.mapUnsupportedTypeAnnotation(node);
default:

@@ -422,2 +426,17 @@ return this.mapNodeDefault(node);

}
/**
* If Babel (the version we target) does not support a type annotation we
* parse, we need to return some other valid type annotation in its place.
*/
}, {
key: "mapUnsupportedTypeAnnotation",
value: function mapUnsupportedTypeAnnotation(node) {
return {
type: 'AnyTypeAnnotation',
loc: node.loc,
start: node.start,
end: node.end
};
}
}]);

@@ -424,0 +443,0 @@

2

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

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