Browse Source

npmsearch: fix broken version handling

pull/8/head
DanielFGray 1 year ago
parent
commit
ed1f86f0c7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      npmsearch

+ 1
- 1
npmsearch View File

@@ -107,7 +107,7 @@ case "${key,,}" in
ctrl-g) global=1 ;;
ctrl-v)
package="${packages[1]%% *}"
version=$(
mapfile -t version < <(
npm -s --json view "$package" |
jq -r '.versions[]' | # label with .dist-tags?
fzf --header="choose version for $package | C-d saves as devDependency" --tac --expect='ctrl-d,esc')

Loading…
Cancel
Save