This repository was archived by the owner on Jun 4, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1925,7 +1925,7 @@ fcs() {
19251925npm-global-update() {
19261926 # Define allowed package patterns (substring matches)
19271927 local allowed_patterns
1928- allowed_patterns=("claude-code" "gemini-cli" "qwen-code" "ccstatusline" "claude-code-router" "claudekit" "ccusage" "npm-check-updates" "playwright" "ccexp" "vibe-kanban" "claude-monitor")
1928+ allowed_patterns=("@anthropic-ai/ claude-code" "@google/ gemini-cli" "@ qwen-code/qwen-code " "ccstatusline" "claude-code-router" "claudekit" "ccusage" "npm-check-updates" "playwright" "ccexp" "vibe-kanban" "claude-monitor" "@vscode/vsce" "yaml-language-server" "typescript-language-server" "typescript" "corepack ")
19291929
19301930 echo "🔍 Checking for global package updates..."
19311931
@@ -1965,7 +1965,7 @@ npm-global-update() {
19651965 # Check if package matches any allowed pattern
19661966 local matches_pattern=false
19671967 for pattern in "${allowed_patterns[@]}"; do
1968- if [[ "$pkg_name" == * "$pattern"* ]]; then
1968+ if [[ "$pkg_name" == "$pattern" ]]; then # it was *"$pattern"*, but that's unsafe
19691969 matches_pattern=true
19701970 break
19711971 fi
You can’t perform that action at this time.
0 commit comments