mol_jsx_lib 0.0.661 → 0.0.663
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 +1 -0
- package/node.deps.json +1 -1
- package/node.js +13 -10
- package/node.js.map +1 -1
- package/node.mjs +13 -10
- package/node.test.js +13 -10
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -0
- package/web.deps.json +1 -1
- package/web.js +13 -10
- package/web.js.map +1 -1
- package/web.mjs +13 -10
package/web.mjs
CHANGED
|
@@ -1036,16 +1036,7 @@ var $;
|
|
|
1036
1036
|
}
|
|
1037
1037
|
if (!$mol_promise_like(this.cache))
|
|
1038
1038
|
return this.cache;
|
|
1039
|
-
await Promise.race([
|
|
1040
|
-
this.cache,
|
|
1041
|
-
new Promise(done => {
|
|
1042
|
-
const sub = new $mol_wire_pub_sub;
|
|
1043
|
-
const prev = sub.track_on();
|
|
1044
|
-
sub.track_next(this);
|
|
1045
|
-
sub.track_off(prev);
|
|
1046
|
-
sub.absorb = done;
|
|
1047
|
-
})
|
|
1048
|
-
]);
|
|
1039
|
+
await Promise.race([this.cache, this.step()]);
|
|
1049
1040
|
if (!$mol_promise_like(this.cache))
|
|
1050
1041
|
return this.cache;
|
|
1051
1042
|
if (this.cursor === $mol_wire_cursor.final) {
|
|
@@ -1053,6 +1044,18 @@ var $;
|
|
|
1053
1044
|
}
|
|
1054
1045
|
}
|
|
1055
1046
|
}
|
|
1047
|
+
step() {
|
|
1048
|
+
return new Promise(done => {
|
|
1049
|
+
const sub = new $mol_wire_pub_sub;
|
|
1050
|
+
const prev = sub.track_on();
|
|
1051
|
+
sub.track_next(this);
|
|
1052
|
+
sub.track_off(prev);
|
|
1053
|
+
sub.absorb = () => {
|
|
1054
|
+
done(null);
|
|
1055
|
+
sub.destructor();
|
|
1056
|
+
};
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1056
1059
|
}
|
|
1057
1060
|
$.$mol_wire_fiber = $mol_wire_fiber;
|
|
1058
1061
|
})($ || ($ = {}));
|