git-watchtower 1.9.14 → 1.9.16

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.
@@ -1647,7 +1647,6 @@ async function pollGitChanges() {
1647
1647
  const newInterval = Math.min(store.get('adaptivePollInterval') * 2, 60000);
1648
1648
  store.setState({ adaptivePollInterval: newInterval });
1649
1649
  addLog(`Polling interval increased to ${newInterval / 1000}s`, 'info');
1650
- restartPolling();
1651
1650
  } else if (lastFetchDuration > 15000 && !slowFetchWarningShown) {
1652
1651
  addLog(`Fetches taking ${Math.round(lastFetchDuration / 1000)}s`, 'warning');
1653
1652
  slowFetchWarningShown = true;
@@ -1658,7 +1657,6 @@ async function pollGitChanges() {
1658
1657
  if (store.get('adaptivePollInterval') > GIT_POLL_INTERVAL) {
1659
1658
  store.setState({ adaptivePollInterval: GIT_POLL_INTERVAL });
1660
1659
  addLog(`Polling interval restored to ${GIT_POLL_INTERVAL / 1000}s`, 'info');
1661
- restartPolling();
1662
1660
  }
1663
1661
  }
1664
1662
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.9.14",
3
+ "version": "1.9.16",
4
4
  "description": "Terminal-based Git branch monitor with activity sparklines and optional dev server with live reload",
5
5
  "main": "bin/git-watchtower.js",
6
6
  "bin": {
@@ -355,7 +355,7 @@ class Store {
355
355
  */
356
356
  addLog(message, type = 'info', maxEntries = 10) {
357
357
  const entry = { message, type, timestamp: new Date() };
358
- const activityLog = [...this.state.activityLog, entry].slice(-maxEntries);
358
+ const activityLog = [entry, ...this.state.activityLog].slice(0, maxEntries);
359
359
  this.setState({ activityLog });
360
360
  }
361
361