mol_wire_lib 1.0.1232 → 1.0.1234
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 -1
- 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 -0
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
package/node.test.js
CHANGED
|
@@ -1534,7 +1534,8 @@ var $;
|
|
|
1534
1534
|
$$.$mol_log3_warn({
|
|
1535
1535
|
place: '$mol_wire_task',
|
|
1536
1536
|
message: `Non idempotency`,
|
|
1537
|
-
|
|
1537
|
+
sub,
|
|
1538
|
+
pubs: [...sub?.pub_list ?? [], existen],
|
|
1538
1539
|
next,
|
|
1539
1540
|
hint: 'Ignore it',
|
|
1540
1541
|
});
|
|
@@ -3042,6 +3043,17 @@ var $;
|
|
|
3042
3043
|
;
|
|
3043
3044
|
"use strict";
|
|
3044
3045
|
|
|
3046
|
+
;
|
|
3047
|
+
"use strict";
|
|
3048
|
+
var $;
|
|
3049
|
+
(function ($) {
|
|
3050
|
+
function $mol_dom_serialize(node) {
|
|
3051
|
+
const serializer = new $mol_dom_context.XMLSerializer;
|
|
3052
|
+
return serializer.serializeToString(node);
|
|
3053
|
+
}
|
|
3054
|
+
$.$mol_dom_serialize = $mol_dom_serialize;
|
|
3055
|
+
})($ || ($ = {}));
|
|
3056
|
+
|
|
3045
3057
|
;
|
|
3046
3058
|
"use strict";
|
|
3047
3059
|
var $;
|
|
@@ -3199,6 +3211,19 @@ var $;
|
|
|
3199
3211
|
"!");
|
|
3200
3212
|
$mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
|
|
3201
3213
|
},
|
|
3214
|
+
'Make fragment'() {
|
|
3215
|
+
const dom = $mol_jsx($mol_jsx_frag, null,
|
|
3216
|
+
$mol_jsx("br", null),
|
|
3217
|
+
$mol_jsx("hr", null));
|
|
3218
|
+
$mol_assert_equal($mol_dom_serialize(dom), '<br xmlns="http://www.w3.org/1999/xhtml" /><hr xmlns="http://www.w3.org/1999/xhtml" />');
|
|
3219
|
+
},
|
|
3220
|
+
'Spread fragment'() {
|
|
3221
|
+
const dom = $mol_jsx("div", null,
|
|
3222
|
+
$mol_jsx($mol_jsx_frag, null,
|
|
3223
|
+
$mol_jsx("br", null),
|
|
3224
|
+
$mol_jsx("hr", null)));
|
|
3225
|
+
$mol_assert_equal(dom.outerHTML, '<div><br><hr></div>');
|
|
3226
|
+
},
|
|
3202
3227
|
'Function as component'() {
|
|
3203
3228
|
const Button = (props, target) => {
|
|
3204
3229
|
return $mol_jsx("button", { title: props.hint }, target());
|