mol_plot_all 1.2.295 → 1.2.298
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/README.md +1 -1
- package/node.deps.json +1 -1
- package/node.esm.js +5 -1
- package/node.esm.js.map +1 -1
- package/node.js +5 -1
- package/node.js.map +1 -1
- package/node.test.js +5 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +5 -1
- package/web.esm.js.map +1 -1
- package/web.js +5 -1
- package/web.js.map +1 -1
package/node.js
CHANGED
|
@@ -1709,7 +1709,8 @@ var $;
|
|
|
1709
1709
|
class $mol_wire_task extends $mol_wire_fiber {
|
|
1710
1710
|
static getter(task) {
|
|
1711
1711
|
return function $mol_wire_task_get(host, args) {
|
|
1712
|
-
const
|
|
1712
|
+
const sub = $mol_wire_auto();
|
|
1713
|
+
const existen = sub?.track_next();
|
|
1713
1714
|
reuse: if (existen) {
|
|
1714
1715
|
if (!(existen instanceof $mol_wire_task))
|
|
1715
1716
|
break reuse;
|
|
@@ -1721,6 +1722,9 @@ var $;
|
|
|
1721
1722
|
break reuse;
|
|
1722
1723
|
return existen;
|
|
1723
1724
|
}
|
|
1725
|
+
if (existen && sub instanceof $mol_wire_task) {
|
|
1726
|
+
$mol_fail(new Error(`$mol_wire_task detects nonidempotency\n${existen}`));
|
|
1727
|
+
}
|
|
1724
1728
|
return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
|
|
1725
1729
|
};
|
|
1726
1730
|
}
|