Skip to content

Commit

Permalink
Fixes url.resolve join
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Mar 10, 2022
1 parent 2d73345 commit 64e931d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "yarn",
"installationMethod": "unknown",
"version": "1.22.17",
"packageManager": "yarn@1.22.17",
"license": "BSD-2-Clause",
"preferGlobal": true,
"description": "📦🐈 Fast, reliable, and secure dependency management.",
Expand Down
2 changes: 1 addition & 1 deletion src/registries/npm-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class NpmRegistry extends Registry {
let resolved = pathname;

if (!REGEX_REGISTRY_PREFIX.test(pathname)) {
resolved = url.resolve(addSuffix(registry, '/'), pathname);
resolved = url.resolve(addSuffix(registry, '/'), `./${pathname}`);
}

if (REGEX_REGISTRY_ENFORCED_HTTPS.test(resolved)) {
Expand Down

0 comments on commit 64e931d

Please sign in to comment.