From a44349dfdfecacdd4ccd343a984b05abb728bf88 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 8 Jan 2021 03:08:51 +0100 Subject: feat: denort binary (#9041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek IwaƄczuk --- cli/program_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/program_state.rs') diff --git a/cli/program_state.rs b/cli/program_state.rs index 896f4d7b4..ad44d8e9b 100644 --- a/cli/program_state.rs +++ b/cli/program_state.rs @@ -5,7 +5,6 @@ use crate::file_fetcher::CacheSetting; use crate::file_fetcher::FileFetcher; use crate::flags; use crate::http_cache; -use crate::http_util; use crate::import_map::ImportMap; use crate::lockfile::Lockfile; use crate::module_graph::CheckOptions; @@ -14,6 +13,7 @@ use crate::module_graph::TranspileOptions; use crate::module_graph::TypeLib; use crate::source_maps::SourceMapGetter; use crate::specifier_handler::FetchHandler; +use crate::version; use deno_runtime::inspector::InspectorServer; use deno_runtime::permissions::Permissions; @@ -106,7 +106,7 @@ impl ProgramState { let maybe_inspector_server = match maybe_inspect_host { Some(host) => Some(Arc::new(InspectorServer::new( host, - http_util::get_user_agent(), + version::get_user_agent(), ))), None => None, }; -- cgit v1.2.3