estree-to-babel
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -12,2 +12,5 @@ 'use strict'; | ||
const setClassPrivateMethod = require('./set-class-private-method'); | ||
const setClassPrivateProperty = require('./set-class-private-property'); | ||
const setClassPrivateName = require('./set-class-private-name'); | ||
const setLiteral = require('./set-literal'); | ||
@@ -36,2 +39,8 @@ const getAST = require('./get-ast'); | ||
return setClassPrivateMethod(path); | ||
if (type === 'FieldDefinition') | ||
return setClassPrivateProperty(path); | ||
if (type === 'PrivateName') | ||
return setClassPrivateName(path); | ||
}, | ||
@@ -38,0 +47,0 @@ exit(path) { |
{ | ||
"name": "estree-to-babel", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -34,6 +34,8 @@ "description": "convert estree ast to babel", | ||
"@babel/parser": "^7.3.1", | ||
"acorn": "^7.0.0", | ||
"acorn-stage3": "^2.0.0", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^6.0.1", | ||
"eslint-plugin-node": "^9.1.0", | ||
"eslint-plugin-putout": "^1.9.1", | ||
"eslint-plugin-putout": "^2.0.0", | ||
"espree": "^6.0.0", | ||
@@ -43,3 +45,3 @@ "madrun": "^2.0.1", | ||
"nyc": "^14.1.1", | ||
"putout": "^4.0.1", | ||
"putout": "^5.7.1", | ||
"supertape": "^1.0.3" | ||
@@ -46,0 +48,0 @@ }, |
@@ -34,3 +34,4 @@ # Estree-to-babel [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
- `ClassPrivateMethod` | ||
- Convert `use strict` Literal into `Directive` and put it into `program.body.directives` | ||
- `ClassPrivateName` stores name as `Identifier` in `id` field; | ||
- `ClassPrivateProperty` instead of `FieldDefinition`; | ||
- etc... | ||
@@ -37,0 +38,0 @@ |
Sorry, the diff of this file is not supported yet
12263
12
212
70
13