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

estree-to-babel

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

estree-to-babel - npm Package Compare versions

Comparing version 4.0.2 to 4.1.0

lib/convert-import-to-call.js

9

lib/estree-to-babel.js

@@ -10,2 +10,3 @@ 'use strict';

const setClassPrivateName = require('./set-class-private-name');
const convertImportToCall = require('./convert-import-to-call');

@@ -26,7 +27,6 @@ const {convertNodeComments} = require('./comments');

if (type === 'Literal')
if (/Literal$/.test(type)) {
setLiteral(node);
if (/Literal$/.test(type))
return setEsprimaRaw(node);
}

@@ -44,2 +44,5 @@ if (type === 'Property')

return setClassPrivateName(path);
if (type === 'ImportExpression')
return convertImportToCall(path);
},

@@ -46,0 +49,0 @@ exit(path) {

{
"name": "estree-to-babel",
"version": "4.0.2",
"version": "4.1.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -5,0 +5,0 @@ "description": "convert estree ast to babel",

@@ -38,2 +38,3 @@ # Estree-to-babel [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

- `ClassPrivateProperty` instead of `FieldDefinition`;
- `CallExpression` instead of `ImportExpression`;
- etc...

@@ -40,0 +41,0 @@

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