mol_jsx_lib 0.0.1098 → 0.0.1099
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/node.d.ts +5 -4
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +2 -1
- package/node.js.map +1 -1
- package/node.mjs +2 -1
- package/node.test.js +26 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +5 -4
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +2 -1
- package/web.js.map +1 -1
- package/web.mjs +2 -1
- package/web.test.js +24 -11
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
package/node.test.js
CHANGED
|
@@ -1675,7 +1675,8 @@ var $;
|
|
|
1675
1675
|
$$.$mol_log3_warn({
|
|
1676
1676
|
place: '$mol_wire_task',
|
|
1677
1677
|
message: `Non idempotency`,
|
|
1678
|
-
|
|
1678
|
+
sub,
|
|
1679
|
+
pubs: [...sub?.pub_list ?? [], existen],
|
|
1679
1680
|
next,
|
|
1680
1681
|
hint: 'Ignore it',
|
|
1681
1682
|
});
|
|
@@ -3923,6 +3924,17 @@ var $;
|
|
|
3923
3924
|
;
|
|
3924
3925
|
"use strict";
|
|
3925
3926
|
|
|
3927
|
+
;
|
|
3928
|
+
"use strict";
|
|
3929
|
+
var $;
|
|
3930
|
+
(function ($) {
|
|
3931
|
+
function $mol_dom_serialize(node) {
|
|
3932
|
+
const serializer = new $mol_dom_context.XMLSerializer;
|
|
3933
|
+
return serializer.serializeToString(node);
|
|
3934
|
+
}
|
|
3935
|
+
$.$mol_dom_serialize = $mol_dom_serialize;
|
|
3936
|
+
})($ || ($ = {}));
|
|
3937
|
+
|
|
3926
3938
|
;
|
|
3927
3939
|
"use strict";
|
|
3928
3940
|
var $;
|
|
@@ -3959,6 +3971,19 @@ var $;
|
|
|
3959
3971
|
"!");
|
|
3960
3972
|
$mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
|
|
3961
3973
|
},
|
|
3974
|
+
'Make fragment'() {
|
|
3975
|
+
const dom = $mol_jsx($mol_jsx_frag, null,
|
|
3976
|
+
$mol_jsx("br", null),
|
|
3977
|
+
$mol_jsx("hr", null));
|
|
3978
|
+
$mol_assert_equal($mol_dom_serialize(dom), '<br xmlns="http://www.w3.org/1999/xhtml" /><hr xmlns="http://www.w3.org/1999/xhtml" />');
|
|
3979
|
+
},
|
|
3980
|
+
'Spread fragment'() {
|
|
3981
|
+
const dom = $mol_jsx("div", null,
|
|
3982
|
+
$mol_jsx($mol_jsx_frag, null,
|
|
3983
|
+
$mol_jsx("br", null),
|
|
3984
|
+
$mol_jsx("hr", null)));
|
|
3985
|
+
$mol_assert_equal(dom.outerHTML, '<div><br><hr></div>');
|
|
3986
|
+
},
|
|
3962
3987
|
'Function as component'() {
|
|
3963
3988
|
const Button = (props, target) => {
|
|
3964
3989
|
return $mol_jsx("button", { title: props.hint }, target());
|
|
@@ -5199,17 +5224,6 @@ var $;
|
|
|
5199
5224
|
});
|
|
5200
5225
|
})($ || ($ = {}));
|
|
5201
5226
|
|
|
5202
|
-
;
|
|
5203
|
-
"use strict";
|
|
5204
|
-
var $;
|
|
5205
|
-
(function ($) {
|
|
5206
|
-
function $mol_dom_serialize(node) {
|
|
5207
|
-
const serializer = new $mol_dom_context.XMLSerializer;
|
|
5208
|
-
return serializer.serializeToString(node);
|
|
5209
|
-
}
|
|
5210
|
-
$.$mol_dom_serialize = $mol_dom_serialize;
|
|
5211
|
-
})($ || ($ = {}));
|
|
5212
|
-
|
|
5213
5227
|
;
|
|
5214
5228
|
"use strict";
|
|
5215
5229
|
var $;
|