estree-to-babel
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16292
13
263
72