Skip to content

Commit 72df313

Browse files
committed
1 parent 4998adf commit 72df313

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
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+$/g, '') // 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

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "hosted-git-info",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",
55
"main": "./lib/index.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/npm/hosted-git-info.git"
8+
"url": "git+https://github.com/npm/hosted-git-info.git"
99
},
1010
"keywords": [
1111
"git",
@@ -24,17 +24,18 @@
2424
"snap": "tap",
2525
"test": "tap",
2626
"test:coverage": "tap --coverage-report=html",
27-
"lint": "eslint \"**/*.js\"",
27+
"lint": "npm run eslint",
2828
"postlint": "template-oss-check",
29-
"lintfix": "npm run lint -- --fix",
30-
"template-oss-apply": "template-oss-apply --force"
29+
"lintfix": "npm run eslint -- --fix",
30+
"template-oss-apply": "template-oss-apply --force",
31+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
3132
},
3233
"dependencies": {
3334
"lru-cache": "^7.5.1"
3435
},
3536
"devDependencies": {
3637
"@npmcli/eslint-config": "^4.0.0",
37-
"@npmcli/template-oss": "4.7.1",
38+
"@npmcli/template-oss": "4.23.4",
3839
"tap": "^16.0.1"
3940
},
4041
"files": [
@@ -54,6 +55,6 @@
5455
},
5556
"templateOSS": {
5657
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
57-
"version": "4.7.1"
58+
"version": "4.23.4"
5859
}
5960
}

package-lock.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"fs-minipass": "^3.0.3",
109109
"glob": "^10.3.10",
110110
"graceful-fs": "^4.2.11",
111-
"hosted-git-info": "^6.1.1",
111+
"hosted-git-info": "^6.1.2",
112112
"ini": "^4.1.1",
113113
"init-package-json": "^5.0.0",
114114
"is-cidr": "^4.0.2",
@@ -6675,7 +6675,9 @@
66756675
}
66766676
},
66776677
"node_modules/hosted-git-info": {
6678-
"version": "6.1.1",
6678+
"version": "6.1.2",
6679+
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.2.tgz",
6680+
"integrity": "sha512-BGqEHfzDiVmLEV5uzvXn1qKrmXfNPVDBh86Epw5S6P4XYl+4yx4dawEj7p+B9NVVolIkX11DwmKiZ3YHK7XMwg==",
66796681
"inBundle": true,
66806682
"license": "ISC",
66816683
"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.3.10",
7373
"graceful-fs": "^4.2.11",
74-
"hosted-git-info": "^6.1.1",
74+
"hosted-git-info": "^6.1.2",
7575
"ini": "^4.1.1",
7676
"init-package-json": "^5.0.0",
7777
"is-cidr": "^4.0.2",

0 commit comments

Comments
 (0)