Skip to content

Commit 64e931d

Browse files
committed
Fixes url.resolve join
1 parent 2d73345 commit 64e931d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "yarn",
33
"installationMethod": "unknown",
44
"version": "1.22.17",
5+
"packageManager": "yarn@1.22.17",
56
"license": "BSD-2-Clause",
67
"preferGlobal": true,
78
"description": "📦🐈 Fast, reliable, and secure dependency management.",

src/registries/npm-registry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default class NpmRegistry extends Registry {
116116
let resolved = pathname;
117117

118118
if (!REGEX_REGISTRY_PREFIX.test(pathname)) {
119-
resolved = url.resolve(addSuffix(registry, '/'), pathname);
119+
resolved = url.resolve(addSuffix(registry, '/'), `./${pathname}`);
120120
}
121121

122122
if (REGEX_REGISTRY_ENFORCED_HTTPS.test(resolved)) {

0 commit comments

Comments
 (0)