We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423c198 commit cd01abbCopy full SHA for cd01abb
.changeset/neat-toes-doubt.md
@@ -0,0 +1,7 @@
1
+---
2
+"@modern-js/codesmith": patch
3
4
+
5
+fix: remove custom registry end /
6
7
+fix: 移除自定义 registry 结尾 /
packages/core/src/utils/getNpmPackageInfo.ts
@@ -28,7 +28,7 @@ export async function getNpmPackageInfo(
28
}
29
const { registryUrl = await getNpmRegistry() } = options || {};
30
31
- const url = `${registryUrl}/${pkgName}/${pkgVersion}`;
+ const url = `${registryUrl.replace(/\/$/, '')}/${pkgName}/${pkgVersion}`;
32
33
const response = await timeoutPromise(
34
axios.get(url),
0 commit comments