mol_plot_all 1.2.1481 → 1.2.1483

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.js CHANGED
@@ -393,11 +393,11 @@ var $;
393
393
  function $mol_dev_format_button(label, click) {
394
394
  return $mol_dev_format_auto({
395
395
  [$.$mol_dev_format_head]() {
396
- return $mol_dev_format_span({ color: 'cornflowerblue' }, label);
396
+ return $.$mol_dev_format_span({ color: 'cornflowerblue' }, label);
397
397
  },
398
398
  [$.$mol_dev_format_body]() {
399
399
  Promise.resolve().then(click);
400
- return $mol_dev_format_span({});
400
+ return $.$mol_dev_format_span({});
401
401
  }
402
402
  });
403
403
  }
@@ -418,8 +418,8 @@ var $;
418
418
  if (typeof val === 'function') {
419
419
  return $mol_dev_format_native(val);
420
420
  }
421
- if (Error.isError(val)) {
422
- return $mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
421
+ if (val instanceof Error) {
422
+ return $.$mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
423
423
  }
424
424
  if (val instanceof Promise) {
425
425
  return $.$mol_dev_format_shade($mol_dev_format_native(val), ' ', val[Symbol.toStringTag] ?? '');
@@ -491,28 +491,23 @@ var $;
491
491
  ];
492
492
  }
493
493
  $.$mol_dev_format_element = $mol_dev_format_element;
494
- function $mol_dev_format_span(style, ...content) {
495
- return $mol_dev_format_element('span', {
496
- ...style,
497
- }, ...content);
498
- }
499
- $.$mol_dev_format_span = $mol_dev_format_span;
494
+ $.$mol_dev_format_span = $mol_dev_format_element.bind(null, 'span');
500
495
  $.$mol_dev_format_div = $mol_dev_format_element.bind(null, 'div');
501
496
  $.$mol_dev_format_ol = $mol_dev_format_element.bind(null, 'ol');
502
497
  $.$mol_dev_format_li = $mol_dev_format_element.bind(null, 'li');
503
498
  $.$mol_dev_format_table = $mol_dev_format_element.bind(null, 'table');
504
499
  $.$mol_dev_format_tr = $mol_dev_format_element.bind(null, 'tr');
505
500
  $.$mol_dev_format_td = $mol_dev_format_element.bind(null, 'td');
506
- $.$mol_dev_format_accent = $mol_dev_format_span.bind(null, {
501
+ $.$mol_dev_format_accent = $.$mol_dev_format_span.bind(null, {
507
502
  'color': 'magenta',
508
503
  });
509
- $.$mol_dev_format_strong = $mol_dev_format_span.bind(null, {
504
+ $.$mol_dev_format_strong = $.$mol_dev_format_span.bind(null, {
510
505
  'font-weight': 'bold',
511
506
  });
512
- $.$mol_dev_format_string = $mol_dev_format_span.bind(null, {
507
+ $.$mol_dev_format_string = $.$mol_dev_format_span.bind(null, {
513
508
  'color': 'green',
514
509
  });
515
- $.$mol_dev_format_shade = $mol_dev_format_span.bind(null, {
510
+ $.$mol_dev_format_shade = $.$mol_dev_format_span.bind(null, {
516
511
  'color': 'gray',
517
512
  });
518
513
  $.$mol_dev_format_indent = $.$mol_dev_format_div.bind(null, {
@@ -1242,7 +1237,7 @@ var $;
1242
1237
  var $;
1243
1238
  (function ($) {
1244
1239
  function $mol_log3_area_lazy(event) {
1245
- const self = this;
1240
+ const self = this.$;
1246
1241
  const stack = self.$mol_log3_stack;
1247
1242
  const deep = stack.length;
1248
1243
  let logged = false;
@@ -1778,15 +1773,22 @@ var $;
1778
1773
  return function $mol_wire_task_get(host, args) {
1779
1774
  const sub = $mol_wire_auto();
1780
1775
  const existen = sub?.track_next();
1776
+ let cause = '';
1781
1777
  reuse: if (existen) {
1782
1778
  if (!existen.temp)
1783
1779
  break reuse;
1784
- if (existen.host !== host)
1780
+ if (existen.task !== task) {
1781
+ cause = 'task';
1785
1782
  break reuse;
1786
- if (existen.task !== task)
1783
+ }
1784
+ if (existen.host !== host) {
1785
+ cause = 'host';
1787
1786
  break reuse;
1788
- if (!$mol_compare_deep(existen.args, args))
1787
+ }
1788
+ if (!$mol_compare_deep(existen.args, args)) {
1789
+ cause = 'args';
1789
1790
  break reuse;
1791
+ }
1790
1792
  return existen;
1791
1793
  }
1792
1794
  const key = (host?.[Symbol.toStringTag] ?? host) + ('.' + task.name + '<#>');
@@ -1794,11 +1796,11 @@ var $;
1794
1796
  if (existen?.temp) {
1795
1797
  $$.$mol_log3_warn({
1796
1798
  place: '$mol_wire_task',
1797
- message: `Non idempotency`,
1799
+ message: `Different ${cause} on restart`,
1798
1800
  sub,
1799
- pubs: [...sub?.pub_list ?? [], existen],
1801
+ prev: existen,
1800
1802
  next,
1801
- hint: 'Ignore it',
1803
+ hint: 'Maybe required additional memoization',
1802
1804
  });
1803
1805
  }
1804
1806
  return next;