marko 6.1.6 → 6.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/debug/html.js +1 -1
- package/dist/debug/html.mjs +1 -1
- package/dist/html.js +1 -1
- package/dist/html.mjs +1 -1
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
|
@@ -2903,7 +2903,7 @@ function writeTriggerScript(html, triggers) {
|
|
|
2903
2903
|
default: return `(e=>e?.addEventListener("${trigger.type.slice(3)}",l,{once:1}))(document.querySelector(${JSON.stringify(trigger.selector)})||l())`;
|
|
2904
2904
|
}
|
|
2905
2905
|
});
|
|
2906
|
-
writeScript(`((p,h,d,l=$=>d||p.
|
|
2906
|
+
writeScript(`((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>${exprs.length > 1 ? `{${exprs.join(";")}}` : exprs[0]})(document.currentScript,${htmlStr})`);
|
|
2907
2907
|
}
|
|
2908
2908
|
function toObjectExpression(options) {
|
|
2909
2909
|
let result = "{";
|
package/dist/debug/html.mjs
CHANGED
|
@@ -2901,7 +2901,7 @@ function writeTriggerScript(html, triggers) {
|
|
|
2901
2901
|
default: return `(e=>e?.addEventListener("${trigger.type.slice(3)}",l,{once:1}))(document.querySelector(${JSON.stringify(trigger.selector)})||l())`;
|
|
2902
2902
|
}
|
|
2903
2903
|
});
|
|
2904
|
-
writeScript(`((p,h,d,l=$=>d||p.
|
|
2904
|
+
writeScript(`((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>${exprs.length > 1 ? `{${exprs.join(";")}}` : exprs[0]})(document.currentScript,${htmlStr})`);
|
|
2905
2905
|
}
|
|
2906
2906
|
function toObjectExpression(options) {
|
|
2907
2907
|
let result = "{";
|
package/dist/html.js
CHANGED
|
@@ -1941,7 +1941,7 @@ function writeTriggerScript(html, triggers) {
|
|
|
1941
1941
|
default: return `(e=>e?.addEventListener("${trigger.type.slice(3)}",l,{once:1}))(document.querySelector(${JSON.stringify(trigger.selector)})||l())`;
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
|
-
writeScript(`((p,h,d,l=$=>d||p.
|
|
1944
|
+
writeScript(`((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>${exprs.length > 1 ? `{${exprs.join(";")}}` : exprs[0]})(document.currentScript,${htmlStr})`);
|
|
1945
1945
|
}
|
|
1946
1946
|
function toObjectExpression(options) {
|
|
1947
1947
|
let result = "{", sep = "";
|
package/dist/html.mjs
CHANGED
|
@@ -1940,7 +1940,7 @@ function writeTriggerScript(html, triggers) {
|
|
|
1940
1940
|
default: return `(e=>e?.addEventListener("${trigger.type.slice(3)}",l,{once:1}))(document.querySelector(${JSON.stringify(trigger.selector)})||l())`;
|
|
1941
1941
|
}
|
|
1942
1942
|
});
|
|
1943
|
-
writeScript(`((p,h,d,l=$=>d||p.
|
|
1943
|
+
writeScript(`((p,h,d,l=$=>d||p.after(new Range().createContextualFragment(d=h)))=>${exprs.length > 1 ? `{${exprs.join(";")}}` : exprs[0]})(document.currentScript,${htmlStr})`);
|
|
1944
1944
|
}
|
|
1945
1945
|
function toObjectExpression(options) {
|
|
1946
1946
|
let result = "{", sep = "";
|