diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-24 16:23:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 16:23:10 -0400 |
commit | 91ca9904b57db275a51a81ad71b1ee9fe42c7cda (patch) | |
tree | da6b478939b6bdf5a11f57a5a92f1dad8905fca5 /cli/npm/resolvers/common.rs | |
parent | 114ec3c1f71b40bd4bba473b0187e7c664ed1755 (diff) |
refactor: upgrade to deno_npm 0.6 (#19244)
Diffstat (limited to 'cli/npm/resolvers/common.rs')
-rw-r--r-- | cli/npm/resolvers/common.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/npm/resolvers/common.rs b/cli/npm/resolvers/common.rs index abfdd6371..b352229c1 100644 --- a/cli/npm/resolvers/common.rs +++ b/cli/npm/resolvers/common.rs @@ -64,7 +64,7 @@ pub async fn cache_packages( if sync_download { // we're running the tests not with --quiet // and we want the output to be deterministic - packages.sort_by(|a, b| a.pkg_id.cmp(&b.pkg_id)); + packages.sort_by(|a, b| a.id.cmp(&b.id)); } let mut handles = Vec::with_capacity(packages.len()); @@ -73,7 +73,7 @@ pub async fn cache_packages( let registry_url = registry_url.clone(); let handle = spawn(async move { cache - .ensure_package(&package.pkg_id.nv, &package.dist, ®istry_url) + .ensure_package(&package.id.nv, &package.dist, ®istry_url) .await }); if sync_download { |