From 156fbf1102f37eff545f33a4c74611be374ae555 Mon Sep 17 00:00:00 2001 From: hasundue Date: Wed, 6 Mar 2024 17:53:08 +0900 Subject: [PATCH] fix: preserve trailing slashes in import URLs --- lib/dependency.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dependency.ts b/lib/dependency.ts index 1a4e7964..ff28a7eb 100644 --- a/lib/dependency.ts +++ b/lib/dependency.ts @@ -268,7 +268,7 @@ async function _resolveLatestVersion( ...latest, // Preserve the original path if it is the root, which is unlikely to be // included in the redirected URL. - // path: dependency.path === "/" ? "/" : latest.path, + path: dependency.path === "/" ? "/" : latest.path, }; } }