Skip to content

Commit f255c92

Browse files
committed
deps: hosted-git-info@9.0.2
1 parent bdaf323 commit f255c92

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

node_modules/hosted-git-info/lib/hosts.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ hosts.gitlab = {
109109
treepath: 'tree',
110110
blobpath: 'tree',
111111
editpath: '-/edit',
112-
httpstemplate: ({ auth, domain, user, project, committish }) =>
113-
`git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
114112
tarballtemplate: ({ domain, user, project, committish }) =>
115113
`https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || 'HEAD')}`,
116114
extract: (url) => {

node_modules/hosted-git-info/lib/parse-url.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,23 @@ const correctProtocol = (arg, protocols) => {
2121
return arg
2222
}
2323

24+
if (arg.substr(firstColon, 3) === '://') {
25+
// If arg is given as <foo>://<bar>, then this is already a valid URL.
26+
return arg
27+
}
28+
2429
const firstAt = arg.indexOf('@')
2530
if (firstAt > -1) {
2631
if (firstAt > firstColon) {
32+
// URL has the form of <foo>:<bar>@<baz>. Assume this is a git+ssh URL.
2733
return `git+ssh://${arg}`
2834
} else {
35+
// URL has the form 'git@github.com:npm/hosted-git-info.git'.
2936
return arg
3037
}
3138
}
3239

33-
const doubleSlash = arg.indexOf('//')
34-
if (doubleSlash === firstColon + 1) {
35-
return arg
36-
}
37-
40+
// Correct <foo>:<bar> to <foo>://<bar>
3841
return `${arg.slice(0, firstColon + 1)}//${arg.slice(firstColon + 1)}`
3942
}
4043

node_modules/hosted-git-info/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hosted-git-info",
3-
"version": "9.0.0",
3+
"version": "9.0.2",
44
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",
55
"main": "./lib/index.js",
66
"repository": {
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@npmcli/eslint-config": "^5.0.0",
38-
"@npmcli/template-oss": "4.25.0",
38+
"@npmcli/template-oss": "4.25.1",
3939
"tap": "^16.0.1"
4040
},
4141
"files": [
@@ -55,7 +55,7 @@
5555
},
5656
"templateOSS": {
5757
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
58-
"version": "4.25.0",
58+
"version": "4.25.1",
5959
"publish": "true"
6060
}
6161
}

package-lock.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"fs-minipass": "^3.0.3",
104104
"glob": "^11.0.3",
105105
"graceful-fs": "^4.2.11",
106-
"hosted-git-info": "^9.0.0",
106+
"hosted-git-info": "^9.0.2",
107107
"ini": "^5.0.0",
108108
"init-package-json": "^8.2.2",
109109
"is-cidr": "^6.0.1",
@@ -5695,7 +5695,9 @@
56955695
}
56965696
},
56975697
"node_modules/hosted-git-info": {
5698-
"version": "9.0.0",
5698+
"version": "9.0.2",
5699+
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.2.tgz",
5700+
"integrity": "sha512-M422h7o/BR3rmCQ8UHi7cyyMqKltdP9Uo+J2fXK+RSAY+wTcKOIRyhTuKv4qn+DJf3g+PL890AzId5KZpX+CBg==",
56995701
"inBundle": true,
57005702
"license": "ISC",
57015703
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"fs-minipass": "^3.0.3",
7272
"glob": "^11.0.3",
7373
"graceful-fs": "^4.2.11",
74-
"hosted-git-info": "^9.0.0",
74+
"hosted-git-info": "^9.0.2",
7575
"ini": "^5.0.0",
7676
"init-package-json": "^8.2.2",
7777
"is-cidr": "^6.0.1",

0 commit comments

Comments
 (0)