mol_wire_lib 1.0.1059 → 1.0.1060
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 +8 -8
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +15 -15
- package/node.js.map +1 -1
- package/node.mjs +15 -15
- package/node.test.js +24 -24
- package/node.test.js.map +1 -1
- package/package.json +3 -3
- package/web.d.ts +17 -17
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +50 -50
- package/web.js.map +1 -1
- package/web.mjs +50 -50
- package/web.test.js +8 -8
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -575,41 +575,21 @@ var $;
|
|
|
575
575
|
"use strict";
|
|
576
576
|
var $;
|
|
577
577
|
(function ($) {
|
|
578
|
-
class $
|
|
578
|
+
class $mol_after_timeout extends $mol_object2 {
|
|
579
|
+
delay;
|
|
579
580
|
task;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
if (this._promise)
|
|
583
|
-
return this._promise;
|
|
584
|
-
return this._promise = new Promise(done => {
|
|
585
|
-
const complete = () => {
|
|
586
|
-
this._promise = null;
|
|
587
|
-
done();
|
|
588
|
-
};
|
|
589
|
-
if (typeof requestAnimationFrame === 'function') {
|
|
590
|
-
requestAnimationFrame(complete);
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
setTimeout(complete, 16);
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
cancelled = false;
|
|
598
|
-
promise;
|
|
599
|
-
constructor(task) {
|
|
581
|
+
id;
|
|
582
|
+
constructor(delay, task) {
|
|
600
583
|
super();
|
|
584
|
+
this.delay = delay;
|
|
601
585
|
this.task = task;
|
|
602
|
-
this.
|
|
603
|
-
if (this.cancelled)
|
|
604
|
-
return;
|
|
605
|
-
task();
|
|
606
|
-
});
|
|
586
|
+
this.id = setTimeout(task, delay);
|
|
607
587
|
}
|
|
608
588
|
destructor() {
|
|
609
|
-
this.
|
|
589
|
+
clearTimeout(this.id);
|
|
610
590
|
}
|
|
611
591
|
}
|
|
612
|
-
$.$
|
|
592
|
+
$.$mol_after_timeout = $mol_after_timeout;
|
|
613
593
|
})($ || ($ = {}));
|
|
614
594
|
|
|
615
595
|
;
|
|
@@ -637,7 +617,7 @@ var $;
|
|
|
637
617
|
static plan() {
|
|
638
618
|
if (this.plan_task)
|
|
639
619
|
return;
|
|
640
|
-
this.plan_task = new $
|
|
620
|
+
this.plan_task = new $mol_after_timeout(0, () => {
|
|
641
621
|
try {
|
|
642
622
|
this.sync();
|
|
643
623
|
}
|
|
@@ -1167,6 +1147,47 @@ var $;
|
|
|
1167
1147
|
$.$mol_key = $mol_key;
|
|
1168
1148
|
})($ || ($ = {}));
|
|
1169
1149
|
|
|
1150
|
+
;
|
|
1151
|
+
"use strict";
|
|
1152
|
+
var $;
|
|
1153
|
+
(function ($) {
|
|
1154
|
+
class $mol_after_frame extends $mol_object2 {
|
|
1155
|
+
task;
|
|
1156
|
+
static _promise = null;
|
|
1157
|
+
static get promise() {
|
|
1158
|
+
if (this._promise)
|
|
1159
|
+
return this._promise;
|
|
1160
|
+
return this._promise = new Promise(done => {
|
|
1161
|
+
const complete = () => {
|
|
1162
|
+
this._promise = null;
|
|
1163
|
+
done();
|
|
1164
|
+
};
|
|
1165
|
+
if (typeof requestAnimationFrame === 'function') {
|
|
1166
|
+
requestAnimationFrame(complete);
|
|
1167
|
+
}
|
|
1168
|
+
else {
|
|
1169
|
+
setTimeout(complete, 16);
|
|
1170
|
+
}
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
cancelled = false;
|
|
1174
|
+
promise;
|
|
1175
|
+
constructor(task) {
|
|
1176
|
+
super();
|
|
1177
|
+
this.task = task;
|
|
1178
|
+
this.promise = $mol_after_frame.promise.then(() => {
|
|
1179
|
+
if (this.cancelled)
|
|
1180
|
+
return;
|
|
1181
|
+
task();
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
destructor() {
|
|
1185
|
+
this.cancelled = true;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
$.$mol_after_frame = $mol_after_frame;
|
|
1189
|
+
})($ || ($ = {}));
|
|
1190
|
+
|
|
1170
1191
|
;
|
|
1171
1192
|
"use strict";
|
|
1172
1193
|
var $;
|
|
@@ -1647,27 +1668,6 @@ var $;
|
|
|
1647
1668
|
$.$mol_mem_key = $mol_wire_plex;
|
|
1648
1669
|
})($ || ($ = {}));
|
|
1649
1670
|
|
|
1650
|
-
;
|
|
1651
|
-
"use strict";
|
|
1652
|
-
var $;
|
|
1653
|
-
(function ($) {
|
|
1654
|
-
class $mol_after_timeout extends $mol_object2 {
|
|
1655
|
-
delay;
|
|
1656
|
-
task;
|
|
1657
|
-
id;
|
|
1658
|
-
constructor(delay, task) {
|
|
1659
|
-
super();
|
|
1660
|
-
this.delay = delay;
|
|
1661
|
-
this.task = task;
|
|
1662
|
-
this.id = setTimeout(task, delay);
|
|
1663
|
-
}
|
|
1664
|
-
destructor() {
|
|
1665
|
-
clearTimeout(this.id);
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
$.$mol_after_timeout = $mol_after_timeout;
|
|
1669
|
-
})($ || ($ = {}));
|
|
1670
|
-
|
|
1671
1671
|
;
|
|
1672
1672
|
"use strict";
|
|
1673
1673
|
var $;
|
package/web.test.js
CHANGED
|
@@ -1115,7 +1115,7 @@ var $;
|
|
|
1115
1115
|
var $;
|
|
1116
1116
|
(function ($_1) {
|
|
1117
1117
|
$mol_test_mocks.push($ => {
|
|
1118
|
-
$.$
|
|
1118
|
+
$.$mol_after_timeout = $mol_after_mock_timeout;
|
|
1119
1119
|
});
|
|
1120
1120
|
})($ || ($ = {}));
|
|
1121
1121
|
|
|
@@ -1264,24 +1264,24 @@ var $;
|
|
|
1264
1264
|
|
|
1265
1265
|
;
|
|
1266
1266
|
"use strict";
|
|
1267
|
+
var $;
|
|
1268
|
+
(function ($_1) {
|
|
1269
|
+
$mol_test_mocks.push($ => {
|
|
1270
|
+
$.$mol_after_frame = $mol_after_mock_commmon;
|
|
1271
|
+
});
|
|
1272
|
+
})($ || ($ = {}));
|
|
1267
1273
|
|
|
1268
1274
|
;
|
|
1269
1275
|
"use strict";
|
|
1270
1276
|
|
|
1271
1277
|
;
|
|
1272
1278
|
"use strict";
|
|
1273
|
-
var $;
|
|
1274
|
-
(function ($_1) {
|
|
1275
|
-
$mol_test_mocks.push($ => $.$mol_fail_log = () => false);
|
|
1276
|
-
})($ || ($ = {}));
|
|
1277
1279
|
|
|
1278
1280
|
;
|
|
1279
1281
|
"use strict";
|
|
1280
1282
|
var $;
|
|
1281
1283
|
(function ($_1) {
|
|
1282
|
-
$mol_test_mocks.push($ =>
|
|
1283
|
-
$.$mol_after_timeout = $mol_after_mock_timeout;
|
|
1284
|
-
});
|
|
1284
|
+
$mol_test_mocks.push($ => $.$mol_fail_log = () => false);
|
|
1285
1285
|
})($ || ($ = {}));
|
|
1286
1286
|
|
|
1287
1287
|
;
|