mol_jsx_lib 0.0.431 → 0.0.433
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.d.ts +4 -0
- package/node.deps.json +1 -1
- package/node.js +13 -7
- package/node.js.map +1 -1
- package/node.mjs +13 -7
- package/node.mjs.map +1 -1
- package/node.test.js +13 -7
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +4 -0
- package/web.deps.json +1 -1
- package/web.js +13 -7
- package/web.js.map +1 -1
- package/web.mjs +13 -7
- package/web.mjs.map +1 -1
package/node.test.js
CHANGED
|
@@ -1118,9 +1118,9 @@ var $;
|
|
|
1118
1118
|
"use strict";
|
|
1119
1119
|
var $;
|
|
1120
1120
|
(function ($) {
|
|
1121
|
-
|
|
1122
|
-
function $mol_wire_auto(next =
|
|
1123
|
-
return
|
|
1121
|
+
$.$mol_wire_auto_sub = null;
|
|
1122
|
+
function $mol_wire_auto(next = $.$mol_wire_auto_sub) {
|
|
1123
|
+
return $.$mol_wire_auto_sub = next;
|
|
1124
1124
|
}
|
|
1125
1125
|
$.$mol_wire_auto = $mol_wire_auto;
|
|
1126
1126
|
$.$mol_wire_affected = [];
|
|
@@ -1246,6 +1246,9 @@ var $;
|
|
|
1246
1246
|
class $mol_wire_pub_sub extends $mol_wire_pub {
|
|
1247
1247
|
pub_from = 0;
|
|
1248
1248
|
cursor = $mol_wire_cursor.stale;
|
|
1249
|
+
get temp() {
|
|
1250
|
+
return false;
|
|
1251
|
+
}
|
|
1249
1252
|
get pub_list() {
|
|
1250
1253
|
const res = [];
|
|
1251
1254
|
const max = this.cursor >= 0 ? this.cursor : this.sub_from;
|
|
@@ -1818,7 +1821,7 @@ var $;
|
|
|
1818
1821
|
const sub = $mol_wire_auto();
|
|
1819
1822
|
const existen = sub?.track_next();
|
|
1820
1823
|
reuse: if (existen) {
|
|
1821
|
-
if (existen.
|
|
1824
|
+
if (!existen.temp)
|
|
1822
1825
|
break reuse;
|
|
1823
1826
|
if (existen.host !== host)
|
|
1824
1827
|
break reuse;
|
|
@@ -1831,6 +1834,9 @@ var $;
|
|
|
1831
1834
|
return new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
|
|
1832
1835
|
};
|
|
1833
1836
|
}
|
|
1837
|
+
get temp() {
|
|
1838
|
+
return true;
|
|
1839
|
+
}
|
|
1834
1840
|
complete() {
|
|
1835
1841
|
if ($mol_promise_like(this.cache))
|
|
1836
1842
|
return;
|
|
@@ -1986,7 +1992,7 @@ var $;
|
|
|
1986
1992
|
return this.resync([...this.args, next]);
|
|
1987
1993
|
if (!$mol_wire_fiber.warm)
|
|
1988
1994
|
return this.result();
|
|
1989
|
-
if ($mol_wire_auto()?.
|
|
1995
|
+
if ($mol_wire_auto()?.temp) {
|
|
1990
1996
|
return this.once();
|
|
1991
1997
|
}
|
|
1992
1998
|
else {
|
|
@@ -2102,7 +2108,7 @@ var $;
|
|
|
2102
2108
|
if ((args.length === 0) || (args[0] === undefined)) {
|
|
2103
2109
|
if (!$mol_wire_fiber.warm)
|
|
2104
2110
|
return atom.result();
|
|
2105
|
-
if ($mol_wire_auto()?.
|
|
2111
|
+
if ($mol_wire_auto()?.temp) {
|
|
2106
2112
|
return atom.once();
|
|
2107
2113
|
}
|
|
2108
2114
|
else {
|
|
@@ -2139,7 +2145,7 @@ var $;
|
|
|
2139
2145
|
if ((args.length === 1) || (args[1] === undefined)) {
|
|
2140
2146
|
if (!$mol_wire_fiber.warm)
|
|
2141
2147
|
return atom.result();
|
|
2142
|
-
if ($mol_wire_auto()?.
|
|
2148
|
+
if ($mol_wire_auto()?.temp) {
|
|
2143
2149
|
return atom.once();
|
|
2144
2150
|
}
|
|
2145
2151
|
else {
|