git-watchtower 1.10.7 → 1.10.9

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.10.7",
3
+ "version": "1.10.9",
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": {
@@ -1241,10 +1241,12 @@ ${pureFnBlock}
1241
1241
  });
1242
1242
 
1243
1243
  // Search input handler
1244
+ let _searchDebounce = null;
1244
1245
  document.getElementById('search-input').addEventListener('input', (e) => {
1245
1246
  ui.searchQuery = e.target.value;
1246
1247
  ui.selectedIndex = 0;
1247
- renderBranches();
1248
+ clearTimeout(_searchDebounce);
1249
+ _searchDebounce = setTimeout(() => renderBranches(), 80);
1248
1250
  });
1249
1251
 
1250
1252
  function moveSelection(delta) {
@@ -18,7 +18,7 @@
18
18
  */
19
19
  function escHtml(s) {
20
20
  if (!s) return '';
21
- return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');
21
+ return String(s).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');
22
22
  }
23
23
 
24
24
  /**