Skip to content

Commit f578aab

Browse files
committed
updated dependencies
1 parent 5790bfa commit f578aab

File tree

6 files changed

+54
-74
lines changed

6 files changed

+54
-74
lines changed

esm.js

+1-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

+30-16
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ var hyperHTML = (function (document) {
22
'use strict';
33

44
/*! (c) Andrea Giammarchi - ISC */
5-
var self = null ||
6-
/* istanbul ignore next */
7-
{};
5+
var self = {};
86

97
try {
108
self.WeakMap = WeakMap;
@@ -55,9 +53,7 @@ var hyperHTML = (function (document) {
5553
var WeakMap$1 = self.WeakMap;
5654

5755
/*! (c) Andrea Giammarchi - ISC */
58-
var self$1 = null ||
59-
/* istanbul ignore next */
60-
{};
56+
var self$1 = {};
6157

6258
try {
6359
self$1.WeakSet = WeakSet;
@@ -483,9 +479,7 @@ var hyperHTML = (function (document) {
483479

484480

485481
/*! (c) Andrea Giammarchi - ISC */
486-
var self$2 = null ||
487-
/* istanbul ignore next */
488-
{};
482+
var self$2 = {};
489483
self$2.CustomEvent = typeof CustomEvent === 'function' ? CustomEvent : function (__p__) {
490484
CustomEvent[__p__] = new CustomEvent('').constructor[__p__];
491485
return CustomEvent;
@@ -500,9 +494,7 @@ var hyperHTML = (function (document) {
500494
var CustomEvent$1 = self$2.CustomEvent;
501495

502496
/*! (c) Andrea Giammarchi - ISC */
503-
var self$3 = null ||
504-
/* istanbul ignore next */
505-
{};
497+
var self$3 = {};
506498

507499
try {
508500
self$3.Map = Map;
@@ -751,8 +743,13 @@ var hyperHTML = (function (document) {
751743
}
752744
};
753745

754-
var isArray = Array.isArray || function (toString) {
746+
var isArray = Array.isArray ||
747+
/* istanbul ignore next */
748+
function (toString) {
749+
/* istanbul ignore next */
755750
var $ = toString.call([]);
751+
/* istanbul ignore next */
752+
756753
return function isArray(object) {
757754
return toString.call(object) === $;
758755
};
@@ -916,21 +913,29 @@ var hyperHTML = (function (document) {
916913
var fragment = document.createDocumentFragment();
917914
fragment[appendChild](document[createTextNode]('g'));
918915
fragment[appendChild](document[createTextNode](''));
916+
/* istanbul ignore next */
917+
919918
var content = _native ? document[importNode](fragment, true) : fragment[cloneNode](true);
920919
return content.childNodes.length < 2 ? function importNode(node, deep) {
921920
var clone = node[cloneNode]();
922921

923-
for (var childNodes = node.childNodes || [], length = childNodes.length, i = 0; deep && i < length; i++) {
922+
for (var
923+
/* istanbul ignore next */
924+
childNodes = node.childNodes || [], length = childNodes.length, i = 0; deep && i < length; i++) {
924925
clone[appendChild](importNode(childNodes[i], deep));
925926
}
926927

927928
return clone;
928-
} : _native ? document[importNode] : function (node, deep) {
929+
} :
930+
/* istanbul ignore next */
931+
_native ? document[importNode] : function (node, deep) {
929932
return node[cloneNode](!!deep);
930933
};
931934
}(document, 'appendChild', 'cloneNode', 'createTextNode', 'importNode');
932935

933-
var trim = ''.trim || function () {
936+
var trim = ''.trim ||
937+
/* istanbul ignore next */
938+
function () {
934939
return String(this).replace(/^\s+|\s+/g, '');
935940
};
936941

@@ -1835,6 +1840,15 @@ var hyperHTML = (function (document) {
18351840

18361841
return args;
18371842
}
1843+
/**
1844+
* best benchmark goes here
1845+
* https://jsperf.com/tta-bench
1846+
* I should probably have an @ungap/template-literal-es too
1847+
export default (...args) => {
1848+
args[0] = unique(args[0]);
1849+
return args;
1850+
};
1851+
*/
18381852

18391853
var wires = new WeakMap$1(); // A wire is a callback used as tag function
18401854
// to lazily relate a generic object to a template literal.

0 commit comments

Comments
 (0)