mol_plot_all 1.2.577 → 1.2.578

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
@@ -317,9 +317,9 @@ var $;
317
317
  "use strict";
318
318
  var $;
319
319
  (function ($) {
320
- let auto = null;
321
- function $mol_wire_auto(next = auto) {
322
- return auto = next;
320
+ $.$mol_wire_auto_sub = null;
321
+ function $mol_wire_auto(next = $.$mol_wire_auto_sub) {
322
+ return $.$mol_wire_auto_sub = next;
323
323
  }
324
324
  $.$mol_wire_auto = $mol_wire_auto;
325
325
  $.$mol_wire_affected = [];
@@ -432,6 +432,9 @@ var $;
432
432
  class $mol_wire_pub_sub extends $mol_wire_pub {
433
433
  pub_from = 0;
434
434
  cursor = $mol_wire_cursor.stale;
435
+ get temp() {
436
+ return false;
437
+ }
435
438
  get pub_list() {
436
439
  const res = [];
437
440
  const max = this.cursor >= 0 ? this.cursor : this.sub_from;
@@ -1036,7 +1039,7 @@ var $;
1036
1039
  const sub = $mol_wire_auto();
1037
1040
  const existen = sub?.track_next();
1038
1041
  reuse: if (existen) {
1039
- if (!(existen instanceof $mol_wire_task))
1042
+ if (!existen.temp)
1040
1043
  break reuse;
1041
1044
  if (existen.host !== host)
1042
1045
  break reuse;
@@ -1049,6 +1052,9 @@ var $;
1049
1052
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1050
1053
  };
1051
1054
  }
1055
+ get temp() {
1056
+ return true;
1057
+ }
1052
1058
  complete() {
1053
1059
  if ($mol_promise_like(this.cache))
1054
1060
  return;
@@ -1204,7 +1210,7 @@ var $;
1204
1210
  return this.resync([...this.args, next]);
1205
1211
  if (!$mol_wire_fiber.warm)
1206
1212
  return this.result();
1207
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1213
+ if ($mol_wire_auto()?.temp) {
1208
1214
  return this.once();
1209
1215
  }
1210
1216
  else {
@@ -1287,7 +1293,7 @@ var $;
1287
1293
  if ((args.length === 0) || (args[0] === undefined)) {
1288
1294
  if (!$mol_wire_fiber.warm)
1289
1295
  return atom.result();
1290
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1296
+ if ($mol_wire_auto()?.temp) {
1291
1297
  return atom.once();
1292
1298
  }
1293
1299
  else {
@@ -1324,7 +1330,7 @@ var $;
1324
1330
  if ((args.length === 1) || (args[1] === undefined)) {
1325
1331
  if (!$mol_wire_fiber.warm)
1326
1332
  return atom.result();
1327
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1333
+ if ($mol_wire_auto()?.temp) {
1328
1334
  return atom.once();
1329
1335
  }
1330
1336
  else {