@putout/compare
Advanced tools
Comparing version 15.0.1 to 15.0.2
@@ -118,3 +118,3 @@ 'use strict'; | ||
function linkNodes(node, template, {add, templateStore}) { | ||
if (node && isLinkedNode(template) || isLinkedArgs(template) || isLinkedId(node, template) || isLinkedBool(node, template)) | ||
if (node && isLinkedNode(template, node) || isLinkedArgs(template) || isLinkedId(node, template) || isLinkedBool(node, template)) | ||
return link({ | ||
@@ -121,0 +121,0 @@ add, |
@@ -15,3 +15,2 @@ 'use strict'; | ||
isRegExpLiteral, | ||
isTSMappedType, | ||
isJSXText, | ||
@@ -343,6 +342,3 @@ isJSXIdentifier, | ||
if (isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name)) | ||
return true; | ||
return isTSMappedType(a) && LINKED_NODE.test(a.key.name); | ||
return isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name); | ||
}; | ||
@@ -349,0 +345,0 @@ |
@@ -27,2 +27,4 @@ 'use strict'; | ||
return node.typeName.name; | ||
// if (isTSMappedType(node)) | ||
// return node.key.name; | ||
}; | ||
@@ -41,2 +43,5 @@ | ||
if (isIdentifier(templateStore[name]) && isTSTypeReference(nodeValue)) | ||
return true; | ||
add(templateStore[name], nodeValue); | ||
@@ -43,0 +48,0 @@ |
{ | ||
"name": "@putout/compare", | ||
"version": "15.0.1", | ||
"version": "15.0.2", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
30184
750