Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-02-09 01:21:40 +0300
committerC J Silverio <ceejceej@gmail.com>2017-02-10 02:37:51 +0300
commita1d85be235b72b3a321bbe679d8e12c795e99edd (patch)
tree7bf458732f9a7c91128affaa13e01bab3b8d18fd /node_modules/hosted-git-info
parent3be016897abe921ef6e703d74a7071dbf3b64db5 (diff)
hosted-git-info@2.2.0
Add support for `.tarball()` URLs. PR-URL: https://github.com/npm/hosted-git-info/pull/21 Credit: @zkat Reviewed-By: @iarna
Diffstat (limited to 'node_modules/hosted-git-info')
-rw-r--r--node_modules/hosted-git-info/README.md4
-rw-r--r--node_modules/hosted-git-info/git-host-info.js12
-rw-r--r--node_modules/hosted-git-info/git-host.js4
-rw-r--r--node_modules/hosted-git-info/package.json56
4 files changed, 45 insertions, 31 deletions
diff --git a/node_modules/hosted-git-info/README.md b/node_modules/hosted-git-info/README.md
index 1db47dd65..20d53a97f 100644
--- a/node_modules/hosted-git-info/README.md
+++ b/node_modules/hosted-git-info/README.md
@@ -75,6 +75,10 @@ eg, `git@github.com:npm/hosted-git-info.git`
eg, `npm/hosted-git-info`
+* info.tarball()
+
+eg, `https://github.com/npm/hosted-git-info/archive/v1.2.0.tar.gz`
+
* info.getDefaultRepresentation()
Returns the default output type. The default output type is based on the
diff --git a/node_modules/hosted-git-info/git-host-info.js b/node_modules/hosted-git-info/git-host-info.js
index 22343335e..cd511e3f7 100644
--- a/node_modules/hosted-git-info/git-host-info.js
+++ b/node_modules/hosted-git-info/git-host-info.js
@@ -9,19 +9,22 @@ var gitHosts = module.exports = {
'treepath': 'tree',
'filetemplate': 'https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}',
'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'
},
bitbucket: {
'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ],
'domain': 'bitbucket.org',
- 'treepath': 'src'
+ 'treepath': 'src',
+ 'tarballtemplate': 'https://{domain}/{user}/{project}/get/{committish}.tar.gz'
},
gitlab: {
'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ],
'domain': 'gitlab.com',
'treepath': 'tree',
'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}'
},
gist: {
'protocols': [ 'git', 'git+ssh', 'git+https', 'ssh', 'https' ],
@@ -36,7 +39,8 @@ var gitHosts = module.exports = {
'docstemplate': 'https://{domain}/{project}{/committish}',
'httpstemplate': 'git+https://{domain}/{project}.git{#committish}',
'shortcuttemplate': '{type}:{project}{#committish}',
- 'pathtemplate': '{project}{#committish}'
+ 'pathtemplate': '{project}{#committish}',
+ 'tarballtemplate': 'https://{domain}/{user}/{project}/archive/{committish}.tar.gz'
}
}
diff --git a/node_modules/hosted-git-info/git-host.js b/node_modules/hosted-git-info/git-host.js
index ea31380a4..3ce4bc365 100644
--- a/node_modules/hosted-git-info/git-host.js
+++ b/node_modules/hosted-git-info/git-host.js
@@ -81,6 +81,10 @@ GitHost.prototype.path = function () {
return this._fill(this.pathtemplate)
}
+GitHost.prototype.tarball = function () {
+ return this._fill(this.tarballtemplate)
+}
+
GitHost.prototype.file = function (P) {
return this._fill(this.filetemplate, {
path: P.replace(/^[/]+/g, '')
diff --git a/node_modules/hosted-git-info/package.json b/node_modules/hosted-git-info/package.json
index 7c8475510..ebc5b720b 100644
--- a/node_modules/hosted-git-info/package.json
+++ b/node_modules/hosted-git-info/package.json
@@ -2,10 +2,11 @@
"_args": [
[
{
- "name": "hosted-git-info",
"raw": "hosted-git-info@latest",
- "rawSpec": "latest",
"scope": null,
+ "escapedName": "hosted-git-info",
+ "name": "hosted-git-info",
+ "rawSpec": "latest",
"spec": "latest",
"type": "tag"
},
@@ -13,42 +14,43 @@
]
],
"_from": "hosted-git-info@latest",
- "_id": "hosted-git-info@2.1.5",
+ "_id": "hosted-git-info@2.2.0",
"_inCache": true,
- "_installable": true,
"_location": "/hosted-git-info",
- "_nodeVersion": "5.10.1",
+ "_nodeVersion": "7.4.0",
"_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/hosted-git-info-2.1.5.tgz_1463518889246_0.20443619322031736"
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/hosted-git-info-2.2.0.tgz_1486365886030_0.0815314722713083"
},
"_npmUser": {
- "email": "kat@sykosomatic.org",
- "name": "zkat"
+ "name": "zkat",
+ "email": "kat@sykosomatic.org"
},
- "_npmVersion": "3.9.1",
+ "_npmVersion": "4.2.0",
"_phantomChildren": {},
"_requested": {
- "name": "hosted-git-info",
"raw": "hosted-git-info@latest",
- "rawSpec": "latest",
"scope": null,
+ "escapedName": "hosted-git-info",
+ "name": "hosted-git-info",
+ "rawSpec": "latest",
"spec": "latest",
"type": "tag"
},
"_requiredBy": [
+ "#USER",
"/",
"/normalize-package-data",
"/npm-package-arg"
],
- "_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz",
- "_shasum": "0ba81d90da2e25ab34a332e6ec77936e1598118b",
+ "_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.2.0.tgz",
+ "_shasum": "7a0d097863d886c0fabbdcd37bf1758d8becf8a5",
"_shrinkwrap": null,
"_spec": "hosted-git-info@latest",
"_where": "/Users/zkat/Documents/code/npm",
"author": {
- "email": "me@re-becca.org",
"name": "Rebecca Turner",
+ "email": "me@re-becca.org",
"url": "http://re-becca.org"
},
"bugs": {
@@ -58,14 +60,14 @@
"description": "Provides metadata and conversions from repository urls for Github, Bitbucket and Gitlab",
"devDependencies": {
"standard": "^3.3.2",
- "tap": "^0.4.13"
+ "tap": "^10.0.2"
},
"directories": {},
"dist": {
- "shasum": "0ba81d90da2e25ab34a332e6ec77936e1598118b",
- "tarball": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz"
+ "shasum": "7a0d097863d886c0fabbdcd37bf1758d8becf8a5",
+ "tarball": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.2.0.tgz"
},
- "gitHead": "4e6bb323a97a57c18e6b4b891527e26154d04fbe",
+ "gitHead": "d5ea6d1de852b04589f100c671fa0d3311f3449f",
"homepage": "https://github.com/npm/hosted-git-info",
"keywords": [
"git",
@@ -77,16 +79,16 @@
"main": "index.js",
"maintainers": [
{
- "email": "me@re-becca.org",
- "name": "iarna"
+ "name": "iarna",
+ "email": "me@re-becca.org"
},
{
- "email": "ogd@aoaioxxysz.net",
- "name": "othiym23"
+ "name": "othiym23",
+ "email": "ogd@aoaioxxysz.net"
},
{
- "email": "kat@sykosomatic.org",
- "name": "zkat"
+ "name": "zkat",
+ "email": "kat@sykosomatic.org"
}
],
"name": "hosted-git-info",
@@ -97,7 +99,7 @@
"url": "git+https://github.com/npm/hosted-git-info.git"
},
"scripts": {
- "test": "standard && tap test/*.js"
+ "test": "standard && tap -j8 test/*.js"
},
- "version": "2.1.5"
+ "version": "2.2.0"
}