arp-tui 0.0.3 → 0.0.4
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/index.js +10 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1669,10 +1669,18 @@ function createStore(opts) {
|
|
|
1669
1669
|
let rawActivityByTurn = /* @__PURE__ */ new Map();
|
|
1670
1670
|
let activitySettleTimer = null;
|
|
1671
1671
|
function activityIsLive() {
|
|
1672
|
-
|
|
1672
|
+
const aKeys = Object.keys(state.activityByTurn);
|
|
1673
|
+
const lastA = aKeys[aKeys.length - 1];
|
|
1674
|
+
const rows = lastA !== void 0 ? state.activityByTurn[lastA] : void 0;
|
|
1675
|
+
if (rows) {
|
|
1673
1676
|
for (const r of rows) if (r.status === "pending" || r.status === "in_progress") return true;
|
|
1674
|
-
|
|
1677
|
+
}
|
|
1678
|
+
const pKeys = Object.keys(state.plansByTurn);
|
|
1679
|
+
const lastP = pKeys[pKeys.length - 1];
|
|
1680
|
+
const entries = lastP !== void 0 ? state.plansByTurn[lastP] : void 0;
|
|
1681
|
+
if (entries) {
|
|
1675
1682
|
for (const e of entries) if (e.status !== "completed") return true;
|
|
1683
|
+
}
|
|
1676
1684
|
return false;
|
|
1677
1685
|
}
|
|
1678
1686
|
function evictOldestTurns(rec) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arp-tui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "arp-tui",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.4",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ink": "^5.2.0",
|
package/package.json
CHANGED