Skip to content

fix: only correct protocols when called from githost - #176

Merged
lukekarrys merged 1 commit into
mainfrom
lk/parse-all-protocols
Oct 27, 2022
Merged

fix: only correct protocols when called from githost#176
lukekarrys merged 1 commit into
mainfrom
lk/parse-all-protocols

Conversation

@lukekarrys

@lukekarrys lukekarrys commented Oct 26, 2022

Copy link
Copy Markdown
Contributor

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 v5 via #177.

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