From 0e3f62d4446ae7b9a64dacf7befcaecede118222 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 12 Apr 2023 08:36:11 -0400 Subject: fix(npm): cache bust npm specifiers more aggressively (#18636) Part 1: #18622 Part 2: This PR Closes #16901 --------- Co-authored-by: Luca Casonato --- cli/args/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/args') diff --git a/cli/args/mod.rs b/cli/args/mod.rs index 20c382622..7029d6614 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -64,8 +64,8 @@ use std::sync::Arc; use crate::cache::DenoDir; use crate::file_fetcher::FileFetcher; +use crate::npm::CliNpmRegistryApi; use crate::npm::NpmProcessState; -use crate::npm::NpmRegistry; use crate::util::fs::canonicalize_path_maybe_not_exists; use crate::version; @@ -746,7 +746,7 @@ impl CliOptions { pub async fn resolve_npm_resolution_snapshot( &self, - api: &NpmRegistry, + api: &CliNpmRegistryApi, ) -> Result, AnyError> { if let Some(state) = &*NPM_PROCESS_STATE { // TODO(bartlomieju): remove this clone -- cgit v1.2.3