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/resolution.rs | |
parent | 114ec3c1f71b40bd4bba473b0187e7c664ed1755 (diff) |
refactor: upgrade to deno_npm 0.6 (#19244)
Diffstat (limited to 'cli/npm/resolution.rs')
-rw-r--r-- | cli/npm/resolution.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/npm/resolution.rs b/cli/npm/resolution.rs index eba4069e7..66dfafb51 100644 --- a/cli/npm/resolution.rs +++ b/cli/npm/resolution.rs @@ -198,7 +198,7 @@ impl NpmResolution { .snapshot .read() .resolve_pkg_from_pkg_req(req) - .map(|pkg| pkg.pkg_id.clone()) + .map(|pkg| pkg.id.clone()) } pub fn resolve_pkg_id_from_deno_module( @@ -209,7 +209,7 @@ impl NpmResolution { .snapshot .read() .resolve_package_from_deno_module(id) - .map(|pkg| pkg.pkg_id.clone()) + .map(|pkg| pkg.id.clone()) } /// Resolves a package requirement for deno graph. This should only be @@ -326,7 +326,7 @@ fn populate_lockfile_from_snapshot( snapshot .resolve_package_from_deno_module(nv) .unwrap() - .pkg_id + .id .as_serialized(), ); } @@ -350,8 +350,8 @@ fn npm_package_to_lockfile_info( .collect(); NpmPackageLockfileInfo { - display_id: pkg.pkg_id.nv.to_string(), - serialized_id: pkg.pkg_id.as_serialized(), + display_id: pkg.id.nv.to_string(), + serialized_id: pkg.id.as_serialized(), integrity: pkg.dist.integrity().to_string(), dependencies, } |