git-watchtower 2.3.14 → 2.3.15

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": "2.3.14",
3
+ "version": "2.3.15",
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": {
@@ -111,13 +111,12 @@ function disable() {
111
111
  // up to ~15 frames × 120 ms = 1.8 s after disable, and lossMessage stayed
112
112
  // set so isLossAnimating() reported true into the next session.
113
113
  resetLossState();
114
- // Drop the marquee render callback so a stale closure to the previous
115
- // session's render() doesn't survive across enable/disable cycles. In
116
- // production this is mostly hygiene (bin/git-watchtower.js wires the
117
- // callback exactly once at startup against a singleton render fn), but
118
- // tests that re-use the casino module saw the previous test's callback
119
- // persist into the next setRenderCallback assignment.
120
- marqueeCallback = null;
114
+ // KEEP marqueeCallback set across disable→enable cycles. The bin wires
115
+ // this callback exactly once at startup; nulling it here would mean a
116
+ // user-triggered casino toggle (off then on with `c`) would leave the
117
+ // marquee interval ticking with no render trigger, freezing the
118
+ // animation until some other event forced a redraw. The interval body
119
+ // is already gated on `casinoEnabled`, which is the source of truth.
121
120
  // Cancel any pending sound timeouts (jackpot bell chains, multi-play
122
121
  // mega-jackpot files) so audio doesn't continue after the user
123
122
  // toggled casino mode off — and so child processes from the file-play