@putout/compare
Advanced tools
Comparing version 14.3.0 to 14.3.1
@@ -87,2 +87,3 @@ 'use strict'; | ||
module.exports.isAnyStr = (a) => a === ANY; | ||
module.exports.isBodyStr = (a) => a === BODY; | ||
@@ -89,0 +90,0 @@ const isBody = (a) => isIdentifier(a, { |
@@ -18,2 +18,3 @@ 'use strict'; | ||
isInsideTypeReference, | ||
isBodyStr, | ||
} = require('./is'); | ||
@@ -111,2 +112,5 @@ | ||
if (isBodyStr(name)) | ||
way = way.replace(/\.body\.0$/, ''); | ||
result[name] = result[name] || extractExpression(jessy(way, node)); | ||
@@ -150,2 +154,5 @@ } | ||
if (isBodyStr(name)) | ||
way = way.replace(/\.body\.0$/, ''); | ||
const {extra} = jessy(way, node); | ||
@@ -152,0 +159,0 @@ const valueExtra = values[name].extra; |
{ | ||
"name": "@putout/compare", | ||
"version": "14.3.0", | ||
"version": "14.3.1", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
29035
723