remixml-dom
Advanced tools
Comparing version 6.1.0 to 6.1.1
{ | ||
"name": "remixml-dom", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Remixml component that renders to DOM in browsers", | ||
@@ -5,0 +5,0 @@ "browser": "remixml-dom.min.js", |
@@ -24,3 +24,3 @@ /** @license Copyright (c) 2018-2021 by Stephen R. van den Berg <srb@cuci.nl> */ | ||
{ "abstract2dom": | ||
function /** !Node */(/** !Array */ tpl, /** !Node= */ node) | ||
/** !Node */(/** !Array */ tpl, /** !Node= */ node) => | ||
{ var /** !Node */ newnodes = abstract2dom(tpl); | ||
@@ -62,3 +62,3 @@ if (node) | ||
{ default: | ||
let /** string|TrustedScriptURL */ val | ||
let /** string|Array|TrustedScriptURL */ val | ||
= /** @type{Object} */(vdom)[name]; | ||
@@ -69,3 +69,3 @@ if (val != null) | ||
if (policyparam && name === "src") | ||
val = policy.createScriptURL(val); | ||
val = policy.createScriptURL(/** @type {string} */(val)); | ||
parent.setAttribute(name, val); | ||
@@ -72,0 +72,0 @@ } |
@@ -31,3 +31,3 @@ /** @license Copyright (c) 2018-2021 by Stephen R. van den Berg <srb@cuci.nl> */ | ||
{ "abstract2dom": | ||
function /** !Node */(/** !Array */ tpl, /** !Node= */ node) | ||
/** !Node */(/** !Array */ tpl, /** !Node= */ node) => | ||
{ var /** !Node */ newnodes = abstract2dom(tpl); | ||
@@ -69,3 +69,3 @@ if (node) | ||
{ default: | ||
let /** string|TrustedScriptURL */ val | ||
let /** string|Array|TrustedScriptURL */ val | ||
= /** @type{Object} */(vdom)[name]; | ||
@@ -76,3 +76,3 @@ if (val != null) | ||
if (policyparam && name === "src") | ||
val = policy.createScriptURL(val); | ||
val = policy.createScriptURL(/** @type {string} */(val)); | ||
parent.setAttribute(name, val); | ||
@@ -79,0 +79,0 @@ } |
@@ -5,4 +5,4 @@ (function(){"use strict"; | ||
'use strict';(()=>{function n(a){var b=a[""];switch(b){case "!":return e.createComment(a[0]);case "<":case "?":return e.createComment(b+a[0]);case 1:var f=e.createDocumentFragment();break;default:f=e.createElement(b);var c=g&&"SCRIPT"===f.tagName;for(b of h.keys(a).splice(a.length))switch(b[0]){default:let d=a[b];null!=d&&(d[""]&&(d=d.join("")),c&&"src"===b&&(d=g.createScriptURL(d)),f.setAttribute(b,d));case "_":case void 0:}}for(b=0;void 0!==(c=a[b++]);){if(c[""])c=n(c);else{var k;for(c+="";void 0!== | ||
(k=a[b])&&!k[""];)b++,c+=k;c=0>c.indexOf("&")?e.createTextNode(c):(p.innerHTML=g?g.createHTML(c):c,p.firstChild)}f.appendChild(c)}return f}function q(a){return a}function l(a){h.assign(a,r);(a=m.trustedTypes)&&(g=a.createPolicy("remixml",{createHTML:q,createScriptURL:q}));return r}const h=Object,e=document,m=window;var g;const r={abstract2dom:function(a,b){a=n(a);b&&(b.appendChild(a),a=b);return a}},p=e.createElement("textarea");"function"==typeof define&&define.amd?define("remixml-dom",["remixml"], | ||
l):"object"==typeof exports?h.assign(exports,l(require("remixml"))):m.RemixmlDOM=l(m.Remixml)}).call(this); | ||
(k=a[b])&&!k[""];)b++,c+=k;c=0>c.indexOf("&")?e.createTextNode(c):(p.innerHTML=g?g.createHTML(c):c,p.firstChild)}f.appendChild(c)}return f}function q(a){return a}function l(a){h.assign(a,r);(a=m.trustedTypes)&&(g=a.createPolicy("remixml",{createHTML:q,createScriptURL:q}));return r}const h=Object,e=document,m=window;var g;const r={abstract2dom:(a,b)=>{a=n(a);b&&(b.appendChild(a),a=b);return a}},p=e.createElement("textarea");"function"==typeof define&&define.amd?define("remixml-dom",["remixml"],l): | ||
"object"==typeof exports?h.assign(exports,l(require("remixml"))):m.RemixmlDOM=l(m.Remixml)}).call(this); | ||
}).call(this); |
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
20140