mol_wire_lib 1.0.908 → 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 -18
- package/node.js.map +1 -1
- package/node.mjs +13 -18
- package/node.test.js +13 -18
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +13 -18
- package/web.js.map +1 -1
- package/web.mjs +13 -18
package/web.mjs
CHANGED
|
@@ -814,25 +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
|
-
e.message += '\n' + e.stack;
|
|
835
|
-
throw e;
|
|
836
830
|
}
|
|
837
831
|
}
|
|
838
832
|
step() {
|
|
@@ -1229,6 +1223,7 @@ var $;
|
|
|
1229
1223
|
if (!$mol_fail_catch(error))
|
|
1230
1224
|
return false;
|
|
1231
1225
|
console.error(error);
|
|
1226
|
+
console.error(error.stack);
|
|
1232
1227
|
return true;
|
|
1233
1228
|
}
|
|
1234
1229
|
$.$mol_fail_log = $mol_fail_log;
|