diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-10-02 17:53:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 17:53:55 -0400 |
commit | 148694eb351ea3f733852b7786a3268617811e27 (patch) | |
tree | 0390f1dcf7bb9b013a5bf47b0b9b4ea9689ba1b5 /cli/lsp/npm.rs | |
parent | d5b6c636b09823bfaa97fe8cd382b654d85d2add (diff) |
refactor(npm): make `NpmCache`, `CliNpmRegistryApi`, and `NpmResolution` internal to `npm::managed` (#20764)
Diffstat (limited to 'cli/lsp/npm.rs')
-rw-r--r-- | cli/lsp/npm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/lsp/npm.rs b/cli/lsp/npm.rs index 0f2794e44..223bfa61d 100644 --- a/cli/lsp/npm.rs +++ b/cli/lsp/npm.rs @@ -12,8 +12,8 @@ use deno_npm::registry::NpmPackageInfo; use deno_runtime::permissions::PermissionsContainer; use serde::Deserialize; +use crate::args::npm_registry_default_url; use crate::file_fetcher::FileFetcher; -use crate::npm::CliNpmRegistryApi; #[async_trait::async_trait] pub trait NpmSearchApi { @@ -36,7 +36,7 @@ impl CliNpmSearchApi { pub fn new(file_fetcher: FileFetcher, custom_base_url: Option<Url>) -> Self { Self { base_url: custom_base_url - .unwrap_or_else(|| CliNpmRegistryApi::default_url().clone()), + .unwrap_or_else(|| npm_registry_default_url().clone()), file_fetcher, info_cache: Default::default(), search_cache: Default::default(), |