diff options
author | isaacs <i@izs.me> | 2019-08-05 19:39:24 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-08-05 19:39:24 +0300 |
commit | 4050b91898c60e9b22998cf82b70b9b822de592a (patch) | |
tree | b2fc8e450bbe62a52a6a739ec060a4b8bc50783e /node_modules/hosted-git-info/git-host-info.js | |
parent | 46181cb490ebb7732e806d6f4f0771bf42e6fa50 (diff) |
hosted-git-info@2.8.2
FEATURES
* [bbcf7b2](https://github.com/npm/hosted-git-info/commit/bbcf7b2d4090bc75bb8501aa40450bb0e8496787)
[#46](https://github.com/npm/hosted-git-info/issues/46)
[#43](https://github.com/npm/hosted-git-info/issues/43)
[#47](https://github.com/npm/hosted-git-info/pull/47)
[#44](https://github.com/npm/hosted-git-info/pull/44) Add support for
GitLab groups and subgroups ([@mterrel](https://github.com/mterrel),
[@isaacs](https://github.com/isaacs),
[@ybiquitous](https://github.com/ybiquitous))
BUGFIXES
* ([3b1d629](https://github.com/npm/hosted-git-info/commit/3b1d629))
[#48](https://github.com/npm/hosted-git-info/issues/48) fix http protocol
using sshurl by default ([@fengmk2](https://github.com/fengmk2))
* [5d4a8d7](https://github.com/npm/hosted-git-info/commit/5d4a8d7) ignore
noCommittish on tarball url generation
([@isaacs](https://github.com/isaacs))
* [1692435](https://github.com/npm/hosted-git-info/commit/1692435) use gist
tarball url that works for anonymous gists
([@isaacs](https://github.com/isaacs))
* [d5cf830](https://github.com/npm/hosted-git-info/commit/d5cf8309be7af884032616c63ea302ce49dd321c)
* Do not allow invalid gist urls ([@isaacs](https://github.com/isaacs))
* [e518222](https://github.com/npm/hosted-git-info/commit/e5182224351183ce619dd5ef00019ae700ed37b7)
Use LRU cache to prevent unbounded memory consumption
([@iarna](https://github.com/iarna))
Diffstat (limited to 'node_modules/hosted-git-info/git-host-info.js')
-rw-r--r-- | node_modules/hosted-git-info/git-host-info.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/node_modules/hosted-git-info/git-host-info.js b/node_modules/hosted-git-info/git-host-info.js index 090a23251..d81be2050 100644 --- a/node_modules/hosted-git-info/git-host-info.js +++ b/node_modules/hosted-git-info/git-host-info.js @@ -23,12 +23,14 @@ var gitHosts = module.exports = { 'domain': 'gitlab.com', 'treepath': 'tree', 'bugstemplate': 'https://{domain}/{user}/{project}/issues', - 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}' + 'httpstemplate': 'git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}', + 'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}', + 'pathmatch': /^[/]([^/]+)[/](.+?)(?:[.]git|[/])?$/ }, gist: { 'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ], 'domain': 'gist.github.com', - 'pathmatch': /^[/](?:([^/]+)[/])?([a-z0-9]+)(?:[.]git)?$/, + 'pathmatch': /^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/, 'filetemplate': 'https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}', 'bugstemplate': 'https://{domain}/{project}', 'gittemplate': 'git://{domain}/{project}.git{#committish}', @@ -40,7 +42,7 @@ var gitHosts = module.exports = { 'httpstemplate': 'git+https://{domain}/{project}.git{#committish}', 'shortcuttemplate': '{type}:{project}{#committish}', 'pathtemplate': '{project}{#committish}', - 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz', + 'tarballtemplate': 'https://codeload.github.com/gist/{project}/tar.gz/{committish}', 'hashformat': function (fragment) { return 'file-' + formatHashFragment(fragment) } |