Skip to content

Commit

Permalink
chore: @putout/bundle: v3.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Oct 27, 2024
1 parent ab0f80a commit 7d24d5f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2024.10.27, v3.18.1

feature:
- ab0f80a keywords

2024.10.26, v3.18.0

feature:
Expand Down
17 changes: 9 additions & 8 deletions bundle/putout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11483,7 +11483,7 @@ __export(lib_exports, {
return isTSLiteralType;
},
isTSMappedType: function() {
return isTSMappedType$1;
return isTSMappedType;
},
isTSMethodSignature: function() {
return isTSMethodSignature;
Expand Down Expand Up @@ -14969,7 +14969,7 @@ function isTSIndexedAccessType(node, opts) {
if (node.type !== "TSIndexedAccessType") return false;
return opts == null || shallowEqual(node, opts);
}
function isTSMappedType$1(node, opts) {
function isTSMappedType(node, opts) {
if (!node) return false;
if (node.type !== "TSMappedType") return false;
return opts == null || shallowEqual(node, opts);
Expand Down Expand Up @@ -114808,7 +114808,6 @@ const {
isImportDefaultSpecifier: isImportDefaultSpecifier$1,
isExportSpecifier: isExportSpecifier$1,
isRegExpLiteral: isRegExpLiteral$1,
isTSMappedType,
isJSXText: isJSXText$3,
isJSXIdentifier: isJSXIdentifier$1,
isJSXAttribute: isJSXAttribute$1,
Expand Down Expand Up @@ -115135,10 +115134,7 @@ is$6.isLinkedNode = (a) => {
if (isTemplateElement$5(a) && LINKED_NODE$1.test(a.value.raw))
return true;

if (isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name))
return true;

return isTSMappedType(a) && LINKED_NODE$1.test(a.key.name);
return isTSTypeReference$3(a) && LINKED_NODE$1.test(a.typeName.name);
};

is$6.parseTemplate = (tmpl, {program} = {}) => {
Expand Down Expand Up @@ -115401,6 +115397,8 @@ const parseName$1 = (node) => {

if (isTSTypeReference$2(node))
return node.typeName.name;
// if (isTSMappedType(node))
// return node.key.name;
};

var link$3 = ({add, value, nodeValue, templateStore}) => {
Expand All @@ -115414,6 +115412,9 @@ var link$3 = ({add, value, nodeValue, templateStore}) => {
return true;
}

if (isIdentifier$a(templateStore[name]) && isTSTypeReference$2(nodeValue))
return true;

add(templateStore[name], nodeValue);

return true;
Expand Down Expand Up @@ -115534,7 +115535,7 @@ function compareTemplateElements$1(node, template) {
}

function linkNodes$1(node, template, {add, templateStore}) {
if (node && isLinkedNode$3(template) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template))
if (node && isLinkedNode$3(template, node) || isLinkedArgs$1(template) || isLinkedId$3(node, template) || isLinkedBool$1(node, template))
return link$2({
add,
value: template,
Expand Down
2 changes: 1 addition & 1 deletion bundle/putout.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@putout/bundle",
"version": "3.18.0",
"version": "3.18.1",
"type": "module",
"author": "coderaiser <[email protected]> (https://github.com/coderaiser)",
"description": "🐊Putout bundle suitable for Deno or Browsers",
Expand Down

0 comments on commit 7d24d5f

Please sign in to comment.