hyoo_sync_client 0.0.599 → 0.0.601
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 +5 -4
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +15 -12
- package/node.js.map +1 -1
- package/node.mjs +15 -12
- package/node.test.js +15 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +5 -4
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +15 -12
- package/web.js.map +1 -1
- package/web.mjs +15 -12
package/web.mjs
CHANGED
|
@@ -3600,17 +3600,20 @@ var $;
|
|
|
3600
3600
|
"use strict";
|
|
3601
3601
|
var $;
|
|
3602
3602
|
(function ($) {
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
done
|
|
3608
|
-
fail
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3603
|
+
class $mol_promise extends Promise {
|
|
3604
|
+
done;
|
|
3605
|
+
fail;
|
|
3606
|
+
constructor(executor) {
|
|
3607
|
+
let done;
|
|
3608
|
+
let fail;
|
|
3609
|
+
super((d, f) => {
|
|
3610
|
+
done = d;
|
|
3611
|
+
fail = f;
|
|
3612
|
+
executor?.(d, f);
|
|
3613
|
+
});
|
|
3614
|
+
this.done = done;
|
|
3615
|
+
this.fail = fail;
|
|
3616
|
+
}
|
|
3614
3617
|
}
|
|
3615
3618
|
$.$mol_promise = $mol_promise;
|
|
3616
3619
|
})($ || ($ = {}));
|
|
@@ -3641,7 +3644,7 @@ var $;
|
|
|
3641
3644
|
var $;
|
|
3642
3645
|
(function ($) {
|
|
3643
3646
|
function $mol_wait_timeout_async(timeout) {
|
|
3644
|
-
const promise = $mol_promise();
|
|
3647
|
+
const promise = new $mol_promise();
|
|
3645
3648
|
const task = new this.$mol_after_timeout(timeout, () => promise.done());
|
|
3646
3649
|
return Object.assign(promise, {
|
|
3647
3650
|
destructor: () => task.destructor()
|