newsline-cli 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/refresh.sh +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newsline-cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Locale-aware one-line news in your Claude Code status line — local, composes with your existing status line.",
5
5
  "bin": {
6
6
  "newsline": "newsline"
package/refresh.sh CHANGED
@@ -23,7 +23,7 @@ case "$API" in off|OFF|none|local) API="" ;; esac
23
23
  COUNT="${NEWSLINE_COUNT:-15}" # how many headlines to cache for rotation
24
24
  # Client version, sent to /feed as ?v= for the server-side update nudge.
25
25
  # Bump together with package.json when tagging a release.
26
- export NEWSLINE_VERSION="${NEWSLINE_VERSION:-1.0.3}"
26
+ export NEWSLINE_VERSION="${NEWSLINE_VERSION:-1.0.5}"
27
27
  LOCK="$CACHE_DIR/refresh.lock"
28
28
  mkdir -p "$CACHE_DIR" 2>/dev/null
29
29
 
@@ -108,8 +108,8 @@ print("" if (mv and cur and pv(cur) >= pv(mv)) else u.get("message", ""))
108
108
  ' "$RESOLVED" 2>/dev/null | tr -d '\000-\037')
109
109
  if [ -n "$msg" ]; then
110
110
  case "$HERE" in # install channel by where we live
111
- *"/node_modules/"*) ucmd="npm i -g newsline-cli" ;;
112
- *[Cc]ellar*|*linuxbrew*) ucmd="brew upgrade newsline" ;;
111
+ *"/node_modules/"*) ucmd="npm i -g newsline-cli@latest" ;;
112
+ *[Cc]ellar*|*linuxbrew*) ucmd="brew update && brew upgrade newsline" ;;
113
113
  *) ucmd="curl -fsSL https://raw.githubusercontent.com/itdar/newsline/master/install.sh | sh" ;;
114
114
  esac
115
115
  # yellow line, command in bold bright yellow — mirrors Claude Code's own update nudge