From 72df313d1ade770eb58efcdf62ee74db2c5d88a2 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 21 Nov 2024 10:04:56 -0800 Subject: [PATCH] deps: hosted-git-info@6.1.2 --- node_modules/hosted-git-info/lib/hosts.js | 6 +++++- node_modules/hosted-git-info/package.json | 15 ++++++++------- package-lock.json | 6 ++++-- package.json | 2 +- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/node_modules/hosted-git-info/lib/hosts.js b/node_modules/hosted-git-info/lib/hosts.js index 013712b7842c8..d610993ecb1ab 100644 --- a/node_modules/hosted-git-info/lib/hosts.js +++ b/node_modules/hosted-git-info/lib/hosts.js @@ -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 }) => diff --git a/node_modules/hosted-git-info/package.json b/node_modules/hosted-git-info/package.json index 612259948afe7..c6958e92430ee 100644 --- a/node_modules/hosted-git-info/package.json +++ b/node_modules/hosted-git-info/package.json @@ -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", @@ -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": [ @@ -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" } } diff --git a/package-lock.json b/package-lock.json index d070b2da352cf..f4c05bf4b932f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -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": { diff --git a/package.json b/package.json index 026cda3db31de..5ead580cefc31 100644 --- a/package.json +++ b/package.json @@ -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",