mol_wire_lib 1.0.1304 → 1.0.1306
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
|
@@ -1966,17 +1966,20 @@ var $;
|
|
|
1966
1966
|
"use strict";
|
|
1967
1967
|
var $;
|
|
1968
1968
|
(function ($) {
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
done
|
|
1974
|
-
fail
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1969
|
+
class $mol_promise extends Promise {
|
|
1970
|
+
done;
|
|
1971
|
+
fail;
|
|
1972
|
+
constructor(executor) {
|
|
1973
|
+
let done;
|
|
1974
|
+
let fail;
|
|
1975
|
+
super((d, f) => {
|
|
1976
|
+
done = d;
|
|
1977
|
+
fail = f;
|
|
1978
|
+
executor?.(d, f);
|
|
1979
|
+
});
|
|
1980
|
+
this.done = done;
|
|
1981
|
+
this.fail = fail;
|
|
1982
|
+
}
|
|
1980
1983
|
}
|
|
1981
1984
|
$.$mol_promise = $mol_promise;
|
|
1982
1985
|
})($ || ($ = {}));
|
|
@@ -1986,7 +1989,7 @@ var $;
|
|
|
1986
1989
|
var $;
|
|
1987
1990
|
(function ($) {
|
|
1988
1991
|
function $mol_wait_timeout_async(timeout) {
|
|
1989
|
-
const promise = $mol_promise();
|
|
1992
|
+
const promise = new $mol_promise();
|
|
1990
1993
|
const task = new this.$mol_after_timeout(timeout, () => promise.done());
|
|
1991
1994
|
return Object.assign(promise, {
|
|
1992
1995
|
destructor: () => task.destructor()
|