summaryrefslogtreecommitdiff
path: root/cli/util/progress_bar
diff options
context:
space:
mode:
Diffstat (limited to 'cli/util/progress_bar')
-rw-r--r--cli/util/progress_bar/renderer.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/util/progress_bar/renderer.rs b/cli/util/progress_bar/renderer.rs
index a83ceb333..6b08dada1 100644
--- a/cli/util/progress_bar/renderer.rs
+++ b/cli/util/progress_bar/renderer.rs
@@ -193,10 +193,16 @@ impl ProgressBarRenderer for TextOnlyProgressBarRenderer {
}
};
+ // TODO(@marvinhagemeister): We're trying to reconstruct the original
+ // specifier from the resolved one, but we lack the information about
+ // private registries URLs and other things here.
let message = display_entry
.message
.replace("https://registry.npmjs.org/", "npm:")
- .replace("https://jsr.io/", "jsr:");
+ .replace("https://jsr.io/", "jsr:")
+ .replace("%2f", "/")
+ .replace("%2F", "/");
+
display_str.push_str(
&colors::gray(format!(" - {}{}\n", message, bytes_text)).to_string(),
);