git-watchtower 1.7.0 → 1.7.1

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.7.0",
3
+ "version": "1.7.1",
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": {
package/src/cli/args.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * @module cli/args
4
4
  */
5
5
 
6
- const PACKAGE_VERSION = '1.2.0';
6
+ const { version: PACKAGE_VERSION } = require('../../package.json');
7
7
 
8
8
  /**
9
9
  * @typedef {object} CliArgs
@@ -23,6 +23,7 @@ const {
23
23
  } = require('../ui/ansi');
24
24
  const { formatTimeAgo } = require('../utils/time');
25
25
  const { isBaseBranch } = require('../git/pr');
26
+ const { version: PACKAGE_VERSION } = require('../../package.json');
26
27
 
27
28
  // ---------------------------------------------------------------------------
28
29
  // renderHeader
@@ -46,8 +47,9 @@ function renderHeader(state, write) {
46
47
  write(ansi.moveTo(headerRow, 1));
47
48
  write(ansi.bgBlue + ansi.white + ansi.bold);
48
49
 
49
- const leftContent = ` \uD83C\uDFF0 Git Watchtower ${ansi.dim}\u2502${ansi.bold} ${state.projectName}`;
50
- const leftVisibleLen = 21 + state.projectName.length;
50
+ const versionStr = `v${PACKAGE_VERSION}`;
51
+ const leftContent = ` \uD83C\uDFF0 Git Watchtower ${ansi.dim}${versionStr} \u2502${ansi.bold} ${state.projectName}`;
52
+ const leftVisibleLen = 21 + versionStr.length + 1 + state.projectName.length;
51
53
  write(leftContent);
52
54
 
53
55
  let badges = '';