hyoo_sync_client 0.0.535 → 0.0.536
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
|
@@ -1447,7 +1447,7 @@ var $;
|
|
|
1447
1447
|
}
|
|
1448
1448
|
return this.cache;
|
|
1449
1449
|
}
|
|
1450
|
-
async
|
|
1450
|
+
async async_raw() {
|
|
1451
1451
|
while (true) {
|
|
1452
1452
|
this.fresh();
|
|
1453
1453
|
if (this.cache instanceof Error) {
|
|
@@ -1463,6 +1463,12 @@ var $;
|
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
+
async() {
|
|
1467
|
+
const promise = this.async_raw();
|
|
1468
|
+
if (!promise.destructor)
|
|
1469
|
+
promise.destructor = () => this.destructor();
|
|
1470
|
+
return promise;
|
|
1471
|
+
}
|
|
1466
1472
|
step() {
|
|
1467
1473
|
return new Promise(done => {
|
|
1468
1474
|
const sub = new $mol_wire_pub_sub;
|