mol_plot_all 1.2.577 → 1.2.579

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.test.js CHANGED
@@ -309,9 +309,9 @@ var $;
309
309
  "use strict";
310
310
  var $;
311
311
  (function ($) {
312
- let auto = null;
313
- function $mol_wire_auto(next = auto) {
314
- return auto = next;
312
+ $.$mol_wire_auto_sub = null;
313
+ function $mol_wire_auto(next = $.$mol_wire_auto_sub) {
314
+ return $.$mol_wire_auto_sub = next;
315
315
  }
316
316
  $.$mol_wire_auto = $mol_wire_auto;
317
317
  $.$mol_wire_affected = [];
@@ -424,6 +424,9 @@ var $;
424
424
  class $mol_wire_pub_sub extends $mol_wire_pub {
425
425
  pub_from = 0;
426
426
  cursor = $mol_wire_cursor.stale;
427
+ get temp() {
428
+ return false;
429
+ }
427
430
  get pub_list() {
428
431
  const res = [];
429
432
  const max = this.cursor >= 0 ? this.cursor : this.sub_from;
@@ -1028,7 +1031,7 @@ var $;
1028
1031
  const sub = $mol_wire_auto();
1029
1032
  const existen = sub?.track_next();
1030
1033
  reuse: if (existen) {
1031
- if (!(existen instanceof $mol_wire_task))
1034
+ if (!existen.temp)
1032
1035
  break reuse;
1033
1036
  if (existen.host !== host)
1034
1037
  break reuse;
@@ -1041,6 +1044,9 @@ var $;
1041
1044
  return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1042
1045
  };
1043
1046
  }
1047
+ get temp() {
1048
+ return true;
1049
+ }
1044
1050
  complete() {
1045
1051
  if ($mol_promise_like(this.cache))
1046
1052
  return;
@@ -1196,7 +1202,7 @@ var $;
1196
1202
  return this.resync([...this.args, next]);
1197
1203
  if (!$mol_wire_fiber.warm)
1198
1204
  return this.result();
1199
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1205
+ if ($mol_wire_auto()?.temp) {
1200
1206
  return this.once();
1201
1207
  }
1202
1208
  else {
@@ -1279,7 +1285,7 @@ var $;
1279
1285
  if ((args.length === 0) || (args[0] === undefined)) {
1280
1286
  if (!$mol_wire_fiber.warm)
1281
1287
  return atom.result();
1282
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1288
+ if ($mol_wire_auto()?.temp) {
1283
1289
  return atom.once();
1284
1290
  }
1285
1291
  else {
@@ -1316,7 +1322,7 @@ var $;
1316
1322
  if ((args.length === 1) || (args[1] === undefined)) {
1317
1323
  if (!$mol_wire_fiber.warm)
1318
1324
  return atom.result();
1319
- if ($mol_wire_auto() instanceof $mol_wire_task) {
1325
+ if ($mol_wire_auto()?.temp) {
1320
1326
  return atom.once();
1321
1327
  }
1322
1328
  else {