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:
authorRebecca Turner <me@re-becca.org>2017-04-13 02:09:26 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-04-28 01:02:14 +0300
commitfce1a6c0be5e0b7278fcfe0363c7b9c28f370f0b (patch)
tree802f40466d57714f80c807bf9bf5d3baab339402 /node_modules
parente5f4a9856b19667c7c8b02f0c44d61b3be8f418d (diff)
normalize-git-url@REMOVED
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/normalize-git-url/.npmignore1
-rw-r--r--node_modules/normalize-git-url/.travis.yml10
-rw-r--r--node_modules/normalize-git-url/CHANGELOG.md5
-rw-r--r--node_modules/normalize-git-url/LICENSE13
-rw-r--r--node_modules/normalize-git-url/README.md40
-rw-r--r--node_modules/normalize-git-url/normalize-git-url.js40
-rw-r--r--node_modules/normalize-git-url/package.json94
-rw-r--r--node_modules/normalize-git-url/test/basic.js71
-rw-r--r--node_modules/normalize-git-url/test/basic.js~56
9 files changed, 0 insertions, 330 deletions
diff --git a/node_modules/normalize-git-url/.npmignore b/node_modules/normalize-git-url/.npmignore
deleted file mode 100644
index c2658d7d1..000000000
--- a/node_modules/normalize-git-url/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules/
diff --git a/node_modules/normalize-git-url/.travis.yml b/node_modules/normalize-git-url/.travis.yml
deleted file mode 100644
index ab9182bf2..000000000
--- a/node_modules/normalize-git-url/.travis.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-language: node_js
-node_js:
- - "5"
- - "4"
- - iojs
- - "0.12"
- - "0.10"
- - "0.8"
-sudo: false
-script: "npm test"
diff --git a/node_modules/normalize-git-url/CHANGELOG.md b/node_modules/normalize-git-url/CHANGELOG.md
deleted file mode 100644
index f2d2b94be..000000000
--- a/node_modules/normalize-git-url/CHANGELOG.md
+++ /dev/null
@@ -1,5 +0,0 @@
-### 1.0.0 (2014-12-25):
-
-* [`8b3d874`](https://github.com/npm/normalize-git-url/commit/8b3d874afd14f4cdde65d418e0a35a615c746bba)
- Initial version, with simple tests.
- ([@othiym23](https://github.com/othiym23))
diff --git a/node_modules/normalize-git-url/LICENSE b/node_modules/normalize-git-url/LICENSE
deleted file mode 100644
index d21147bf1..000000000
--- a/node_modules/normalize-git-url/LICENSE
+++ /dev/null
@@ -1,13 +0,0 @@
-Copyright (c) 2014-2015, Forrest L Norvell
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/normalize-git-url/README.md b/node_modules/normalize-git-url/README.md
deleted file mode 100644
index da3d78ed2..000000000
--- a/node_modules/normalize-git-url/README.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# normalize-git-url
-
-You have a bunch of Git URLs. You want to convert them to a canonical
-representation, probably for use inside npm so that it doesn't end up creating
-a bunch of superfluous cached origins. You use this package.
-
-## Usage
-
-```javascript
-var ngu = require('normalize-git-url');
-var normalized = ngu("git+ssh://git@github.com:organization/repo.git#hashbrowns")
-// get back:
-// {
-// url : "ssh://git@github.com/organization/repo.git",
-// branch : "hashbrowns" // did u know hashbrowns are delicious?
-// }
-```
-
-## API
-
-There's just the one function, and all it takes is a single parameter, a non-normalized Git URL.
-
-### normalizeGitUrl(url)
-
-* `url` {String} The Git URL (very loosely speaking) to be normalized.
-
-Returns an object with the following format:
-
-* `url` {String} The normalized URL.
-* `branch` {String} The treeish to be checked out once the repo at `url` is
- cloned. It doesn't have to be a branch, but it's a lot easier to intuit what
- the output is for with that name.
-
-## Limitations
-
-Right now this doesn't try to special-case GitHub too much -- it doesn't ensure
-that `.git` is added to the end of URLs, it doesn't prefer `https:` over
-`http:` or `ssh:`, it doesn't deal with redirects, and it doesn't try to
-resolve symbolic names to treeish hashcodes. For now, it just tries to account
-for minor differences in representation.
diff --git a/node_modules/normalize-git-url/normalize-git-url.js b/node_modules/normalize-git-url/normalize-git-url.js
deleted file mode 100644
index bb691e11d..000000000
--- a/node_modules/normalize-git-url/normalize-git-url.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var url = require('url')
-
-module.exports = function normalize (u) {
- var parsed = url.parse(u)
- // If parsing actually alters the URL, it is almost certainly an
- // scp-style URL, or an invalid one.
- var altered = u !== url.format(parsed)
-
- // git is so tricky!
- // if the path is like ssh://foo:22/some/path then it works, but
- // it needs the ssh://
- // If the path is like ssh://foo:some/path then it works, but
- // only if you remove the ssh://
- if (parsed.protocol) {
- parsed.protocol = parsed.protocol.replace(/^git\+/, '')
- }
-
- // figure out what we should check out.
- var checkout = parsed.hash && parsed.hash.substr(1) || 'master'
- parsed.hash = ''
-
- var returnedUrl
- if (altered) {
- if (u.match(/^git\+https?/) && parsed.pathname.match(/\/?:[^0-9]/)) {
- returnedUrl = u.replace(/^git\+(.*:[^:]+):(.*)/, '$1/$2')
- } else if (u.match(/^git\+file/)) {
- returnedUrl = u.replace(/^git\+/, '')
- } else {
- returnedUrl = u.replace(/^(?:git\+)?ssh:\/\//, '')
- }
- returnedUrl = returnedUrl.replace(/#[^#]*$/, '')
- } else {
- returnedUrl = url.format(parsed)
- }
-
- return {
- url: returnedUrl,
- branch: checkout
- }
-}
diff --git a/node_modules/normalize-git-url/package.json b/node_modules/normalize-git-url/package.json
deleted file mode 100644
index bf8ea5468..000000000
--- a/node_modules/normalize-git-url/package.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "_args": [
- [
- "normalize-git-url@~3.0.2",
- "/Users/rebecca/code/npm"
- ]
- ],
- "_from": "normalize-git-url@>=3.0.2 <3.1.0",
- "_id": "normalize-git-url@3.0.2",
- "_inCache": true,
- "_installable": true,
- "_location": "/normalize-git-url",
- "_nodeVersion": "4.4.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/normalize-git-url-3.0.2.tgz_1460155404934_0.9728229902684689"
- },
- "_npmUser": {
- "email": "me@re-becca.org",
- "name": "iarna"
- },
- "_npmVersion": "3.8.7",
- "_phantomChildren": {},
- "_requested": {
- "name": "normalize-git-url",
- "raw": "normalize-git-url@~3.0.2",
- "rawSpec": "~3.0.2",
- "scope": null,
- "spec": ">=3.0.2 <3.1.0",
- "type": "range"
- },
- "_requiredBy": [
- "/"
- ],
- "_shasum": "8e5f14be0bdaedb73e07200310aa416c27350fc4",
- "_shrinkwrap": null,
- "_spec": "normalize-git-url@~3.0.2",
- "_where": "/Users/rebecca/code/npm",
- "author": {
- "email": "ogd@aoaioxxysz.net",
- "name": "Forrest L Norvell"
- },
- "bugs": {
- "url": "https://github.com/npm/normalize-git-url/issues"
- },
- "dependencies": {},
- "description": "Normalizes Git URLs. For npm, but you can use it too.",
- "devDependencies": {
- "tap": "^1.1.0"
- },
- "directories": {
- "test": "test"
- },
- "dist": {
- "shasum": "8e5f14be0bdaedb73e07200310aa416c27350fc4",
- "tarball": "https://registry.npmjs.org/normalize-git-url/-/normalize-git-url-3.0.2.tgz"
- },
- "gitHead": "59553801a9f389857b48e71e9ab54592815f7d15",
- "homepage": "https://github.com/npm/normalize-git-url",
- "keywords": [
- "git",
- "github",
- "url",
- "normalize",
- "npm"
- ],
- "license": "ISC",
- "main": "normalize-git-url.js",
- "maintainers": [
- {
- "email": "ogd@aoaioxxysz.net",
- "name": "othiym23"
- },
- {
- "email": "me@re-becca.org",
- "name": "iarna"
- },
- {
- "email": "kat@sykosomatic.org",
- "name": "zkat"
- }
- ],
- "name": "normalize-git-url",
- "optionalDependencies": {},
- "readme": "ERROR: No README data found!",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/npm/normalize-git-url.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "version": "3.0.2"
-}
diff --git a/node_modules/normalize-git-url/test/basic.js b/node_modules/normalize-git-url/test/basic.js
deleted file mode 100644
index 4b513a589..000000000
--- a/node_modules/normalize-git-url/test/basic.js
+++ /dev/null
@@ -1,71 +0,0 @@
-var test = require('tap').test
-
-var normalize = require('../normalize-git-url.js')
-
-test('basic normalization tests', function (t) {
- t.same(
- normalize('git+ssh://user@hostname:project.git#commit-ish'),
- { url: 'user@hostname:project.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+http://user@hostname/project/blah.git#commit-ish'),
- { url: 'http://user@hostname/project/blah.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+https://user@hostname/project/blah.git#commit-ish'),
- { url: 'https://user@hostname/project/blah.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+https://user@hostname:project/blah.git#commit-ish'),
- { url: 'https://user@hostname/project/blah.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+ssh://git@github.com:npm/npm.git#v1.0.27'),
- { url: 'git@github.com:npm/npm.git', branch: 'v1.0.27' }
- )
- t.same(
- normalize('git+ssh://git@github.com:/npm/npm.git#v1.0.28'),
- { url: 'git@github.com:/npm/npm.git', branch: 'v1.0.28' }
- )
- t.same(
- normalize('git+ssh://git@github.com:org/repo#dev'),
- { url: 'git@github.com:org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+ssh://git@github.com/org/repo#dev'),
- { url: 'ssh://git@github.com/org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+ssh://foo:22/some/path'),
- { url: 'ssh://foo:22/some/path', branch: 'master' }
- )
- t.same(
- normalize('git@github.com:org/repo#dev'),
- { url: 'git@github.com:org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+https://github.com/KenanY/node-uuid'),
- { url: 'https://github.com/KenanY/node-uuid', branch: 'master' }
- )
- t.same(
- normalize('git+https://github.com/KenanY/node-uuid#7a018f2d075b03a73409e8356f9b29c9ad4ea2c5'),
- { url: 'https://github.com/KenanY/node-uuid', branch: '7a018f2d075b03a73409e8356f9b29c9ad4ea2c5' }
- )
- t.same(
- normalize('git+ssh://git@git.example.com:b/b.git#v1.0.0'),
- { url: 'git@git.example.com:b/b.git', branch: 'v1.0.0' }
- )
- t.same(
- normalize('git+ssh://git@github.com:npm/npm-proto.git#othiym23/organized'),
- { url: 'git@github.com:npm/npm-proto.git', branch: 'othiym23/organized' }
- )
- t.same(
- normalize('git+file:///foo/bar.git'),
- { url: 'file:///foo/bar.git', branch: 'master' }
- )
- t.same(
- normalize('git+file://C:\\Users\\hello\\testing.git#zkat/windows-files'),
- { url: 'file://C:\\Users\\hello\\testing.git', branch: 'zkat/windows-files'}
- )
- t.end()
-})
diff --git a/node_modules/normalize-git-url/test/basic.js~ b/node_modules/normalize-git-url/test/basic.js~
deleted file mode 100644
index 00ac6d313..000000000
--- a/node_modules/normalize-git-url/test/basic.js~
+++ /dev/null
@@ -1,56 +0,0 @@
-var test = require('tap').test
-
-var normalize = require('../normalize-git-url.js')
-
-test('basic normalization tests', function (t) {
- t.same(
- normalize('git+ssh://user@hostname:project.git#commit-ish'),
- { url: 'user@hostname:project.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+http://user@hostname/project/blah.git#commit-ish'),
- { url: 'http://user@hostname/project/blah.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+https://user@hostname/project/blah.git#commit-ish'),
- { url: 'https://user@hostname/project/blah.git', branch: 'commit-ish' }
- )
- t.same(
- normalize('git+ssh://git@github.com:npm/npm.git#v1.0.27'),
- { url: 'git@github.com:npm/npm.git', branch: 'v1.0.27' }
- )
- t.same(
- normalize('git+ssh://git@github.com:org/repo#dev'),
- { url: 'git@github.com:org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+ssh://git@github.com/org/repo#dev'),
- { url: 'ssh://git@github.com/org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+ssh://foo:22/some/path'),
- { url: 'ssh://foo:22/some/path', branch: 'master' }
- )
- t.same(
- normalize('git@github.com:org/repo#dev'),
- { url: 'git@github.com:org/repo', branch: 'dev' }
- )
- t.same(
- normalize('git+https://github.com/KenanY/node-uuid'),
- { url: 'https://github.com/KenanY/node-uuid', branch: 'master' }
- )
- t.same(
- normalize('git+https://github.com/KenanY/node-uuid#7a018f2d075b03a73409e8356f9b29c9ad4ea2c5'),
- { url: 'https://github.com/KenanY/node-uuid', branch: '7a018f2d075b03a73409e8356f9b29c9ad4ea2c5' }
- )
- t.same(
- normalize('git+ssh://git@git.example.com:b/b.git#v1.0.0'),
- { url: 'git@git.example.com:b/b.git', branch: 'v1.0.0' }
- )
- t.same(
- normalize('git+ssh://git@github.com:npm/npm-proto.git#othiym23/organized'),
- { url: 'git@github.com:npm/npm-proto.git', branch: 'othiym23/organized' }
- )
-
- t.end()
-})