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

estree-to-babel

Package Overview
Dependencies
Maintainers
0
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 9.0.0 to 9.1.0

5

lib/estree-to-babel.d.ts

@@ -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>;

7

lib/estree-to-babel.js

@@ -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

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