hyperhtml
Advanced tools
Comparing version 2.25.4 to 2.25.5
21
index.js
@@ -20,3 +20,3 @@ var hyperHTML = (function (document) { | ||
proto.delete = function (key) { | ||
proto["delete"] = function (key) { | ||
return this.has(key) && delete key[this._]; | ||
@@ -81,3 +81,3 @@ }; | ||
proto.delete = function (object) { | ||
proto["delete"] = function (object) { | ||
return this.has(object) && delete object[this._]; | ||
@@ -112,3 +112,3 @@ }; | ||
return { | ||
delete: function _delete(key) { | ||
"delete": function _delete(key) { | ||
var had = contains(key); | ||
@@ -595,3 +595,3 @@ | ||
// and after that same instance would always be returned. | ||
for: { | ||
"for": { | ||
configurable: true, | ||
@@ -873,3 +873,3 @@ value: function value(context, id) { | ||
if (observer.has(node) && !dispatched[type].has(node)) { | ||
dispatched[counter].delete(node); | ||
dispatched[counter]["delete"](node); | ||
dispatched[type].add(node); | ||
@@ -907,9 +907,10 @@ node.dispatchEvent(event); | ||
var importNode = function (document, appendChild, cloneNode, createTextNode, importNode) { | ||
var native = importNode in document; // IE 11 has problems with cloning templates: | ||
var _native = importNode in document; // IE 11 has problems with cloning templates: | ||
// it "forgets" empty childNodes. This feature-detects that. | ||
var fragment = document.createDocumentFragment(); | ||
fragment[appendChild](document[createTextNode]('g')); | ||
fragment[appendChild](document[createTextNode]('')); | ||
var content = native ? document[importNode](fragment, true) : fragment[cloneNode](true); | ||
var content = _native ? document[importNode](fragment, true) : fragment[cloneNode](true); | ||
return content.childNodes.length < 2 ? function importNode(node, deep) { | ||
@@ -923,3 +924,3 @@ var clone = node[cloneNode](); | ||
return clone; | ||
} : native ? document[importNode] : function (node, deep) { | ||
} : _native ? document[importNode] : function (node, deep) { | ||
return node[cloneNode](!!deep); | ||
@@ -1335,3 +1336,3 @@ }; | ||
// Node.CONSTANTS | ||
var DOCUMENT_FRAGMENT_NODE$1 = 11; // SVG related constants | ||
var DOCUMENT_FRAGMENT_NODE = 11; // SVG related constants | ||
@@ -1589,3 +1590,3 @@ var OWNER_SVG_ELEMENT = 'ownerSVGElement'; // Custom Elements / MutationObserver constants | ||
} else if (canDiff(value)) { | ||
childNodes = domdiff(node.parentNode, childNodes, value.nodeType === DOCUMENT_FRAGMENT_NODE$1 ? slice.call(value.childNodes) : [value], diffOptions); | ||
childNodes = domdiff(node.parentNode, childNodes, value.nodeType === DOCUMENT_FRAGMENT_NODE ? slice.call(value.childNodes) : [value], diffOptions); | ||
} else if (isPromise_ish(value)) { | ||
@@ -1592,0 +1593,0 @@ value.then(anyContent); |
{ | ||
"name": "hyperhtml", | ||
"version": "2.25.4", | ||
"version": "2.25.5", | ||
"description": "A Fast & Light Virtual DOM Alternative", | ||
@@ -124,13 +124,13 @@ "homepage": "https://viperhtml.js.org/hyper.html", | ||
"devDependencies": { | ||
"@babel/core": "^7.2.2", | ||
"@babel/preset-env": "^7.2.0", | ||
"@babel/core": "^7.4.3", | ||
"@babel/preset-env": "^7.4.3", | ||
"ascjs": "^3.0.0", | ||
"basichtml": "^0.21.0", | ||
"coveralls": "^3.0.2", | ||
"drop-babel-typeof": "^1.0.1", | ||
"basichtml": "^0.22.0", | ||
"coveralls": "^3.0.3", | ||
"drop-babel-typeof": "^1.0.3", | ||
"istanbul": "^0.4.5", | ||
"npm-dollar": "^2.1.3", | ||
"rollup": "^0.67.0", | ||
"rollup-plugin-babel": "^4.1.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup": "^1.9.3", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-node-resolve": "^4.2.2", | ||
"tressa": "^0.3.1", | ||
@@ -141,3 +141,2 @@ "uglify-js": "^2.8.29" | ||
"ignore": [ | ||
"rollup-plugin-babel", | ||
"uglify-js" | ||
@@ -144,0 +143,0 @@ ] |
@@ -44,2 +44,4 @@ # hyper(HTML) | ||
See [HELPERS.md](./HELPERS.md) for a list of additional tools which can be helpful for building hyperHTML based web applications. | ||
- - - | ||
@@ -155,3 +157,3 @@ | ||
You can read more on this [hyperHTML vs lit-html](https://gist.github.com/WebReflection/fadcc419f5ccaae92bc167d8ff5c611b) comparison. | ||
You can read more on this [hyperHTML vs lit-html](https://medium.com/@WebReflection/lit-html-vs-hyperhtml-vs-lighterhtml-c084abfe1285) comparison. | ||
@@ -158,0 +160,0 @@ #### installation? |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193363
31
186