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 2.1.0 to 3.0.0

12

lib/get-ast.js

@@ -5,3 +5,3 @@ 'use strict';

if (node.type === 'File')
return fixBabel(node);
return node;

@@ -27,11 +27,1 @@ const {

function fixBabel(node) {
return {
...node,
program: {
...node.program,
directives: [],
},
};
}

2

lib/set-class-method.js

@@ -29,3 +29,3 @@ 'use strict';

computed,
node.static
node.static,
));

@@ -32,0 +32,0 @@

@@ -33,3 +33,3 @@ 'use strict';

body,
node.static
node.static,
));

@@ -36,0 +36,0 @@

@@ -19,3 +19,3 @@ 'use strict';

if (isFunctionExpression(value)) {
propPath.replaceWith(ObjectMethod('method', key, value.params, value.body, computed),);
propPath.replaceWith(ObjectMethod('method', key, value.params, value.body, computed));

@@ -22,0 +22,0 @@ assign(propPath.node, {

{
"name": "estree-to-babel",
"version": "2.1.0",
"version": "3.0.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",

@@ -14,8 +14,8 @@ "description": "convert estree ast to babel",

"test": "madrun test",
"fixture": "UPDATE_FIXTURE=1 npm test",
"watch:test": "nodemon -w lib -w test -x \"npm test\"",
"watch:test": "madrun watch:test",
"lint": "madrun lint",
"fix:lint": "madrun fix:lint",
"coverage": "madrun coverage",
"report": "madrun report"
"report": "madrun report",
"fixture": "madrun fixture"
},

@@ -39,9 +39,9 @@ "dependencies": {

"eslint": "^6.0.1",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-putout": "^2.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-putout": "^3.2.1",
"espree": "^6.0.0",
"madrun": "^2.0.1",
"nodemon": "^1.14.12",
"nyc": "^14.1.1",
"putout": "^5.7.1",
"madrun": "^5.4.1",
"nodemon": "^2.0.2",
"nyc": "^15.0.0",
"putout": "^7.10.1",
"supertape": "^1.0.3"

@@ -48,0 +48,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