mol_jsx_lib 0.0.1081 → 0.0.1083
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 -1
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +7 -1
- package/node.js.map +1 -1
- package/node.mjs +7 -1
- package/node.test.js +7 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +4 -1
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +7 -1
- package/web.js.map +1 -1
- package/web.mjs +7 -1
package/web.mjs
CHANGED
|
@@ -1032,7 +1032,7 @@ var $;
|
|
|
1032
1032
|
}
|
|
1033
1033
|
return this.cache;
|
|
1034
1034
|
}
|
|
1035
|
-
async
|
|
1035
|
+
async async_raw() {
|
|
1036
1036
|
while (true) {
|
|
1037
1037
|
this.fresh();
|
|
1038
1038
|
if (this.cache instanceof Error) {
|
|
@@ -1048,6 +1048,12 @@ var $;
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
|
+
async() {
|
|
1052
|
+
const promise = this.async_raw();
|
|
1053
|
+
if (!promise.destructor)
|
|
1054
|
+
promise.destructor = () => this.destructor();
|
|
1055
|
+
return promise;
|
|
1056
|
+
}
|
|
1051
1057
|
step() {
|
|
1052
1058
|
return new Promise(done => {
|
|
1053
1059
|
const sub = new $mol_wire_pub_sub;
|