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/web.mjs CHANGED
@@ -378,11 +378,11 @@ var $;
378
378
  function $mol_dev_format_button(label, click) {
379
379
  return $mol_dev_format_auto({
380
380
  [$.$mol_dev_format_head]() {
381
- return $mol_dev_format_span({ color: 'cornflowerblue' }, label);
381
+ return $.$mol_dev_format_span({ color: 'cornflowerblue' }, label);
382
382
  },
383
383
  [$.$mol_dev_format_body]() {
384
384
  Promise.resolve().then(click);
385
- return $mol_dev_format_span({});
385
+ return $.$mol_dev_format_span({});
386
386
  }
387
387
  });
388
388
  }
@@ -403,8 +403,8 @@ var $;
403
403
  if (typeof val === 'function') {
404
404
  return $mol_dev_format_native(val);
405
405
  }
406
- if (Error.isError(val)) {
407
- return $mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
406
+ if (val instanceof Error) {
407
+ return $.$mol_dev_format_span({}, $mol_dev_format_native(val), ' ', $mol_dev_format_button('throw', () => $mol_fail_hidden(val)));
408
408
  }
409
409
  if (val instanceof Promise) {
410
410
  return $.$mol_dev_format_shade($mol_dev_format_native(val), ' ', val[Symbol.toStringTag] ?? '');
@@ -476,28 +476,23 @@ var $;
476
476
  ];
477
477
  }
478
478
  $.$mol_dev_format_element = $mol_dev_format_element;
479
- function $mol_dev_format_span(style, ...content) {
480
- return $mol_dev_format_element('span', {
481
- ...style,
482
- }, ...content);
483
- }
484
- $.$mol_dev_format_span = $mol_dev_format_span;
479
+ $.$mol_dev_format_span = $mol_dev_format_element.bind(null, 'span');
485
480
  $.$mol_dev_format_div = $mol_dev_format_element.bind(null, 'div');
486
481
  $.$mol_dev_format_ol = $mol_dev_format_element.bind(null, 'ol');
487
482
  $.$mol_dev_format_li = $mol_dev_format_element.bind(null, 'li');
488
483
  $.$mol_dev_format_table = $mol_dev_format_element.bind(null, 'table');
489
484
  $.$mol_dev_format_tr = $mol_dev_format_element.bind(null, 'tr');
490
485
  $.$mol_dev_format_td = $mol_dev_format_element.bind(null, 'td');
491
- $.$mol_dev_format_accent = $mol_dev_format_span.bind(null, {
486
+ $.$mol_dev_format_accent = $.$mol_dev_format_span.bind(null, {
492
487
  'color': 'magenta',
493
488
  });
494
- $.$mol_dev_format_strong = $mol_dev_format_span.bind(null, {
489
+ $.$mol_dev_format_strong = $.$mol_dev_format_span.bind(null, {
495
490
  'font-weight': 'bold',
496
491
  });
497
- $.$mol_dev_format_string = $mol_dev_format_span.bind(null, {
492
+ $.$mol_dev_format_string = $.$mol_dev_format_span.bind(null, {
498
493
  'color': 'green',
499
494
  });
500
- $.$mol_dev_format_shade = $mol_dev_format_span.bind(null, {
495
+ $.$mol_dev_format_shade = $.$mol_dev_format_span.bind(null, {
501
496
  'color': 'gray',
502
497
  });
503
498
  $.$mol_dev_format_indent = $.$mol_dev_format_div.bind(null, {
@@ -1233,7 +1228,7 @@ var $;
1233
1228
  var $;
1234
1229
  (function ($) {
1235
1230
  function $mol_log3_area_lazy(event) {
1236
- const self = this;
1231
+ const self = this.$;
1237
1232
  const stack = self.$mol_log3_stack;
1238
1233
  const deep = stack.length;
1239
1234
  let logged = false;
@@ -1293,15 +1288,22 @@ var $;
1293
1288
  return function $mol_wire_task_get(host, args) {
1294
1289
  const sub = $mol_wire_auto();
1295
1290
  const existen = sub?.track_next();
1291
+ let cause = '';
1296
1292
  reuse: if (existen) {
1297
1293
  if (!existen.temp)
1298
1294
  break reuse;
1299
- if (existen.host !== host)
1295
+ if (existen.task !== task) {
1296
+ cause = 'task';
1300
1297
  break reuse;
1301
- if (existen.task !== task)
1298
+ }
1299
+ if (existen.host !== host) {
1300
+ cause = 'host';
1302
1301
  break reuse;
1303
- if (!$mol_compare_deep(existen.args, args))
1302
+ }
1303
+ if (!$mol_compare_deep(existen.args, args)) {
1304
+ cause = 'args';
1304
1305
  break reuse;
1306
+ }
1305
1307
  return existen;
1306
1308
  }
1307
1309
  const key = (host?.[Symbol.toStringTag] ?? host) + ('.' + task.name + '<#>');
@@ -1309,11 +1311,11 @@ var $;
1309
1311
  if (existen?.temp) {
1310
1312
  $$.$mol_log3_warn({
1311
1313
  place: '$mol_wire_task',
1312
- message: `Non idempotency`,
1314
+ message: `Different ${cause} on restart`,
1313
1315
  sub,
1314
- pubs: [...sub?.pub_list ?? [], existen],
1316
+ prev: existen,
1315
1317
  next,
1316
- hint: 'Ignore it',
1318
+ hint: 'Maybe required additional memoization',
1317
1319
  });
1318
1320
  }
1319
1321
  return next;