Skip to content

Commit

Permalink
Rebuild dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber623 committed Jul 11, 2023
1 parent 6666105 commit d4d65ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/templatetemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
if (insertion instanceof DocumentFragment || insertion instanceof HTMLElement) {
return currentNode.appendChild(insertion);
}
return currentNode.textContent = insertion;
currentNode.textContent = insertion;
}));
return importedNode;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/templatetemplate.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
*
* TemplateTemplate may be freely distributed under the MIT license.
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TemplateTemplate=t()}(this,(function(){"use strict";return function(e,t={}){if(null===(e=e instanceof HTMLElement?e:document.querySelector(e))||!(e instanceof HTMLTemplateElement))throw new TypeError(`${e} is not an HTMLTemplateElement`);if("object"!=typeof t)throw new TypeError(`${t} is not an Object`);const n=document.importNode(e.content,!0);return Object.entries(t).forEach((([e,t])=>{const o=n.querySelector(e);if(t instanceof Array){const[e,n]=t;Object.entries(n).forEach((([e,t])=>o.setAttribute(e,t))),t=e}return t instanceof DocumentFragment||t instanceof HTMLElement?o.appendChild(t):o.textContent=t})),n}}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).TemplateTemplate=t()}(this,(function(){"use strict";return function(e,t={}){if(null===(e=e instanceof HTMLElement?e:document.querySelector(e))||!(e instanceof HTMLTemplateElement))throw new TypeError(`${e} is not an HTMLTemplateElement`);if("object"!=typeof t)throw new TypeError(`${t} is not an Object`);const n=document.importNode(e.content,!0);return Object.entries(t).forEach((([e,t])=>{const o=n.querySelector(e);if(t instanceof Array){const[e,n]=t;Object.entries(n).forEach((([e,t])=>o.setAttribute(e,t))),t=e}if(t instanceof DocumentFragment||t instanceof HTMLElement)return o.appendChild(t);o.textContent=t})),n}}));
2 changes: 1 addition & 1 deletion dist/templatetemplate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function TemplateTemplate(template, insertions = {}) {
if (insertion instanceof DocumentFragment || insertion instanceof HTMLElement) {
return currentNode.appendChild(insertion);
}
return currentNode.textContent = insertion;
currentNode.textContent = insertion;
}));
return importedNode;
}
Expand Down

0 comments on commit d4d65ac

Please sign in to comment.