mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-05 07:46:10 -04:00
fix: remove redundant mirror slash (#10204)
This commit is contained in:
6
.changeset/silver-geckos-hunt.md
Normal file
6
.changeset/silver-geckos-hunt.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/node.resolver": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Don't add an extra slash to the Node.js mirror URL [#10204](https://github.com/pnpm/pnpm/pull/10204).
|
||||
2
env/node.resolver/src/index.ts
vendored
2
env/node.resolver/src/index.ts
vendored
@@ -59,7 +59,7 @@ export async function resolveNodeRuntime (
|
||||
}
|
||||
|
||||
async function readNodeAssets (fetch: FetchFromRegistry, nodeMirrorBaseUrl: string, version: string): Promise<PlatformAssetResolution[]> {
|
||||
const integritiesFileUrl = `${nodeMirrorBaseUrl}/v${version}/SHASUMS256.txt`
|
||||
const integritiesFileUrl = `${nodeMirrorBaseUrl}v${version}/SHASUMS256.txt`
|
||||
const shasumsFileItems = await fetchShasumsFile(fetch, integritiesFileUrl)
|
||||
const escaped = version.replace(/\\/g, '\\\\').replace(/\./g, '\\.')
|
||||
const pattern = new RegExp(`^node-v${escaped}-([^-.]+)-([^.]+)\\.(?:tar\\.gz|zip)$`)
|
||||
|
||||
Reference in New Issue
Block a user