@putout/operate
Advanced tools
Comparing version 6.7.0 to 6.8.0
@@ -16,2 +16,6 @@ 'use strict'; | ||
const {node} = path; | ||
if (isExtractable(path)) | ||
return [true, extract(node)]; | ||
const bindingPath = parseBindingPath(path); | ||
@@ -58,1 +62,14 @@ | ||
function isExtractable(path) { | ||
const computed = false; | ||
const {parentPath} = path; | ||
if (path.isLiteral()) | ||
return true; | ||
if (parentPath.isObjectProperty({computed})) | ||
return true; | ||
return false; | ||
} | ||
{ | ||
"name": "@putout/operate", | ||
"version": "6.7.0", | ||
"version": "6.8.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "operate on ast", |
11668
190