diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-01-08 03:08:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 03:08:51 +0100 |
commit | a44349dfdfecacdd4ccd343a984b05abb728bf88 (patch) | |
tree | 690b5047cc54d62ce27013ebb199e9bdc7de0937 /cli/program_state.rs | |
parent | e61e81eb57351782862aa50775ce4348f10b1856 (diff) |
feat: denort binary (#9041)
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 <biwanczuk@gmail.com>
Diffstat (limited to 'cli/program_state.rs')
-rw-r--r-- | cli/program_state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, }; |