@putout/bundle 3.18.0 → 3.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle/putout.js CHANGED
@@ -11483,7 +11483,7 @@ __export(lib_exports, {
11483
11483
  return isTSLiteralType;
11484
11484
  },
11485
11485
  isTSMappedType: function() {
11486
- return isTSMappedType$1;
11486
+ return isTSMappedType;
11487
11487
  },
11488
11488
  isTSMethodSignature: function() {
11489
11489
  return isTSMethodSignature;
@@ -14969,7 +14969,7 @@ function isTSIndexedAccessType(node, opts) {
14969
14969
  if (node.type !== "TSIndexedAccessType") return false;
14970
14970
  return opts == null || shallowEqual(node, opts);
14971
14971
  }
14972
- function isTSMappedType$1(node, opts) {
14972
+ function isTSMappedType(node, opts) {
14973
14973
  if (!node) return false;
14974
14974
  if (node.type !== "TSMappedType") return false;
14975
14975
  return opts == null || shallowEqual(node, opts);
@@ -114808,7 +114808,6 @@ const {
114808
114808
  isImportDefaultSpecifier: isImportDefaultSpecifier$1,
114809
114809
  isExportSpecifier: isExportSpecifier$1,
114810
114810
  isRegExpLiteral: isRegExpLiteral$1,
114811
- isTSMappedType,
114812
114811
  isJSXText: isJSXText$3,
114813
114812
  isJSXIdentifier: isJSXIdentifier$1,
114814
114813
  isJSXAttribute: isJSXAttribute$1,
@@ -115135,10 +115134,7 @@ is$6.isLinkedNode = (a) => {
115135
115134
  if (isTemplateElement$5(a) && LINKED_NODE$1.test(a.value.raw))
115136
115135
  return true;
115137
115136
 
115138
- if (isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name))
115139
- return true;
115140
-
115141
- return isTSMappedType(a) && LINKED_NODE$1.test(a.key.name);
115137
+ return isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name);
115142
115138
  };
115143
115139
 
115144
115140
  is$6.parseTemplate = (tmpl, {program} = {}) => {
@@ -115401,6 +115397,8 @@ const parseName$1 = (node) => {
115401
115397
 
115402
115398
  if (isTSTypeReference$2(node))
115403
115399
  return node.typeName.name;
115400
+ // if (isTSMappedType(node))
115401
+ // return node.key.name;
115404
115402
  };
115405
115403
 
115406
115404
  var link$3 = ({add, value, nodeValue, templateStore}) => {
@@ -115414,6 +115412,9 @@ var link$3 = ({add, value, nodeValue, templateStore}) => {
115414
115412
  return true;
115415
115413
  }
115416
115414
 
115415
+ if (isIdentifier$a(templateStore[name]) && isTSTypeReference$2(nodeValue))
115416
+ return true;
115417
+
115417
115418
  add(templateStore[name], nodeValue);
115418
115419
 
115419
115420
  return true;
@@ -115534,7 +115535,7 @@ function compareTemplateElements$1(node, template) {
115534
115535
  }
115535
115536
 
115536
115537
  function linkNodes$1(node, template, {add, templateStore}) {
115537
- if (node && isLinkedNode$3(template) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template))
115538
+ if (node && isLinkedNode$3(template, node) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template))
115538
115539
  return link$2({
115539
115540
  add,
115540
115541
  value: template,