@putout/operate
Advanced tools
Comparing version 6.10.0 to 6.11.0
'use strict'; | ||
const tryCatch = require('try-catch'); | ||
const {isObjectExpression} = require('@babel/types'); | ||
@@ -56,4 +58,11 @@ | ||
if (keyValue === keyPropertyValue) | ||
return [COMPUTED, extract(property.value)]; | ||
if (keyValue !== keyPropertyValue) | ||
continue; | ||
const [error, value] = tryCatch(extract, property.value); | ||
if (error) | ||
break; | ||
return [COMPUTED, value]; | ||
} | ||
@@ -60,0 +69,0 @@ |
{ | ||
"name": "@putout/operate", | ||
"version": "6.10.0", | ||
"version": "6.11.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -26,3 +26,4 @@ "description": "operate on ast", | ||
"dependencies": { | ||
"@babel/types": "^7.12.6" | ||
"@babel/types": "^7.12.6", | ||
"try-catch": "^3.0.0" | ||
}, | ||
@@ -47,4 +48,3 @@ "keywords": [ | ||
"putout": "*", | ||
"supertape": "^6.0.0", | ||
"try-catch": "^3.0.0" | ||
"supertape": "^6.0.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "license": "MIT", |
13222
12
229
2
+ Addedtry-catch@^3.0.0
+ Addedtry-catch@3.0.1(transitive)