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/web.mjs CHANGED
@@ -302,9 +302,9 @@ var $;
302
302
  "use strict";
303
303
  var $;
304
304
  (function ($) {
305
- let auto = null;
306
- function $mol_wire_auto(next = auto) {
307
- return auto = next;
305
+ $.$mol_wire_auto_sub = null;
306
+ function $mol_wire_auto(next = $.$mol_wire_auto_sub) {
307
+ return $.$mol_wire_auto_sub = next;
308
308
  }
309
309
  $.$mol_wire_auto = $mol_wire_auto;
310
310
  $.$mol_wire_affected = [];
@@ -417,6 +417,9 @@ var $;
417
417
  class $mol_wire_pub_sub extends $mol_wire_pub {
418
418
  pub_from = 0;
419
419
  cursor = $mol_wire_cursor.stale;
420
+ get temp() {
421
+ return false;
422
+ }
420
423
  get pub_list() {
421
424
  const res = [];
422
425
  const max = this.cursor >= 0 ? this.cursor : this.sub_from;
@@ -1027,7 +1030,7 @@ var $;
1027
1030
  const sub = $mol_wire_auto();
1028
1031
  const existen = sub?.track_next();
1029
1032
  reuse: if (existen) {
1030
- if (!(existen instanceof $mol_wire_task))
1033
+ if (!existen.temp)
1031
1034
  break reuse;
1032
1035
  if (existen.host !== host)
1033
1036
  break reuse;
@@ -1040,6 +1043,9 @@ var $;
1040
1043
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1041
1044
  };
1042
1045
  }
1046
+ get temp() {
1047
+ return true;
1048
+ }
1043
1049
  complete() {
1044
1050
  if ($mol_promise_like(this.cache))
1045
1051
  return;
@@ -1195,7 +1201,7 @@ var $;
1195
1201
  return this.resync([...this.args, next]);
1196
1202
  if (!$mol_wire_fiber.warm)
1197
1203
  return this.result();
1198
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1204
+ if ($mol_wire_auto()?.temp) {
1199
1205
  return this.once();
1200
1206
  }
1201
1207
  else {
@@ -1278,7 +1284,7 @@ var $;
1278
1284
  if ((args.length === 0) || (args[0] === undefined)) {
1279
1285
  if (!$mol_wire_fiber.warm)
1280
1286
  return atom.result();
1281
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1287
+ if ($mol_wire_auto()?.temp) {
1282
1288
  return atom.once();
1283
1289
  }
1284
1290
  else {
@@ -1315,7 +1321,7 @@ var $;
1315
1321
  if ((args.length === 1) || (args[1] === undefined)) {
1316
1322
  if (!$mol_wire_fiber.warm)
1317
1323
  return atom.result();
1318
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1324
+ if ($mol_wire_auto()?.temp) {
1319
1325
  return atom.once();
1320
1326
  }
1321
1327
  else {