abledom 0.6.3 → 0.6.5
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/dist/esm/index.js +6 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/ts3.9/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1446,18 +1446,20 @@ var AbleDOM = class {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
let timeoutClear;
|
|
1448
1448
|
let timeoutResolve;
|
|
1449
|
+
let timedOut = false;
|
|
1449
1450
|
let timeoutPromise = timeout ? new Promise((resolve) => {
|
|
1450
1451
|
timeoutResolve = () => {
|
|
1451
1452
|
timeoutClear == null ? void 0 : timeoutClear();
|
|
1452
|
-
|
|
1453
|
-
resolve(null);
|
|
1453
|
+
resolve(this._getCurrentIssues(!!markAsRead));
|
|
1454
1454
|
};
|
|
1455
1455
|
let timeoutTimer = this._win.setTimeout(() => {
|
|
1456
1456
|
timeoutClear = void 0;
|
|
1457
|
+
timedOut = true;
|
|
1457
1458
|
timeoutResolve == null ? void 0 : timeoutResolve();
|
|
1458
1459
|
}, timeout);
|
|
1459
1460
|
timeoutClear = () => {
|
|
1460
1461
|
this._win.clearTimeout(timeoutTimer);
|
|
1462
|
+
timeoutResolve = void 0;
|
|
1461
1463
|
timeoutClear = void 0;
|
|
1462
1464
|
};
|
|
1463
1465
|
}) : void 0;
|
|
@@ -1466,8 +1468,8 @@ var AbleDOM = class {
|
|
|
1466
1468
|
this._idleResolve = () => {
|
|
1467
1469
|
delete this._idlePromise;
|
|
1468
1470
|
delete this._idleResolve;
|
|
1469
|
-
resolve(this._getCurrentIssues(!!markAsRead));
|
|
1470
|
-
|
|
1471
|
+
resolve(this._getCurrentIssues(timedOut ? false : !!markAsRead));
|
|
1472
|
+
timeoutClear == null ? void 0 : timeoutClear();
|
|
1471
1473
|
};
|
|
1472
1474
|
});
|
|
1473
1475
|
}
|