estree-to-babel
Advanced tools
Comparing version 9.0.0 to 9.1.0
@@ -1,6 +0,3 @@ | ||
import { | ||
ParseResult, | ||
types, | ||
} from '@putout/babel'; | ||
import {ParseResult, types} from '@putout/babel'; | ||
export default function toBabel(ast: types.Node, src?: string): ParseResult<types.File>; |
@@ -46,2 +46,5 @@ 'use strict'; | ||
if (type === 'JSXText') | ||
return setEsprimaRaw(node); | ||
if (type === 'BlockStatement' || type === 'Program') | ||
@@ -104,4 +107,4 @@ return setDirectives(path); | ||
// avoid additional traversing in @putout/engine-parser | ||
// add "raw" field, that exists in all ESTREE AST | ||
// but located in "extra.raw" in BABEL AST | ||
// add "raw" field, that exists in all ESTree AST | ||
// but located in "extra.raw" in Babel AST | ||
// which makes writing transforms more long and error prone | ||
@@ -108,0 +111,0 @@ function setEsprimaRaw(node) { |
{ | ||
"name": "estree-to-babel", | ||
"version": "9.0.0", | ||
"version": "9.1.0", | ||
"type": "commonjs", | ||
@@ -36,18 +36,16 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"devDependencies": { | ||
"@typescript-eslint/typescript-estree": "^6.7.0", | ||
"@typescript-eslint/typescript-estree": "^7.0.2", | ||
"acorn": "^8.0.1", | ||
"acorn-stage3": "^4.0.0", | ||
"c8": "^8.0.0", | ||
"check-dts": "^0.7.2", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^8.0.0", | ||
"eslint-plugin-n": "^16.0.0", | ||
"c8": "^10.1.2", | ||
"check-dts": "^0.8.0", | ||
"eslint": "^9.8.0", | ||
"eslint-plugin-putout": "^22.0.0", | ||
"espree": "^9.0.0", | ||
"espree": "^10.0.1", | ||
"estree-util-attach-comments": "^3.0.0", | ||
"madrun": "^10.0.0", | ||
"meriyah": "^4.3.7", | ||
"meriyah": "^5.0.0", | ||
"nodemon": "^3.0.1", | ||
"putout": "^34.0.6", | ||
"supertape": "^9.0.0", | ||
"putout": "^36.0.3", | ||
"supertape": "^10.1.0", | ||
"typescript": "^5.1.3" | ||
@@ -54,0 +52,0 @@ }, |
@@ -38,2 +38,3 @@ # Estree-to-babel [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL] | ||
- `ImportDeclaration` and `ExportNamedDeclaration` has `attributes`; | ||
- `JSXText` has `extra` field; | ||
- 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
25929
15
83
395