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/node.mjs
CHANGED
|
@@ -808,24 +808,19 @@ var $;
|
|
|
808
808
|
return this.cache;
|
|
809
809
|
}
|
|
810
810
|
async async() {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
await new Promise(() => { });
|
|
824
|
-
}
|
|
811
|
+
while (true) {
|
|
812
|
+
this.fresh();
|
|
813
|
+
if (this.cache instanceof Error) {
|
|
814
|
+
$mol_fail_hidden(this.cache);
|
|
815
|
+
}
|
|
816
|
+
if (!$mol_promise_like(this.cache))
|
|
817
|
+
return this.cache;
|
|
818
|
+
await Promise.race([this.cache, this.step()]);
|
|
819
|
+
if (!$mol_promise_like(this.cache))
|
|
820
|
+
return this.cache;
|
|
821
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
822
|
+
await new Promise(() => { });
|
|
825
823
|
}
|
|
826
|
-
}
|
|
827
|
-
catch (e) {
|
|
828
|
-
throw new Error(e.stack, { cause: e });
|
|
829
824
|
}
|
|
830
825
|
}
|
|
831
826
|
step() {
|
|
@@ -1682,6 +1677,7 @@ var $;
|
|
|
1682
1677
|
if (!$mol_fail_catch(error))
|
|
1683
1678
|
return false;
|
|
1684
1679
|
console.error(error);
|
|
1680
|
+
console.error(error.stack);
|
|
1685
1681
|
return true;
|
|
1686
1682
|
}
|
|
1687
1683
|
$.$mol_fail_log = $mol_fail_log;
|
package/node.test.js
CHANGED
|
@@ -799,24 +799,19 @@ var $;
|
|
|
799
799
|
return this.cache;
|
|
800
800
|
}
|
|
801
801
|
async async() {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
await new Promise(() => { });
|
|
815
|
-
}
|
|
802
|
+
while (true) {
|
|
803
|
+
this.fresh();
|
|
804
|
+
if (this.cache instanceof Error) {
|
|
805
|
+
$mol_fail_hidden(this.cache);
|
|
806
|
+
}
|
|
807
|
+
if (!$mol_promise_like(this.cache))
|
|
808
|
+
return this.cache;
|
|
809
|
+
await Promise.race([this.cache, this.step()]);
|
|
810
|
+
if (!$mol_promise_like(this.cache))
|
|
811
|
+
return this.cache;
|
|
812
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
813
|
+
await new Promise(() => { });
|
|
816
814
|
}
|
|
817
|
-
}
|
|
818
|
-
catch (e) {
|
|
819
|
-
throw new Error(e.stack, { cause: e });
|
|
820
815
|
}
|
|
821
816
|
}
|
|
822
817
|
step() {
|
|
@@ -1673,6 +1668,7 @@ var $;
|
|
|
1673
1668
|
if (!$mol_fail_catch(error))
|
|
1674
1669
|
return false;
|
|
1675
1670
|
console.error(error);
|
|
1671
|
+
console.error(error.stack);
|
|
1676
1672
|
return true;
|
|
1677
1673
|
}
|
|
1678
1674
|
$.$mol_fail_log = $mol_fail_log;
|