diff options
author | Rebecca Turner <me@re-becca.org> | 2017-04-12 21:47:49 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2017-04-25 10:52:01 -0400 |
commit | 00842604483e4c2e622dfdb3a97440e07646158f (patch) | |
tree | f3346902636a44b6037652523767636bf7e4f2c9 /deps/npm/node_modules/npm-package-arg | |
parent | 061c5da010e0d249379618382a499840d38247b8 (diff) | |
download | node-new-00842604483e4c2e622dfdb3a97440e07646158f.tar.gz |
deps: upgrade npm to 4.5.0
PR-URL: https://github.com/nodejs/node/pull/12480
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/npm-package-arg')
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/.npmignore | 1 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/.travis.yml | 10 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/package.json | 56 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/test/basic.js | 187 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/test/bitbucket.js | 81 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/test/github.js | 104 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/test/gitlab.js | 79 | ||||
-rw-r--r-- | deps/npm/node_modules/npm-package-arg/test/windows.js | 79 |
8 files changed, 30 insertions, 567 deletions
diff --git a/deps/npm/node_modules/npm-package-arg/.npmignore b/deps/npm/node_modules/npm-package-arg/.npmignore deleted file mode 100644 index c2658d7d1b..0000000000 --- a/deps/npm/node_modules/npm-package-arg/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules/ diff --git a/deps/npm/node_modules/npm-package-arg/.travis.yml b/deps/npm/node_modules/npm-package-arg/.travis.yml deleted file mode 100644 index d8ce5e1a74..0000000000 --- a/deps/npm/node_modules/npm-package-arg/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -node_js: - - "6" - - "5" - - "4" - - "0.12" - - "0.10" -sudo: false -script: "npm test" - diff --git a/deps/npm/node_modules/npm-package-arg/package.json b/deps/npm/node_modules/npm-package-arg/package.json index b9f5b4d4a6..61475cad09 100644 --- a/deps/npm/node_modules/npm-package-arg/package.json +++ b/deps/npm/node_modules/npm-package-arg/package.json @@ -2,39 +2,40 @@ "_args": [ [ { - "raw": "npm-package-arg@4.2.0", + "raw": "npm-package-arg@latest", "scope": null, + "escapedName": "npm-package-arg", "name": "npm-package-arg", - "rawSpec": "4.2.0", - "spec": "4.2.0", - "type": "version" + "rawSpec": "latest", + "spec": "latest", + "type": "tag" }, - "/Users/rebecca/code/npm" + "/Users/zkat/Documents/code/npm" ] ], - "_from": "npm-package-arg@4.2.0", - "_id": "npm-package-arg@4.2.0", + "_from": "npm-package-arg@latest", + "_id": "npm-package-arg@4.2.1", "_inCache": true, - "_installable": true, "_location": "/npm-package-arg", - "_nodeVersion": "6.2.1", + "_nodeVersion": "7.7.1", "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/npm-package-arg-4.2.0.tgz_1465952856229_0.8071578682865947" + "host": "packages-18-east.internal.npmjs.com", + "tmp": "tmp/npm-package-arg-4.2.1.tgz_1488928211600_0.17898930050432682" }, "_npmUser": { - "name": "othiym23", - "email": "ogd@aoaioxxysz.net" + "name": "zkat", + "email": "kat@sykosomatic.org" }, - "_npmVersion": "3.9.6", + "_npmVersion": "4.1.2", "_phantomChildren": {}, "_requested": { - "raw": "npm-package-arg@4.2.0", + "raw": "npm-package-arg@latest", "scope": null, + "escapedName": "npm-package-arg", "name": "npm-package-arg", - "rawSpec": "4.2.0", - "spec": "4.2.0", - "type": "version" + "rawSpec": "latest", + "spec": "latest", + "type": "tag" }, "_requiredBy": [ "#USER", @@ -43,11 +44,11 @@ "/npm-registry-client", "/realize-package-specifier" ], - "_resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-4.2.0.tgz", - "_shasum": "809bc61cabf54bd5ff94f6165c89ba8ee88c115c", + "_resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-4.2.1.tgz", + "_shasum": "593303fdea85f7c422775f17f9eb7670f680e3ec", "_shrinkwrap": null, - "_spec": "npm-package-arg@4.2.0", - "_where": "/Users/rebecca/code/npm", + "_spec": "npm-package-arg@latest", + "_where": "/Users/zkat/Documents/code/npm", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -69,10 +70,13 @@ "test": "test" }, "dist": { - "shasum": "809bc61cabf54bd5ff94f6165c89ba8ee88c115c", - "tarball": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-4.2.0.tgz" + "shasum": "593303fdea85f7c422775f17f9eb7670f680e3ec", + "tarball": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-4.2.1.tgz" }, - "gitHead": "b54a9286ef387dd1fd109c54a42e8de45d7b07e8", + "files": [ + "npa.js" + ], + "gitHead": "2fa53ce9c3a000626e58c115205d4049c5b1ef42", "homepage": "https://github.com/npm/npm-package-arg", "license": "ISC", "main": "npa.js", @@ -104,5 +108,5 @@ "scripts": { "test": "standard && tap --coverage test/*.js" }, - "version": "4.2.0" + "version": "4.2.1" } diff --git a/deps/npm/node_modules/npm-package-arg/test/basic.js b/deps/npm/node_modules/npm-package-arg/test/basic.js deleted file mode 100644 index 95f260a3c7..0000000000 --- a/deps/npm/node_modules/npm-package-arg/test/basic.js +++ /dev/null @@ -1,187 +0,0 @@ -var npa = require('../npa.js') -var path = require('path') - -require('tap').test('basic', function (t) { - t.setMaxListeners(999) - - var tests = { - 'foo@1.2': { - name: 'foo', - escapedName: 'foo', - type: 'range', - spec: '>=1.2.0 <1.3.0', - raw: 'foo@1.2', - rawSpec: '1.2' - }, - - '@foo/bar': { - raw: '@foo/bar', - name: '@foo/bar', - escapedName: '@foo%2fbar', - scope: '@foo', - rawSpec: '', - spec: 'latest', - type: 'tag' - }, - - '@foo/bar@': { - raw: '@foo/bar@', - name: '@foo/bar', - escapedName: '@foo%2fbar', - scope: '@foo', - rawSpec: '', - spec: 'latest', - type: 'tag' - }, - - '@foo/bar@baz': { - raw: '@foo/bar@baz', - name: '@foo/bar', - escapedName: '@foo%2fbar', - scope: '@foo', - rawSpec: 'baz', - spec: 'baz', - type: 'tag' - }, - - '@f fo o al/ a d s ;f ': { - raw: '@f fo o al/ a d s ;f', - name: null, - escapedName: null, - rawSpec: '@f fo o al/ a d s ;f', - spec: '@f fo o al/ a d s ;f', - type: 'local' - }, - - 'foo@1.2.3': { - name: 'foo', - escapedName: 'foo', - type: 'version', - spec: '1.2.3', - raw: 'foo@1.2.3' - }, - - 'foo@=v1.2.3': { - name: 'foo', - escapedName: 'foo', - type: 'version', - spec: '1.2.3', - raw: 'foo@=v1.2.3', - rawSpec: '=v1.2.3' - }, - - 'git+ssh://git@notgithub.com/user/foo#1.2.3': { - name: null, - escapedName: null, - type: 'git', - spec: 'ssh://git@notgithub.com/user/foo#1.2.3', - raw: 'git+ssh://git@notgithub.com/user/foo#1.2.3' - }, - - 'git+file://path/to/repo#1.2.3': { - name: null, - escapedName: null, - type: 'git', - spec: 'file://path/to/repo#1.2.3', - raw: 'git+file://path/to/repo#1.2.3' - }, - - 'git://notgithub.com/user/foo': { - name: null, - escapedName: null, - type: 'git', - spec: 'git://notgithub.com/user/foo', - raw: 'git://notgithub.com/user/foo' - }, - - '@foo/bar@git+ssh://notgithub.com/user/foo': { - name: '@foo/bar', - escapedName: '@foo%2fbar', - scope: '@foo', - spec: 'ssh://notgithub.com/user/foo', - rawSpec: 'git+ssh://notgithub.com/user/foo', - raw: '@foo/bar@git+ssh://notgithub.com/user/foo' - }, - - '/path/to/foo': { - name: null, - escapedName: null, - type: 'local', - spec: path.resolve(__dirname, '/path/to/foo'), - raw: '/path/to/foo' - }, - - 'file:path/to/foo': { - name: null, - escapedName: null, - type: 'local', - spec: 'path/to/foo', - raw: 'file:path/to/foo' - }, - - 'file:~/path/to/foo': { - name: null, - escapedName: null, - type: 'local', - spec: '~/path/to/foo', - raw: 'file:~/path/to/foo' - }, - - 'file:../path/to/foo': { - name: null, - escapedName: null, - type: 'local', - spec: '../path/to/foo', - raw: 'file:../path/to/foo' - }, - - 'file:///path/to/foo': { - name: null, - escapedName: null, - type: 'local', - spec: '/path/to/foo', - raw: 'file:///path/to/foo' - }, - - 'https://server.com/foo.tgz': { - name: null, - escapedName: null, - type: 'remote', - spec: 'https://server.com/foo.tgz', - raw: 'https://server.com/foo.tgz' - }, - - 'foo@latest': { - name: 'foo', - escapedName: 'foo', - type: 'tag', - spec: 'latest', - raw: 'foo@latest' - }, - - 'foo': { - name: 'foo', - escapedName: 'foo', - type: 'tag', - spec: 'latest', - raw: 'foo' - } - } - - Object.keys(tests).forEach(function (arg) { - var res = npa(arg) - t.type(res, 'Result', arg + ' is result') - t.has(res, tests[arg], arg + ' matches expectations') - }) - - // Completely unreasonable invalid garbage throws an error - t.throws(function () { - npa('this is not a \0 valid package name or url') - }) - - t.throws(function () { - npa('gopher://yea right') - }, 'Unsupported URL Type: gopher://yea right') - - t.end() -}) diff --git a/deps/npm/node_modules/npm-package-arg/test/bitbucket.js b/deps/npm/node_modules/npm-package-arg/test/bitbucket.js deleted file mode 100644 index 53efd89862..0000000000 --- a/deps/npm/node_modules/npm-package-arg/test/bitbucket.js +++ /dev/null @@ -1,81 +0,0 @@ -var npa = require('../npa.js') - -require('tap').test('basic', function (t) { - t.setMaxListeners(999) - - var tests = { - 'bitbucket:user/foo-js': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'bitbucket:user/foo-js', - raw: 'bitbucket:user/foo-js' - }, - - 'bitbucket:user/foo-js#bar/baz': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'bitbucket:user/foo-js#bar/baz', - raw: 'bitbucket:user/foo-js#bar/baz' - }, - - 'bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /', - raw: 'bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /' - }, - - 'bitbucket:user/foo-js#bar/baz/bin': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'bitbucket:user/foo-js#bar/baz/bin', - raw: 'bitbucket:user/foo-js#bar/baz/bin' - }, - - 'foo@bitbucket:user/foo-js': { - name: 'foo', - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'bitbucket:user/foo-js', - raw: 'foo@bitbucket:user/foo-js' - }, - - 'git+ssh://git@bitbucket.org/user/foo#1.2.3': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'git+ssh://git@bitbucket.org/user/foo.git#1.2.3', - raw: 'git+ssh://git@bitbucket.org/user/foo#1.2.3' - }, - - 'https://bitbucket.org/user/foo.git': { - name: null, - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'git+https://bitbucket.org/user/foo.git', - raw: 'https://bitbucket.org/user/foo.git' - }, - - '@foo/bar@git+ssh://bitbucket.org/user/foo': { - name: '@foo/bar', - scope: '@foo', - type: 'hosted', - hosted: { type: 'bitbucket' }, - spec: 'git+ssh://git@bitbucket.org/user/foo.git', - rawSpec: 'git+ssh://bitbucket.org/user/foo', - raw: '@foo/bar@git+ssh://bitbucket.org/user/foo' - } - } - - Object.keys(tests).forEach(function (arg) { - var res = npa(arg) - t.type(res, 'Result', arg + ' is a result') - t.has(res, tests[arg], arg + ' matches expectations') - }) - - t.end() -}) diff --git a/deps/npm/node_modules/npm-package-arg/test/github.js b/deps/npm/node_modules/npm-package-arg/test/github.js deleted file mode 100644 index a7cc1f462f..0000000000 --- a/deps/npm/node_modules/npm-package-arg/test/github.js +++ /dev/null @@ -1,104 +0,0 @@ -var npa = require('../npa.js') - -require('tap').test('basic', function (t) { - t.setMaxListeners(999) - - var tests = { - 'user/foo-js': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:user/foo-js', - raw: 'user/foo-js' - }, - - 'user/foo-js#bar/baz': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:user/foo-js#bar/baz', - raw: 'user/foo-js#bar/baz' - }, - - 'user..blerg--/..foo-js# . . . . . some . tags / / /': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:user..blerg--/..foo-js# . . . . . some . tags / / /', - raw: 'user..blerg--/..foo-js# . . . . . some . tags / / /' - }, - - 'user/foo-js#bar/baz/bin': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - raw: 'user/foo-js#bar/baz/bin' - }, - - 'foo@user/foo-js': { - name: 'foo', - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:user/foo-js', - raw: 'foo@user/foo-js' - }, - - 'github:user/foo-js': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:user/foo-js', - raw: 'github:user/foo-js' - }, - - 'git+ssh://git@github.com/user/foo#1.2.3': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'git+ssh://git@github.com/user/foo.git#1.2.3', - raw: 'git+ssh://git@github.com/user/foo#1.2.3' - }, - - 'git://github.com/user/foo': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'git://github.com/user/foo.git', - raw: 'git://github.com/user/foo' - }, - - 'https://github.com/user/foo.git': { - name: null, - type: 'hosted', - hosted: { type: 'github' }, - spec: 'git+https://github.com/user/foo.git', - raw: 'https://github.com/user/foo.git' - }, - - '@foo/bar@git+ssh://github.com/user/foo': { - name: '@foo/bar', - scope: '@foo', - type: 'hosted', - hosted: { type: 'github' }, - spec: 'git+ssh://git@github.com/user/foo.git', - rawSpec: 'git+ssh://github.com/user/foo', - raw: '@foo/bar@git+ssh://github.com/user/foo' - }, - - 'foo@bar/foo': { - name: 'foo', - type: 'hosted', - hosted: { type: 'github' }, - spec: 'github:bar/foo', - raw: 'foo@bar/foo' - } - } - - Object.keys(tests).forEach(function (arg) { - var res = npa(arg) - t.type(res, 'Result', arg + ' is a result') - t.has(res, tests[arg], arg + ' matches expectations') - }) - - t.end() -}) diff --git a/deps/npm/node_modules/npm-package-arg/test/gitlab.js b/deps/npm/node_modules/npm-package-arg/test/gitlab.js deleted file mode 100644 index b1bff98f9c..0000000000 --- a/deps/npm/node_modules/npm-package-arg/test/gitlab.js +++ /dev/null @@ -1,79 +0,0 @@ -var npa = require('../npa.js') - -require('tap').test('basic', function (t) { - t.setMaxListeners(999) - - var tests = { - 'gitlab:user/foo-js': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - raw: 'gitlab:user/foo-js' - }, - - 'gitlab:user/foo-js#bar/baz': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - raw: 'gitlab:user/foo-js#bar/baz' - }, - - 'gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /', - raw: 'gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /' - }, - - 'gitlab:user/foo-js#bar/baz/bin': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'gitlab:user/foo-js#bar/baz/bin', - raw: 'gitlab:user/foo-js#bar/baz/bin' - }, - - 'foo@gitlab:user/foo-js': { - name: 'foo', - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'gitlab:user/foo-js', - raw: 'foo@gitlab:user/foo-js' - }, - - 'git+ssh://git@gitlab.com/user/foo#1.2.3': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'git+ssh://git@gitlab.com/user/foo.git#1.2.3', - raw: 'git+ssh://git@gitlab.com/user/foo#1.2.3' - }, - - 'https://gitlab.com/user/foo.git': { - name: null, - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'git+https://gitlab.com/user/foo.git', - raw: 'https://gitlab.com/user/foo.git' - }, - - '@foo/bar@git+ssh://gitlab.com/user/foo': { - name: '@foo/bar', - scope: '@foo', - type: 'hosted', - hosted: { type: 'gitlab' }, - spec: 'git+ssh://git@gitlab.com/user/foo.git', - rawSpec: 'git+ssh://gitlab.com/user/foo', - raw: '@foo/bar@git+ssh://gitlab.com/user/foo' - } - } - - Object.keys(tests).forEach(function (arg) { - var res = npa(arg) - t.type(res, 'Result', arg + ' is a result') - t.has(res, tests[arg], arg + ' matches expectations') - }) - - t.end() -}) diff --git a/deps/npm/node_modules/npm-package-arg/test/windows.js b/deps/npm/node_modules/npm-package-arg/test/windows.js deleted file mode 100644 index a10fa5b686..0000000000 --- a/deps/npm/node_modules/npm-package-arg/test/windows.js +++ /dev/null @@ -1,79 +0,0 @@ -global.FAKE_WINDOWS = true - -var npa = require('../npa.js') -var test = require('tap').test - -var cases = { - 'C:\\x\\y\\z': { - raw: 'C:\\x\\y\\z', - scope: null, - name: null, - escapedName: null, - rawSpec: 'C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'foo@C:\\x\\y\\z': { - raw: 'foo@C:\\x\\y\\z', - scope: null, - name: 'foo', - escapedName: 'foo', - rawSpec: 'C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'foo@file:///C:\\x\\y\\z': { - raw: 'foo@file:///C:\\x\\y\\z', - scope: null, - name: 'foo', - escapedName: 'foo', - rawSpec: 'file:///C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'foo@file://C:\\x\\y\\z': { - raw: 'foo@file://C:\\x\\y\\z', - scope: null, - name: 'foo', - escapedName: 'foo', - rawSpec: 'file://C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'file:///C:\\x\\y\\z': { - raw: 'file:///C:\\x\\y\\z', - scope: null, - name: null, - escapedName: null, - rawSpec: 'file:///C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'file://C:\\x\\y\\z': { - raw: 'file://C:\\x\\y\\z', - scope: null, - name: null, - escapedName: null, - rawSpec: 'file://C:\\x\\y\\z', - spec: 'C:\\x\\y\\z', - type: 'local' - }, - 'foo@/foo/bar/baz': { - raw: 'foo@/foo/bar/baz', - scope: null, - name: 'foo', - escapedName: 'foo', - rawSpec: '/foo/bar/baz', - spec: '/foo/bar/baz', - type: 'local' - } -} - -test('parse a windows path', function (t) { - Object.keys(cases).forEach(function (c) { - var expect = cases[c] - var actual = npa(c) - t.same(actual, expect, c) - }) - t.end() -}) |