Skip to content

fix: only correct protocols when called from githost#177

Merged
lukekarrys merged 1 commit intorelease/v5from
lk/parse-all-protocols-v5
Oct 27, 2022
Merged

fix: only correct protocols when called from githost#177
lukekarrys merged 1 commit intorelease/v5from
lk/parse-all-protocols-v5

Conversation

@lukekarrys
Copy link
Copy Markdown
Contributor

@lukekarrys lukekarrys commented Oct 26, 2022

Now that hosted-git-info can be used to only parse a url, it should do so without treating any protocols in a special way. When called via hosted-git-info.fromUrl it will still pass in the object of preferred protocols, but when called via hosted-git-info.parseUrl it will accept all protocols, so that urls like file:../etc can be parsed.

Ref: npm/cli#5758

Also landing in v6 via #176.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants