mol_wire_lib 1.0.909 → 1.0.910
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.deps.json +1 -1
- package/node.js +13 -17
- package/node.js.map +1 -1
- package/node.mjs +13 -17
- package/node.test.js +13 -17
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +13 -17
- package/web.js.map +1 -1
- package/web.mjs +13 -17
package/web.mjs
CHANGED
|
@@ -814,24 +814,19 @@ var $;
|
|
|
814
814
|
return this.cache;
|
|
815
815
|
}
|
|
816
816
|
async async() {
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
await new Promise(() => { });
|
|
830
|
-
}
|
|
817
|
+
while (true) {
|
|
818
|
+
this.fresh();
|
|
819
|
+
if (this.cache instanceof Error) {
|
|
820
|
+
$mol_fail_hidden(this.cache);
|
|
821
|
+
}
|
|
822
|
+
if (!$mol_promise_like(this.cache))
|
|
823
|
+
return this.cache;
|
|
824
|
+
await Promise.race([this.cache, this.step()]);
|
|
825
|
+
if (!$mol_promise_like(this.cache))
|
|
826
|
+
return this.cache;
|
|
827
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
828
|
+
await new Promise(() => { });
|
|
831
829
|
}
|
|
832
|
-
}
|
|
833
|
-
catch (e) {
|
|
834
|
-
throw new Error(e.stack, { cause: e });
|
|
835
830
|
}
|
|
836
831
|
}
|
|
837
832
|
step() {
|
|
@@ -1228,6 +1223,7 @@ var $;
|
|
|
1228
1223
|
if (!$mol_fail_catch(error))
|
|
1229
1224
|
return false;
|
|
1230
1225
|
console.error(error);
|
|
1226
|
+
console.error(error.stack);
|
|
1231
1227
|
return true;
|
|
1232
1228
|
}
|
|
1233
1229
|
$.$mol_fail_log = $mol_fail_log;
|