estree-to-babel
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -26,3 +26,3 @@ 'use strict'; | ||
if (type === 'Literal') | ||
return setLiteral(node); | ||
setLiteral(node); | ||
@@ -67,3 +67,8 @@ if (/Literal$/.test(type)) | ||
function setEsprimaRaw(node) { | ||
node.raw = node.raw || node.extra?.raw; | ||
const {raw} = node; | ||
node.raw = raw || node.extra?.raw; | ||
node.extra = node.extra || { | ||
raw, | ||
}; | ||
} |
{ | ||
"name": "estree-to-babel", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -41,3 +41,3 @@ "description": "convert estree ast to babel", | ||
"eslint-plugin-putout": "^8.0.1", | ||
"espree": "^7.2.0", | ||
"espree": "^8.0.0", | ||
"estree-util-attach-comments": "^2.0.0", | ||
@@ -44,0 +44,0 @@ "madrun": "^8.0.1", |
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
15663
246