Skip to content

Commit

Permalink
fix(deps): bump hosted-git-info from 5.0.0 to 5.1.0 (#645)
Browse files Browse the repository at this point in the history
* build(deps): bump hosted-git-info from 5.0.0 to 5.1.0

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/main/CHANGELOG.md)
- [Commits](npm/hosted-git-info@v5.0.0...v5.1.0)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build: update dist

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ybiquitous <ybiquitous@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ybiquitous committed Aug 16, 2022
1 parent e4d34f7 commit 61691eb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
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

0 comments on commit 61691eb

Please sign in to comment.