git-watchtower 1.9.15 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.9.15",
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