mol_jsx_lib 0.0.1169 → 0.0.1170
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
|
@@ -2225,17 +2225,20 @@ var $;
|
|
|
2225
2225
|
"use strict";
|
|
2226
2226
|
var $;
|
|
2227
2227
|
(function ($) {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
done
|
|
2233
|
-
fail
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2228
|
+
class $mol_promise extends Promise {
|
|
2229
|
+
done;
|
|
2230
|
+
fail;
|
|
2231
|
+
constructor(executor) {
|
|
2232
|
+
let done;
|
|
2233
|
+
let fail;
|
|
2234
|
+
super((d, f) => {
|
|
2235
|
+
done = d;
|
|
2236
|
+
fail = f;
|
|
2237
|
+
executor?.(d, f);
|
|
2238
|
+
});
|
|
2239
|
+
this.done = done;
|
|
2240
|
+
this.fail = fail;
|
|
2241
|
+
}
|
|
2239
2242
|
}
|
|
2240
2243
|
$.$mol_promise = $mol_promise;
|
|
2241
2244
|
})($ || ($ = {}));
|
|
@@ -2245,7 +2248,7 @@ var $;
|
|
|
2245
2248
|
var $;
|
|
2246
2249
|
(function ($) {
|
|
2247
2250
|
function $mol_wait_timeout_async(timeout) {
|
|
2248
|
-
const promise = $mol_promise();
|
|
2251
|
+
const promise = new $mol_promise();
|
|
2249
2252
|
const task = new this.$mol_after_timeout(timeout, () => promise.done());
|
|
2250
2253
|
return Object.assign(promise, {
|
|
2251
2254
|
destructor: () => task.destructor()
|