estree-to-babel
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -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: [], | ||
}, | ||
}; | ||
} | ||
@@ -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
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
12468
203