From 626399127b1eba13ad954c89b873be2aa696653b 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 b670b403..2258c9f9 100644 --- a/lib/dependency.ts +++ b/lib/dependency.ts @@ -274,7 +274,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, }; } }