fix(jsr): exclude yanked versions from 'deno add' and completions (#23113)

This commit is contained in:
Nayeem Rahman 2024-03-28 19:02:07 +00:00 committed by GitHub
parent bca0fe1cde
commit d347e73f5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 6 deletions

View file

@ -119,7 +119,7 @@ impl NpmFetchResolver {
let maybe_get_nv = || async {
let name = req.name.clone();
let package_info = self.package_info(&name).await?;
// Find the first matching version of the package which is cached.
// Find the first matching version of the package.
let mut versions = package_info.versions.keys().collect::<Vec<_>>();
versions.sort();
let version = versions