Skip to content

Commit 514c71b

Browse files
committed
deps: hosted-git-info@9.0.3
1 parent 2a13550 commit 514c71b

4 files changed

Lines changed: 20 additions & 24 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ hosts.gitlab = {
110110
blobpath: 'tree',
111111
editpath: '-/edit',
112112
tarballtemplate: ({ domain, user, project, committish }) =>
113-
`https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish || 'HEAD')}`,
113+
`https://${domain}/api/v4/projects/${maybeEncode(user + '/' + project)}/repository/archive.tar.gz?sha=${maybeEncode(committish || 'HEAD')}`,
114114
extract: (url) => {
115115
const path = url.pathname.slice(1)
116116
if (path.includes('/-/') || path.includes('/archive.tar.gz')) {
@@ -198,7 +198,7 @@ hosts.sourcehut = {
198198
filetemplate: ({ domain, user, project, committish, path }) =>
199199
`https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || 'HEAD'}/${path}`,
200200
httpstemplate: ({ domain, user, project, committish }) =>
201-
`https://${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
201+
`https://${domain}/${user}/${project}${maybeJoin('#', committish)}`,
202202
tarballtemplate: ({ domain, user, project, committish }) =>
203203
`https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || 'HEAD'}.tar.gz`,
204204
bugstemplate: () => null,
Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hosted-git-info",
3-
"version": "9.0.2",
3+
"version": "9.0.3",
44
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",
55
"main": "./lib/index.js",
66
"repository": {
@@ -21,22 +21,23 @@
2121
"homepage": "https://github.com/npm/hosted-git-info",
2222
"scripts": {
2323
"posttest": "npm run lint",
24-
"snap": "tap",
25-
"test": "tap",
24+
"snap": "node --test --test-update-snapshots './test/**/*.js'",
25+
"test": "node --test './test/**/*.js'",
2626
"test:coverage": "tap --coverage-report=html",
2727
"lint": "npm run eslint",
2828
"postlint": "template-oss-check",
2929
"lintfix": "npm run eslint -- --fix",
3030
"template-oss-apply": "template-oss-apply --force",
31-
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
31+
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
32+
"test:node20": "node --test test",
33+
"test:cover": "node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'"
3234
},
3335
"dependencies": {
3436
"lru-cache": "^11.1.0"
3537
},
3638
"devDependencies": {
37-
"@npmcli/eslint-config": "^5.0.0",
38-
"@npmcli/template-oss": "4.25.1",
39-
"tap": "^16.0.1"
39+
"@npmcli/eslint-config": "^6.0.0",
40+
"@npmcli/template-oss": "4.30.0"
4041
},
4142
"files": [
4243
"bin/",
@@ -45,17 +46,12 @@
4546
"engines": {
4647
"node": "^20.17.0 || >=22.9.0"
4748
},
48-
"tap": {
49-
"color": 1,
50-
"coverage": true,
51-
"nyc-arg": [
52-
"--exclude",
53-
"tap-snapshots/**"
54-
]
55-
},
5649
"templateOSS": {
5750
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
58-
"version": "4.25.1",
59-
"publish": "true"
51+
"version": "4.30.0",
52+
"publish": "true",
53+
"testRunner": "node:test",
54+
"latestCiVersion": 24,
55+
"updateNpm": false
6056
}
6157
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"fs-minipass": "^3.0.3",
104104
"glob": "^13.0.6",
105105
"graceful-fs": "^4.2.11",
106-
"hosted-git-info": "^9.0.2",
106+
"hosted-git-info": "^9.0.3",
107107
"ini": "^6.0.0",
108108
"init-package-json": "^8.2.5",
109109
"is-cidr": "^6.0.4",
@@ -6095,9 +6095,9 @@
60956095
}
60966096
},
60976097
"node_modules/hosted-git-info": {
6098-
"version": "9.0.2",
6099-
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.2.tgz",
6100-
"integrity": "sha512-M422h7o/BR3rmCQ8UHi7cyyMqKltdP9Uo+J2fXK+RSAY+wTcKOIRyhTuKv4qn+DJf3g+PL890AzId5KZpX+CBg==",
6098+
"version": "9.0.3",
6099+
"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz",
6100+
"integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==",
61016101
"inBundle": true,
61026102
"license": "ISC",
61036103
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"fs-minipass": "^3.0.3",
6868
"glob": "^13.0.6",
6969
"graceful-fs": "^4.2.11",
70-
"hosted-git-info": "^9.0.2",
70+
"hosted-git-info": "^9.0.3",
7171
"ini": "^6.0.0",
7272
"init-package-json": "^8.2.5",
7373
"is-cidr": "^6.0.4",

0 commit comments

Comments
 (0)