hosted-git-info
Advanced tools
Comparing version 2.8.1 to 2.8.2
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="2.8.2"></a> | ||
## [2.8.2](https://github.com/npm/hosted-git-info/compare/v2.8.1...v2.8.2) (2019-08-05) | ||
### Bug Fixes | ||
* http protocol use sshurl by default ([3b1d629](https://github.com/npm/hosted-git-info/commit/3b1d629)), closes [#48](https://github.com/npm/hosted-git-info/issues/48) | ||
<a name="2.8.1"></a> | ||
@@ -7,0 +17,0 @@ ## [2.8.1](https://github.com/npm/hosted-git-info/compare/v2.8.0...v2.8.1) (2019-08-05) |
@@ -154,4 +154,4 @@ 'use strict' | ||
GitHost.prototype.toString = function (opts) { | ||
const method = this.default || /* istanbul ignore next */ 'sshurl' | ||
return this[method](opts) | ||
if (this.default && typeof this[this.default] === 'function') return this[this.default](opts) | ||
return this.sshurl(opts) | ||
} |
{ | ||
"name": "hosted-git-info", | ||
"version": "2.8.1", | ||
"version": "2.8.2", | ||
"description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22546