@timmy6942025/cli-timer 1.1.1 → 1.1.2

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/README.md CHANGED
@@ -114,3 +114,5 @@ Controls in settings UI:
114
114
  - `/`: filter fonts in font picker
115
115
  - `/`: filter keys in key picker
116
116
  - `Esc`/`q`: back/cancel
117
+
118
+ Note for macOS: If system notifications are inconsistent with built-in AppleScript notifications, install `terminal-notifier` (`brew install terminal-notifier`) for improved reliability.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timmy6942025/cli-timer",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Simple customizable terminal timer and stopwatch",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -490,11 +490,11 @@ function sendSystemNotification({ title, message }) {
490
490
 
491
491
  try {
492
492
  if (process.platform === "darwin") {
493
- const script = `display notification "${escapeAppleScriptString(safeMessage)}" with title "${escapeAppleScriptString(safeTitle)}"`;
494
- if (spawnOk("osascript", ["-e", script])) {
493
+ if (spawnOk("terminal-notifier", ["-title", safeTitle, "-message", safeMessage])) {
495
494
  return true;
496
495
  }
497
- if (spawnOk("terminal-notifier", ["-title", safeTitle, "-message", safeMessage])) {
496
+ const script = `display notification "${escapeAppleScriptString(safeMessage)}" with title "${escapeAppleScriptString(safeTitle)}"`;
497
+ if (spawnOk("osascript", ["-e", script])) {
498
498
  return true;
499
499
  }
500
500
  return false;