Skip to content

Commit

Permalink
deps: hosted-git-info@6.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Nov 21, 2024
1 parent 4998adf commit 72df313
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
6 changes: 5 additions & 1 deletion node_modules/hosted-git-info/lib/hosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''
const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''
const formatHashFragment = (f) => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-')
const formatHashFragment = (f) => f.toLowerCase()
.replace(/^\W+/g, '') // strip leading non-characters
.replace(/\W+$/g, '') // strip trailing non-characters
.replace(/\//g, '') // strip all slashes
.replace(/\W+/g, '-') // replace remaining non-characters with '-'

const defaults = {
sshtemplate: ({ domain, user, project, committish }) =>
Expand Down
15 changes: 8 additions & 7 deletions node_modules/hosted-git-info/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "hosted-git-info",
"version": "6.1.1",
"version": "6.1.2",
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/npm/hosted-git-info.git"
"url": "git+https://github.com/npm/hosted-git-info.git"
},
"keywords": [
"git",
Expand All @@ -24,17 +24,18 @@
"snap": "tap",
"test": "tap",
"test:coverage": "tap --coverage-report=html",
"lint": "eslint \"**/*.js\"",
"lint": "npm run eslint",
"postlint": "template-oss-check",
"lintfix": "npm run lint -- --fix",
"template-oss-apply": "template-oss-apply --force"
"lintfix": "npm run eslint -- --fix",
"template-oss-apply": "template-oss-apply --force",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"dependencies": {
"lru-cache": "^7.5.1"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.7.1",
"@npmcli/template-oss": "4.23.4",
"tap": "^16.0.1"
},
"files": [
Expand All @@ -54,6 +55,6 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.7.1"
"version": "4.23.4"
}
}
6 changes: 4 additions & 2 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"fs-minipass": "^3.0.3",
"glob": "^10.3.10",
"graceful-fs": "^4.2.11",
"hosted-git-info": "^6.1.1",
"hosted-git-info": "^6.1.2",
"ini": "^4.1.1",
"init-package-json": "^5.0.0",
"is-cidr": "^4.0.2",
Expand Down Expand Up @@ -6675,7 +6675,9 @@
}
},
"node_modules/hosted-git-info": {
"version": "6.1.1",
"version": "6.1.2",
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.2.tgz",
"integrity": "sha512-BGqEHfzDiVmLEV5uzvXn1qKrmXfNPVDBh86Epw5S6P4XYl+4yx4dawEj7p+B9NVVolIkX11DwmKiZ3YHK7XMwg==",
"inBundle": true,
"license": "ISC",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"fs-minipass": "^3.0.3",
"glob": "^10.3.10",
"graceful-fs": "^4.2.11",
"hosted-git-info": "^6.1.1",
"hosted-git-info": "^6.1.2",
"ini": "^4.1.1",
"init-package-json": "^5.0.0",
"is-cidr": "^4.0.2",
Expand Down

0 comments on commit 72df313

Please sign in to comment.