diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-08-21 11:53:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-21 09:53:52 +0000 |
| commit | 5834d282d4de5d0b5cacb9bf068f3896bef0a48a (patch) | |
| tree | 0e1d15e9f81600ce3c910a70c6e7c12952778f72 /cli/tools/installer.rs | |
| parent | af125c8e700eacc7360b3d81ffe4de13e12a612a (diff) | |
refactor: upgrade deno_ast 0.28 and deno_semver 0.4 (#20193)
Diffstat (limited to 'cli/tools/installer.rs')
| -rw-r--r-- | cli/tools/installer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs index 03c2ffdcf..cabae9e28 100644 --- a/cli/tools/installer.rs +++ b/cli/tools/installer.rs @@ -140,6 +140,7 @@ pub async fn infer_name_from_url(url: &Url) -> Option<String> { } if let Ok(npm_ref) = NpmPackageReqReference::from_specifier(&url) { + let npm_ref = npm_ref.into_inner(); if let Some(sub_path) = npm_ref.sub_path { if !sub_path.contains('/') { return Some(sub_path); |
