This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+10
View File
@@ -2,6 +2,16 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="2.8.9"></a>
## [2.8.9](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9) (2021-04-07)
### Bug Fixes
* backport regex fix from [#76](https://github.com/npm/hosted-git-info/issues/76) ([29adfe5](https://github.com/npm/hosted-git-info/commit/29adfe5)), closes [#84](https://github.com/npm/hosted-git-info/issues/84)
<a name="2.8.8"></a>
## [2.8.8](https://github.com/npm/hosted-git-info/compare/v2.8.7...v2.8.8) (2020-02-29)
+2 -2
View File
@@ -41,7 +41,7 @@ function fromUrl (giturl, opts) {
isGitHubShorthand(giturl) ? 'github:' + giturl : giturl
)
var parsed = parseGitUrl(url)
var shortcutMatch = url.match(new RegExp('^([^:]+):(?:(?:[^@:]+(?:[^@]+)?@)?([^/]*))[/](.+?)(?:[.]git)?($|#)'))
var shortcutMatch = url.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/)
var matches = Object.keys(gitHosts).map(function (gitHostName) {
try {
var gitHostInfo = gitHosts[gitHostName]
@@ -55,7 +55,7 @@ function fromUrl (giturl, opts) {
var defaultRepresentation = null
if (shortcutMatch && shortcutMatch[1] === gitHostName) {
user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2])
project = decodeURIComponent(shortcutMatch[3])
project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, ''))
defaultRepresentation = 'shortcut'
} else {
if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, '') !== gitHostInfo.domain) return
+12 -12
View File
@@ -1,33 +1,33 @@
{
"_args": [
[
"hosted-git-info@2.8.8",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"hosted-git-info@2.8.9",
"/home/node/nuxt"
]
],
"_development": true,
"_from": "hosted-git-info@2.8.8",
"_id": "hosted-git-info@2.8.8",
"_from": "hosted-git-info@2.8.9",
"_id": "hosted-git-info@2.8.9",
"_inBundle": false,
"_integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==",
"_integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==",
"_location": "/hosted-git-info",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "hosted-git-info@2.8.8",
"raw": "hosted-git-info@2.8.9",
"name": "hosted-git-info",
"escapedName": "hosted-git-info",
"rawSpec": "2.8.8",
"rawSpec": "2.8.9",
"saveSpec": null,
"fetchSpec": "2.8.8"
"fetchSpec": "2.8.9"
},
"_requiredBy": [
"/normalize-package-data"
],
"_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz",
"_spec": "2.8.8",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz",
"_spec": "2.8.9",
"_where": "/home/node/nuxt",
"author": {
"name": "Rebecca Turner",
"email": "me@re-becca.org",
@@ -69,5 +69,5 @@
"test": "tap -J --coverage=90 --no-esm test/*.js",
"test:coverage": "tap --coverage-report=html -J --coverage=90 --no-esm test/*.js"
},
"version": "2.8.8"
"version": "2.8.9"
}