From 84a96110cd8e74228fbab666e7af49edb7e24cc9 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 5 Feb 2023 17:49:20 +0100 Subject: refactor: rename `deno` specifiers to `internal` (#17655) --- cli/args/config_file.rs | 2 +- cli/args/flags_allow_net.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/args') diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs index 160b02317..7bf568d55 100644 --- a/cli/args/config_file.rs +++ b/cli/args/config_file.rs @@ -925,7 +925,7 @@ pub fn get_ts_config_for_emit( "sourceMap": false, "strict": true, "target": "esnext", - "tsBuildInfoFile": "deno:///.tsbuildinfo", + "tsBuildInfoFile": "internal:///.tsbuildinfo", "useDefineForClassFields": true, // TODO(@kitsonk) remove for Deno 2.0 "useUnknownInCatchVariables": false, diff --git a/cli/args/flags_allow_net.rs b/cli/args/flags_allow_net.rs index 88d9d3c02..94699cc8b 100644 --- a/cli/args/flags_allow_net.rs +++ b/cli/args/flags_allow_net.rs @@ -27,7 +27,7 @@ impl FromStr for BarePort { } pub fn validator(host_and_port: &str) -> Result<(), String> { - if Url::parse(&format!("deno://{host_and_port}")).is_ok() + if Url::parse(&format!("internal://{host_and_port}")).is_ok() || host_and_port.parse::().is_ok() || host_and_port.parse::().is_ok() { @@ -43,7 +43,7 @@ pub fn validator(host_and_port: &str) -> Result<(), String> { pub fn parse(paths: Vec) -> clap::Result> { let mut out: Vec = vec![]; for host_and_port in paths.iter() { - if Url::parse(&format!("deno://{host_and_port}")).is_ok() + if Url::parse(&format!("internal://{host_and_port}")).is_ok() || host_and_port.parse::().is_ok() { out.push(host_and_port.to_owned()) -- cgit v1.2.3