Browse Source

npmsearch: fix broken version handling

pull/8/head
DanielFGray 5 years ago
parent
commit
ed1f86f0c7
  1. 2
      npmsearch

2
npmsearch

@ -107,7 +107,7 @@ case "${key,,}" in @@ -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