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/web.mjs CHANGED
@@ -1082,7 +1082,8 @@ var $;
1082
1082
  $$.$mol_log3_warn({
1083
1083
  place: '$mol_wire_task',
1084
1084
  message: `Non idempotency`,
1085
- existen,
1085
+ sub,
1086
+ pubs: [...sub?.pub_list ?? [], existen],
1086
1087
  next,
1087
1088
  hint: 'Ignore it',
1088
1089
  });
package/web.test.js CHANGED
@@ -178,6 +178,17 @@ var $;
178
178
  ;
179
179
  "use strict";
180
180
 
181
+ ;
182
+ "use strict";
183
+ var $;
184
+ (function ($) {
185
+ function $mol_dom_serialize(node) {
186
+ const serializer = new $mol_dom_context.XMLSerializer;
187
+ return serializer.serializeToString(node);
188
+ }
189
+ $.$mol_dom_serialize = $mol_dom_serialize;
190
+ })($ || ($ = {}));
191
+
181
192
  ;
182
193
  "use strict";
183
194
  var $;
@@ -335,6 +346,19 @@ var $;
335
346
  "!");
336
347
  $mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
337
348
  },
349
+ 'Make fragment'() {
350
+ const dom = $mol_jsx($mol_jsx_frag, null,
351
+ $mol_jsx("br", null),
352
+ $mol_jsx("hr", null));
353
+ $mol_assert_equal($mol_dom_serialize(dom), '<br xmlns="http://www.w3.org/1999/xhtml" /><hr xmlns="http://www.w3.org/1999/xhtml" />');
354
+ },
355
+ 'Spread fragment'() {
356
+ const dom = $mol_jsx("div", null,
357
+ $mol_jsx($mol_jsx_frag, null,
358
+ $mol_jsx("br", null),
359
+ $mol_jsx("hr", null)));
360
+ $mol_assert_equal(dom.outerHTML, '<div><br><hr></div>');
361
+ },
338
362
  'Function as component'() {
339
363
  const Button = (props, target) => {
340
364
  return $mol_jsx("button", { title: props.hint }, target());