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 1.5.0 to 1.6.0

33

lib/estree-to-babel.js

@@ -17,15 +17,4 @@ 'use strict';

module.exports = (node) => {
const {
comments = [],
tokens,
...program
} = node;
const ast = getAST(node);
const ast = {
type: 'File',
program,
comments,
tokens,
};
traverse(ast, {

@@ -80,1 +69,21 @@ noScope: true,

function getAST(node) {
if (node.type === 'File')
return node;
const {
comments = [],
tokens,
...program
} = node;
const ast = {
type: 'File',
program,
comments,
tokens,
};
return ast;
}
{
"name": "estree-to-babel",
"version": "1.5.0",
"version": "1.6.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -35,2 +35,3 @@ "description": "convert estree ast to babel",

"devDependencies": {
"@babel/parser": "^7.3.1",
"coveralls": "^3.0.0",

@@ -37,0 +38,0 @@ "eslint": "^5.6.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