Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): bump hosted-git-info from 5.0.0 to 5.1.0 #645

Merged
merged 2 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2674,6 +2674,7 @@ var require_git_host_info = __commonJS({
var defaults = {
sshtemplate: ({ domain, user, project, committish }) => `git@${domain}:${user}/${project}.git${maybeJoin("#", committish)}`,
sshurltemplate: ({ domain, user, project, committish }) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
edittemplate: ({ domain, user, project, committish, editpath, path }) => `https://${domain}/${user}/${project}${maybeJoin("/", editpath, "/", maybeEncode(committish || "master"), "/", path)}`,
browsetemplate: ({ domain, user, project, committish, treepath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}`,
browsefiletemplate: ({ domain, user, project, committish, treepath, path, fragment, hashformat }) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "master")}/${path}${maybeJoin("#", hashformat(fragment || ""))}`,
docstemplate: ({ domain, user, project, treepath, committish }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`,
Expand All @@ -2689,6 +2690,7 @@ var require_git_host_info = __commonJS({
protocols: ["git:", "http:", "git+ssh:", "git+https:", "ssh:", "https:"],
domain: "github.com",
treepath: "tree",
editpath: "edit",
filetemplate: ({ auth, user, project, committish, path }) => `https://${maybeJoin(auth, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || "master"}/${path}`,
gittemplate: ({ auth, domain, user, project, committish }) => `git://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
tarballtemplate: ({ domain, user, project, committish }) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || "master"}`,
Expand All @@ -2713,6 +2715,8 @@ var require_git_host_info = __commonJS({
protocols: ["git+ssh:", "git+https:", "ssh:", "https:"],
domain: "bitbucket.org",
treepath: "src",
editpath: "?mode=edit",
edittemplate: ({ domain, user, project, committish, treepath, path, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish || "master"), "/", path, editpath)}`,
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || "master"}.tar.gz`,
extract: (url) => {
let [, user, project, aux] = url.pathname.split("/", 4);
Expand All @@ -2732,6 +2736,7 @@ var require_git_host_info = __commonJS({
protocols: ["git+ssh:", "git+https:", "ssh:", "https:"],
domain: "gitlab.com",
treepath: "tree",
editpath: "-/edit",
httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`,
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || "master"}`,
extract: (url) => {
Expand All @@ -2754,8 +2759,10 @@ var require_git_host_info = __commonJS({
gitHosts.gist = Object.assign({}, defaults, {
protocols: ["git:", "git+ssh:", "git+https:", "ssh:", "https:"],
domain: "gist.github.com",
editpath: "edit",
sshtemplate: ({ domain, project, committish }) => `git@${domain}:${project}.git${maybeJoin("#", committish)}`,
sshurltemplate: ({ domain, project, committish }) => `git+ssh://git@${domain}/${project}.git${maybeJoin("#", committish)}`,
edittemplate: ({ domain, user, project, committish, editpath }) => `https://${domain}/${user}/${project}${maybeJoin("/", maybeEncode(committish))}/${editpath}`,
browsetemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`,
browsefiletemplate: ({ domain, project, committish, path, hashformat }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path))}`,
docstemplate: ({ domain, project, committish }) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`,
Expand Down Expand Up @@ -2901,6 +2908,9 @@ var require_git_host = __commonJS({
file(path, opts) {
return this._fill(this.filetemplate, { ...opts, path });
}
edit(path, opts) {
return this._fill(this.edittemplate, { ...opts, path });
}
getDefaultRepresentation() {
return this.default;
}
Expand Down Expand Up @@ -3650,8 +3660,8 @@ var require_lib2 = __commonJS({
if (!giturl) {
return;
}
const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl);
const parsed = parseGitUrl(url2);
const correctedUrl = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl);
const parsed = parseGitUrl(correctedUrl);
if (!parsed) {
return parsed;
}
Expand Down Expand Up @@ -3772,15 +3782,15 @@ var require_lib2 = __commonJS({
let result;
try {
result = new url.URL(giturl);
} catch (err) {
} catch {
}
if (result) {
return result;
}
const correctedUrl = correctUrl(giturl);
try {
result = new url.URL(correctedUrl);
} catch (err) {
} catch {
}
return result;
};
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@actions/core": "^1.9.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.0.3",
"hosted-git-info": "^5.0.0"
"hosted-git-info": "^5.1.0"
},
"devDependencies": {
"@types/hosted-git-info": "^3.0.2",
Expand Down