hosted-git-info
Advanced tools
Comparing version 2.1.5 to 2.2.0
@@ -12,3 +12,4 @@ 'use strict' | ||
'bugstemplate': 'https://{domain}/{user}/{project}/issues', | ||
'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}' | ||
'gittemplate': 'git://{auth@}{domain}/{user}/{project}.git{#committish}', | ||
'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' | ||
}, | ||
@@ -18,3 +19,4 @@ bitbucket: { | ||
'domain': 'bitbucket.org', | ||
'treepath': 'src' | ||
'treepath': 'src', | ||
'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz' | ||
}, | ||
@@ -26,3 +28,4 @@ gitlab: { | ||
'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README', | ||
'bugstemplate': 'https://{domain}/{user}/{project}/issues' | ||
'bugstemplate': 'https://{domain}/{user}/{project}/issues', | ||
'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}' | ||
}, | ||
@@ -42,3 +45,4 @@ gist: { | ||
'shortcuttemplate': '{type}:{project}{#committish}', | ||
'pathtemplate': '{project}{#committish}' | ||
'pathtemplate': '{project}{#committish}', | ||
'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz' | ||
} | ||
@@ -45,0 +49,0 @@ } |
@@ -84,2 +84,6 @@ 'use strict' | ||
GitHost.prototype.tarball = function () { | ||
return this._fill(this.tarballtemplate) | ||
} | ||
GitHost.prototype.file = function (P) { | ||
@@ -86,0 +90,0 @@ return this._fill(this.filetemplate, { |
{ | ||
"name": "hosted-git-info", | ||
"version": "2.1.5", | ||
"version": "2.2.0", | ||
"description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab", | ||
@@ -23,8 +23,8 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "standard && tap test/*.js" | ||
"test": "standard && tap -j8 test/*.js" | ||
}, | ||
"devDependencies": { | ||
"standard": "^3.3.2", | ||
"tap": "^0.4.13" | ||
"tap": "^10.0.2" | ||
} | ||
} |
@@ -78,2 +78,6 @@ # hosted-git-info | ||
* info.tarball() | ||
eg, `https://github.com/npm/hosted-git-info/archive/v1.2.0.tar.gz` | ||
* info.getDefaultRepresentation() | ||
@@ -80,0 +84,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13632
245
104
0