Skip to content

Commit fbad17a

Browse files
committed
1 parent c7fe0db commit fbad17a

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''
66
const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''
7-
const formatHashFragment = (f) => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-')
7+
const formatHashFragment = (f) => f.toLowerCase()
8+
.replace(/^\W+/g, '') // strip leading non-characters
9+
.replace(/(?<!\W)\W+$/, '') // strip trailing non-characters
10+
.replace(/\//g, '') // strip all slashes
11+
.replace(/\W+/g, '-') // replace remaining non-characters with '-'
812

913
const defaults = {
1014
sshtemplate: ({ domain, user, project, committish }) =>

node_modules/hosted-git-info/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hosted-git-info",
3-
"version": "8.0.0",
3+
"version": "8.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.23.3",
38+
"@npmcli/template-oss": "4.23.4",
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.23.3",
58+
"version": "4.23.4",
5959
"publish": "true"
6060
}
6161
}

package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"fs-minipass": "^3.0.3",
107107
"glob": "^10.4.5",
108108
"graceful-fs": "^4.2.11",
109-
"hosted-git-info": "^8.0.0",
109+
"hosted-git-info": "^8.0.2",
110110
"ini": "^5.0.0",
111111
"init-package-json": "^7.0.1",
112112
"is-cidr": "^5.1.0",
@@ -7385,9 +7385,9 @@
73857385
}
73867386
},
73877387
"node_modules/hosted-git-info": {
7388-
"version": "8.0.0",
7389-
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.0.0.tgz",
7390-
"integrity": "sha512-4nw3vOVR+vHUOT8+U4giwe2tcGv+R3pwwRidUe67DoMBTjhrfr6rZYJVVwdkBE+Um050SG+X9tf0Jo4fOpn01w==",
7388+
"version": "8.0.2",
7389+
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.0.2.tgz",
7390+
"integrity": "sha512-sYKnA7eGln5ov8T8gnYlkSOxFJvywzEx9BueN6xo/GKO8PGiI6uK6xx+DIGe45T3bdVjLAQDQW1aicT8z8JwQg==",
73917391
"inBundle": true,
73927392
"license": "ISC",
73937393
"dependencies": {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"fs-minipass": "^3.0.3",
7272
"glob": "^10.4.5",
7373
"graceful-fs": "^4.2.11",
74-
"hosted-git-info": "^8.0.0",
74+
"hosted-git-info": "^8.0.2",
7575
"ini": "^5.0.0",
7676
"init-package-json": "^7.0.1",
7777
"is-cidr": "^5.1.0",

0 commit comments

Comments
 (0)