hosted-git-info
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="3.0.1"></a> | ||
## [3.0.1](https://github.com/npm/hosted-git-info/compare/v3.0.0...v3.0.1) (2019-10-07) | ||
### Bug Fixes | ||
* update pathmatch for gitlab ([e3e3054](https://github.com/npm/hosted-git-info/commit/e3e3054)), closes [#52](https://github.com/npm/hosted-git-info/issues/52) | ||
* updated pathmatch for gitlab ([fa87af7](https://github.com/npm/hosted-git-info/commit/fa87af7)) | ||
<a name="3.0.0"></a> | ||
@@ -7,0 +18,0 @@ # [3.0.0](https://github.com/npm/hosted-git-info/compare/v2.8.3...v3.0.0) (2019-08-12) |
@@ -28,3 +28,3 @@ 'use strict' | ||
'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}', | ||
'pathmatch': /^[/]([^/]+)[/](.+?)(?:[.]git|[/])?$/ | ||
'pathmatch': /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/ | ||
}, | ||
@@ -31,0 +31,0 @@ gist: { |
@@ -67,2 +67,3 @@ 'use strict' | ||
if (!matched) return | ||
/* istanbul ignore else */ | ||
if (matched[1] !== null && matched[1] !== undefined) { | ||
@@ -69,0 +70,0 @@ user = decodeURIComponent(matched[1].replace(/^:/, '')) |
{ | ||
"name": "hosted-git-info", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab", | ||
@@ -27,2 +27,3 @@ "main": "index.js", | ||
"release": "standard-version -s", | ||
"test:coverage": "tap --coverage-report=html -J --100 --no-esm test/*.js", | ||
"test": "tap -J --100 --no-esm test/*.js" | ||
@@ -29,0 +30,0 @@ }, |
23653
328