mol_wire_lib 1.0.906 → 1.0.908
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 +18 -12
- package/node.js.map +1 -1
- package/node.mjs +18 -12
- package/node.test.js +18 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +18 -12
- package/web.js.map +1 -1
- package/web.mjs +18 -12
package/node.mjs
CHANGED
|
@@ -808,20 +808,26 @@ var $;
|
|
|
808
808
|
return this.cache;
|
|
809
809
|
}
|
|
810
810
|
async async() {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
811
|
+
try {
|
|
812
|
+
while (true) {
|
|
813
|
+
this.fresh();
|
|
814
|
+
if (this.cache instanceof Error) {
|
|
815
|
+
$mol_fail_hidden(this.cache);
|
|
816
|
+
}
|
|
817
|
+
if (!$mol_promise_like(this.cache))
|
|
818
|
+
return this.cache;
|
|
819
|
+
await Promise.race([this.cache, this.step()]);
|
|
820
|
+
if (!$mol_promise_like(this.cache))
|
|
821
|
+
return this.cache;
|
|
822
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
823
|
+
await new Promise(() => { });
|
|
824
|
+
}
|
|
823
825
|
}
|
|
824
826
|
}
|
|
827
|
+
catch (e) {
|
|
828
|
+
e.message += '\n' + e.stack;
|
|
829
|
+
throw e;
|
|
830
|
+
}
|
|
825
831
|
}
|
|
826
832
|
step() {
|
|
827
833
|
return new Promise(done => {
|
package/node.test.js
CHANGED
|
@@ -799,20 +799,26 @@ var $;
|
|
|
799
799
|
return this.cache;
|
|
800
800
|
}
|
|
801
801
|
async async() {
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
802
|
+
try {
|
|
803
|
+
while (true) {
|
|
804
|
+
this.fresh();
|
|
805
|
+
if (this.cache instanceof Error) {
|
|
806
|
+
$mol_fail_hidden(this.cache);
|
|
807
|
+
}
|
|
808
|
+
if (!$mol_promise_like(this.cache))
|
|
809
|
+
return this.cache;
|
|
810
|
+
await Promise.race([this.cache, this.step()]);
|
|
811
|
+
if (!$mol_promise_like(this.cache))
|
|
812
|
+
return this.cache;
|
|
813
|
+
if (this.cursor === $mol_wire_cursor.final) {
|
|
814
|
+
await new Promise(() => { });
|
|
815
|
+
}
|
|
814
816
|
}
|
|
815
817
|
}
|
|
818
|
+
catch (e) {
|
|
819
|
+
e.message += '\n' + e.stack;
|
|
820
|
+
throw e;
|
|
821
|
+
}
|
|
816
822
|
}
|
|
817
823
|
step() {
|
|
818
824
|
return new Promise(done => {
|