mol_wire_lib 1.0.1232 → 1.0.1233

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.mjs CHANGED
@@ -1543,7 +1543,8 @@ var $;
1543
1543
  $$.$mol_log3_warn({
1544
1544
  place: '$mol_wire_task',
1545
1545
  message: `Non idempotency`,
1546
- existen,
1546
+ sub,
1547
+ pubs: [...sub?.pub_list ?? [], existen],
1547
1548
  next,
1548
1549
  hint: 'Ignore it',
1549
1550
  });
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
- existen,
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());