mol_jsx_lib 0.0.1097 → 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.mjs CHANGED
@@ -1508,6 +1508,12 @@ var $;
1508
1508
  };
1509
1509
  });
1510
1510
  }
1511
+ destructor() {
1512
+ super.destructor();
1513
+ if ($mol_owning_check(this, this.cache)) {
1514
+ this.cache.destructor();
1515
+ }
1516
+ }
1511
1517
  }
1512
1518
  $.$mol_wire_fiber = $mol_wire_fiber;
1513
1519
  })($ || ($ = {}));
@@ -1678,7 +1684,8 @@ var $;
1678
1684
  $$.$mol_log3_warn({
1679
1685
  place: '$mol_wire_task',
1680
1686
  message: `Non idempotency`,
1681
- existen,
1687
+ sub,
1688
+ pubs: [...sub?.pub_list ?? [], existen],
1682
1689
  next,
1683
1690
  hint: 'Ignore it',
1684
1691
  });
@@ -1701,6 +1708,14 @@ var $;
1701
1708
  this.cursor = $mol_wire_cursor.fresh;
1702
1709
  if (next !== prev)
1703
1710
  this.emit();
1711
+ if ($mol_owning_catch(this, next)) {
1712
+ try {
1713
+ next[Symbol.toStringTag] = this[Symbol.toStringTag];
1714
+ }
1715
+ catch {
1716
+ Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
1717
+ }
1718
+ }
1704
1719
  return next;
1705
1720
  }
1706
1721
  this.cursor = $mol_wire_cursor.final;
@@ -2287,10 +2302,6 @@ var $;
2287
2302
  }
2288
2303
  destructor() {
2289
2304
  super.destructor();
2290
- const prev = this.cache;
2291
- if ($mol_owning_check(this, prev)) {
2292
- prev.destructor();
2293
- }
2294
2305
  if (this.pub_from === 0) {
2295
2306
  ;
2296
2307
  (this.host ?? this.task)[this.field()] = null;
package/node.test.js CHANGED
@@ -1499,6 +1499,12 @@ var $;
1499
1499
  };
1500
1500
  });
1501
1501
  }
1502
+ destructor() {
1503
+ super.destructor();
1504
+ if ($mol_owning_check(this, this.cache)) {
1505
+ this.cache.destructor();
1506
+ }
1507
+ }
1502
1508
  }
1503
1509
  $.$mol_wire_fiber = $mol_wire_fiber;
1504
1510
  })($ || ($ = {}));
@@ -1669,7 +1675,8 @@ var $;
1669
1675
  $$.$mol_log3_warn({
1670
1676
  place: '$mol_wire_task',
1671
1677
  message: `Non idempotency`,
1672
- existen,
1678
+ sub,
1679
+ pubs: [...sub?.pub_list ?? [], existen],
1673
1680
  next,
1674
1681
  hint: 'Ignore it',
1675
1682
  });
@@ -1692,6 +1699,14 @@ var $;
1692
1699
  this.cursor = $mol_wire_cursor.fresh;
1693
1700
  if (next !== prev)
1694
1701
  this.emit();
1702
+ if ($mol_owning_catch(this, next)) {
1703
+ try {
1704
+ next[Symbol.toStringTag] = this[Symbol.toStringTag];
1705
+ }
1706
+ catch {
1707
+ Object.defineProperty(next, Symbol.toStringTag, { value: this[Symbol.toStringTag] });
1708
+ }
1709
+ }
1695
1710
  return next;
1696
1711
  }
1697
1712
  this.cursor = $mol_wire_cursor.final;
@@ -2278,10 +2293,6 @@ var $;
2278
2293
  }
2279
2294
  destructor() {
2280
2295
  super.destructor();
2281
- const prev = this.cache;
2282
- if ($mol_owning_check(this, prev)) {
2283
- prev.destructor();
2284
- }
2285
2296
  if (this.pub_from === 0) {
2286
2297
  ;
2287
2298
  (this.host ?? this.task)[this.field()] = null;
@@ -3913,6 +3924,17 @@ var $;
3913
3924
  ;
3914
3925
  "use strict";
3915
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
+
3916
3938
  ;
3917
3939
  "use strict";
3918
3940
  var $;
@@ -3949,6 +3971,19 @@ var $;
3949
3971
  "!");
3950
3972
  $mol_assert_equal(dom.outerHTML, '<div>hello<strong>world</strong>!</div>');
3951
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
+ },
3952
3987
  'Function as component'() {
3953
3988
  const Button = (props, target) => {
3954
3989
  return $mol_jsx("button", { title: props.hint }, target());
@@ -5189,17 +5224,6 @@ var $;
5189
5224
  });
5190
5225
  })($ || ($ = {}));
5191
5226
 
5192
- ;
5193
- "use strict";
5194
- var $;
5195
- (function ($) {
5196
- function $mol_dom_serialize(node) {
5197
- const serializer = new $mol_dom_context.XMLSerializer;
5198
- return serializer.serializeToString(node);
5199
- }
5200
- $.$mol_dom_serialize = $mol_dom_serialize;
5201
- })($ || ($ = {}));
5202
-
5203
5227
  ;
5204
5228
  "use strict";
5205
5229
  var $;