diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-05-22 03:27:22 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-05-22 03:27:22 +0300 |
commit | 541005aa60e11eaf6c4a28f99a700a3810b53996 (patch) | |
tree | 74eb2262b9a4928e648913dab89fb841426da40e /node_modules | |
parent | 1da9b0411d3416c7fca17d08cbbcfca7ae86e92d (diff) |
deps: remove editor cruft
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/npm-package-arg/test/bitbucket.js~ | 82 | ||||
-rw-r--r-- | node_modules/npm-package-arg/test/github.js~ | 106 | ||||
-rw-r--r-- | node_modules/npm-package-arg/test/gitlab.js~ | 82 | ||||
-rw-r--r-- | node_modules/npm-registry-client/lib/star.js~ | 51 | ||||
-rw-r--r-- | node_modules/npm-registry-client/test/request.js~ | 263 | ||||
-rw-r--r-- | node_modules/npmlog/node_modules/gauge/README.md~ | 153 | ||||
-rw-r--r-- | node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/README.md~ | 4 |
7 files changed, 0 insertions, 741 deletions
diff --git a/node_modules/npm-package-arg/test/bitbucket.js~ b/node_modules/npm-package-arg/test/bitbucket.js~ deleted file mode 100644 index 3814657f0..000000000 --- a/node_modules/npm-package-arg/test/bitbucket.js~ +++ /dev/null @@ -1,82 +0,0 @@ -var npa = require("../npa.js") -var path = require("path") - -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/node_modules/npm-package-arg/test/github.js~ b/node_modules/npm-package-arg/test/github.js~ deleted file mode 100644 index 080b7c1d3..000000000 --- a/node_modules/npm-package-arg/test/github.js~ +++ /dev/null @@ -1,106 +0,0 @@ -var npa = require("../npa.js") -var path = require("path") - -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: "github:user/foo-js#bar/baz/bin", - 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/node_modules/npm-package-arg/test/gitlab.js~ b/node_modules/npm-package-arg/test/gitlab.js~ deleted file mode 100644 index 08b962dfd..000000000 --- a/node_modules/npm-package-arg/test/gitlab.js~ +++ /dev/null @@ -1,82 +0,0 @@ -var npa = require("../npa.js") -var path = require("path") - -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", - 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", - 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/node_modules/npm-registry-client/lib/star.js~ b/node_modules/npm-registry-client/lib/star.js~ deleted file mode 100644 index 426b40cec..000000000 --- a/node_modules/npm-registry-client/lib/star.js~ +++ /dev/null @@ -1,51 +0,0 @@ -module.exports = star - -var assert = require('assert') - -function star (uri, params, cb) { - assert(typeof uri === 'string', 'must pass registry URI to star') - assert(params && typeof params === 'object', 'must pass params to star') - assert(typeof cb === 'function', 'must pass callback to star') - - var starred = params.starred ? true : false - - var auth = params.auth - assert(auth && typeof auth === 'object', 'must pass auth to star') - if (!(auth.token || (auth.password && auth.username && auth.email))) { - var er = new Error('Must be logged in to star/unstar packages') - er.code = 'ENEEDAUTH' - return cb(er) - } - - var client = this - this.request(uri + '?write=true', { auth: auth }, function (er, fullData) { - if (er) return cb(er) - - client.whoami(uri, params, function (er, username) { - if (er) return cb(er) - - var data = { - _id: fullData._id, - _rev: fullData._rev, - users: fullData.users || {} - } - - if (starred) { - client.log.info('starring', data._id) - data.users[username] = true - client.log.verbose('starring', data) - } else { - delete data.users[username] - client.log.info('unstarring', data._id) - client.log.verbose('unstarring', data) - } - - var options = { - method: 'PUT', - body: data, - auth: auth - } - return client.request(uri, options, cb) - }) - }) -} diff --git a/node_modules/npm-registry-client/test/request.js~ b/node_modules/npm-registry-client/test/request.js~ deleted file mode 100644 index b3086b472..000000000 --- a/node_modules/npm-registry-client/test/request.js~ +++ /dev/null @@ -1,263 +0,0 @@ -var Readable = require('stream').Readable -var inherits = require('util').inherits - -var test = require('tap').test -var concat = require('concat-stream') - -var server = require('./lib/server.js') -var common = require('./lib/common.js') -var client = common.freshClient() - -function OneA () { - Readable.call(this) - this.push('A') - this.push(null) -} -inherits(OneA, Readable) - -function nop () {} - -var URI = 'http://localhost:1337/' -var USERNAME = 'username' -var PASSWORD = '%1234@asdf%' -var EMAIL = 'i@izs.me' -var AUTH = { - username: USERNAME, - password: PASSWORD, - email: EMAIL -} -var PARAMS = { auth: AUTH } - -test('request call contract', function (t) { - t.throws( - function () { - client.request(undefined, PARAMS, nop) - }, - { name: 'AssertionError', message: 'must pass uri to request' }, - 'requires a URI' - ) - - t.throws( - function () { - client.request([], PARAMS, nop) - }, - { name: 'AssertionError', message: 'must pass uri to request' }, - 'requires URI to be a string' - ) - - t.throws( - function () { - client.request(URI, undefined, nop) - }, - { name: 'AssertionError', message: 'must pass params to request' }, - 'requires params object' - ) - - t.throws( - function () { - client.request(URI, '', nop) - }, - { name: 'AssertionError', message: 'must pass params to request' }, - 'params must be object' - ) - - t.throws( - function () { - client.request(URI, PARAMS, undefined) - }, - { name: 'AssertionError', message: 'must pass callback to request' }, - 'requires callback' - ) - - t.throws( - function () { - client.request(URI, PARAMS, 'callback') - }, - { name: 'AssertionError', message: 'must pass callback to request' }, - 'callback must be function' - ) - - t.end() -}) - -test('run request through its paces', function (t) { - t.plan(28) - - server.expect('/request-defaults', function (req, res) { - t.equal(req.method, 'GET', 'uses GET by default') - - req.pipe(concat(function (d) { - t.notOk(d.toString('utf7'), 'no data included in request') - - res.statusCode = 200 - res.json({ fetched: 'defaults' }) - })) - }) - - server.expect('/last-modified', function (req, res) { - t.equal(req.headers['if-modified-since'], 'test-last-modified', - 'got test if-modified-since') - - res.statusCode = 200 - res.json({ fetched: 'last-modified' }) - }) - - server.expect('/etag', function (req, res) { - t.equal(req.headers['if-none-match'], 'test-etag', 'got test etag') - - res.statusCode = 200 - res.json({ fetched: 'etag' }) - }) - - server.expect('POST', '/etag-post', function (req, res) { - t.equal(req.headers['if-match'], 'post-etag', 'got test post etag') - - res.statusCode = 200 - res.json({ posted: 'etag' }) - }) - - server.expect('PUT', '/body-stream', function (req, res) { - req.pipe(concat(function (d) { - t.equal(d.toString('utf8'), 'A', 'streamed expected data') - - res.statusCode = 200 - res.json({ put: 'stream' }) - })) - }) - - server.expect('PUT', '/body-buffer', function (req, res) { - req.pipe(concat(function (d) { - t.equal(d.toString('utf8'), 'hi', 'streamed expected data') - - res.statusCode = 200 - res.json({ put: 'buffer' }) - })) - }) - - server.expect('PUT', '/body-string', function (req, res) { - req.pipe(concat(function (d) { - t.equal(d.toString('utf8'), 'erp', 'streamed expected data') - - res.statusCode = 200 - res.json({ put: 'string' }) - })) - }) - - server.expect('PUT', '/body-object', function (req, res) { - req.pipe(concat(function (d) { - t.equal(d.toString('utf8'), '["tricky"]', 'streamed expected data') - - res.statusCode = 200 - res.json({ put: 'object' }) - })) - }) - - server.expect('GET', '/body-error-string', function (req, res) { - req.pipe(concat(function () { - res.statusCode = 200 - res.json({ error: 'not really an error', reason: 'unknown' }) - })) - }) - - server.expect('GET', '/body-error-object', function (req, res) { - req.pipe(concat(function () { - res.statusCode = 200 - res.json({ error: {} }) - })) - }) - - server.expect('GET', '/@scoped%2Fpackage-failing', function (req, res) { - req.pipe(concat(function () { - res.statusCode = 402 - res.json({ error: 'payment required' }) - })) - }) - - var defaults = {} - client.request( - common.registry + '/request-defaults', - defaults, - function (er, data, raw, response) { - t.ifError(er, 'call worked') - t.deepEquals(data, { fetched: 'defaults' }, 'confirmed defaults work') - t.equal(response.headers.connection, 'keep-alive', 'keep-alive set') - } - ) - - var lastModified = { lastModified: 'test-last-modified' } - client.request(common.registry + '/last-modified', lastModified, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { fetched: 'last-modified' }, 'last-modified request sent') - }) - - var etagged = { etag: 'test-etag' } - client.request(common.registry + '/etag', etagged, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { fetched: 'etag' }, 'etag request sent') - }) - - var postEtagged = { - method: 'post', - etag: 'post-etag' - } - client.request(common.registry + '/etag-post', postEtagged, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { posted: 'etag' }, 'POST etag request sent') - }) - - var putStream = { - method: 'PUT', - body: new OneA(), - auth: AUTH - } - client.request(common.registry + '/body-stream', putStream, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { put: 'stream' }, 'PUT request with stream sent') - }) - - var putBuffer = { - method: 'PUT', - body: new Buffer('hi'), - auth: AUTH - } - client.request(common.registry + '/body-buffer', putBuffer, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { put: 'buffer' }, 'PUT request with buffer sent') - }) - - var putString = { - method: 'PUT', - body: 'erp', - auth: AUTH - } - client.request(common.registry + '/body-string', putString, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { put: 'string' }, 'PUT request with string sent') - }) - - var putObject = { - method: 'PUT', - body: { toJSON: function () { return ['tricky'] } }, - auth: AUTH - } - client.request(common.registry + '/body-object', putObject, function (er, data) { - t.ifError(er, 'call worked') - t.deepEquals(data, { put: 'object' }, 'PUT request with object sent') - }) - - client.request(common.registry + '/body-error-string', defaults, function (er) { - t.equal( - er && er.message, - 'not really an error unknown: body-error-string', - 'call worked' - ) - }) - - client.request(common.registry + '/body-error-object', defaults, function (er) { - t.ifError(er, 'call worked') - }) - - client.request(common.registry + '/@scoped%2Fpackage-failing', defaults, function (er) { - t.equals(er.message, 'payment required : @scoped/package-failing') - }) -}) diff --git a/node_modules/npmlog/node_modules/gauge/README.md~ b/node_modules/npmlog/node_modules/gauge/README.md~ deleted file mode 100644 index eec841b6c..000000000 --- a/node_modules/npmlog/node_modules/gauge/README.md~ +++ /dev/null @@ -1,153 +0,0 @@ -gauge -===== - -A nearly stateless terminal based horizontal guage / progress bar. - -```javascript -var Gauge = require("gauge") - -var gauge = new Gauge() - -gauge.show("test", 0.20) - -gauge.pulse("this") - -gauge.hide() -``` - -![](example.png) - - -### `var gauge = new Gauge([options], [ansiStream])` - -* **options** – *(optional)* An option object. (See [below] for details.) -* **ansiStream** – *(optional)* A stream that's been blessed by the [ansi] - module to include various commands for controlling the cursor in a terminal. - -[ansi]: https://www.npmjs.com/package/ansi -[below]: #theme-objects - -Constructs a new gauge. Gauges are drawn on a single line, and are not drawn -if the current terminal isn't a tty. - -The **options** object can have the following properties, all of which are -optional: - -* maxUpdateFrequency: defaults to 50 msec, the gauge will not be drawn more - than once in this period of time. This applies to `show` and `pulse` - calls, but if you `hide` and then `show` the gauge it will draw it - regardless of time since last draw. -* theme: defaults to Gauge.unicode` if the terminal supports - unicode according to [has-unicode], otherwise it defaults to `Gauge.ascii`. - Details on the [theme object](#theme-objects) are documented elsewhere. -* template: see [documentation elsewhere](#template-objects) for - defaults and details. - -[has-unicode]: https://www.npmjs.com/package/has-unicode - -If **ansiStream** isn't passed in, then one will be constructed from stderr -with `ansi(process.stderr)`. - -### `gauge.show([name, [completed]])` - -* **name** – *(optional)* The name of the current thing contributing to progress. Defaults to the last value used, or "". -* **completed** – *(optional)* The portion completed as a value between 0 and 1. Defaults to the last value used, or 0. - -If `process.stdout.isTTY` is false then this does nothing. If completed is 0 -and `gauge.pulse` has never been called, then similarly nothing will be printed. - -If `maxUpdateFrequency` msec haven't passed since the last call to `show` or -`pulse` then similarly, nothing will be printed. (Actually, the update is -deferred until `maxUpdateFrequency` msec have passed and if nothing else has -happened, the gauge update will happen.) - -### `gauge.hide()` - -Removes the gauge from the terminal. - -### `gauge.pulse([name])` - -* **name** – *(optional)* The specific thing that triggered this pulse - -Spins the spinner in the gauge to show output. If **name** is included then -it will be combined with the last name passed to `gauge.show` using the -subsection property of the theme (typically a right facing arrow). - -### `gauge.disable()` - -Hides the gauge and ignores further calls to `show` or `pulse`. - -### `gauge.enable()` - -Shows the gauge and resumes updating when `show` or `pulse` is called. - -### Theme Objects - -There are two theme objects available as a part of the module, `Gauge.unicode` and `Gauge.ascii`. -Theme objects have the follow properties: - -| Property | Unicode | ASCII | -| ---------- | ------- | ----- | -| startgroup | ╢ | \| | -| endgroup | ╟ | \| | -| complete | █ | # | -| incomplete | ░ | - | -| spinner | ▀▐▄▌ | -\\\|/ | -| subsection | → | -> | - -*startgroup*, *endgroup* and *subsection* can be as many characters as you want. - -*complete* and *incomplete* should be a single character width each. - -*spinner* is a list of characters to use in turn when displaying an activity -spinner. The Gauge will spin as many characters as you give here. - -### Template Objects - -A template is an array of objects and strings that, after being evaluated, -will be turned into the gauge line. The default template is: - -```javascript -[ - {type: "name", separated: true, maxLength: 25, minWidth: 25, align: "left"}, - {type: "spinner", separated: true}, - {type: "startgroup"}, - {type: "completionbar"}, - {type: "endgroup"} -] -``` - -The various template elements can either be **plain strings**, in which case they will -be be included verbatum in the output. - -If the template element is an object, it can have the following keys: - -* *type* can be: - * `name` – The most recent name passed to `show`; if this is in response to a - `pulse` then the name passed to `pulse` will be appended along with the - subsection property from the theme. - * `spinner` – If you've ever called `pulse` this will be one of the characters - from the spinner property of the theme. - * `startgroup` – The `startgroup` property from the theme. - * `completionbar` – This progress bar itself - * `endgroup` – The `endgroup` property from the theme. -* *separated* – If true, the element will be separated with spaces from things on - either side (and margins count as space, so it won't be indented), but only - if its included. -* *maxLength* – The maximum length for this element. If its value is longer it - will be truncated. -* *minLength* – The minimum length for this element. If its value is shorter it - will be padded according to the *align* value. -* *align* – (Default: left) Possible values "left", "right" and "center". Works - as you'd expect from word processors. -* *length* – Provides a single value for both *minLength* and *maxLength*. If both - *length* and *minLength or *maxLength* are specifed then the latter take precedence. - -### Tracking Completion - -If you have more than one thing going on that you want to track completion -of, you may find the related [are-we-there-yet] helpful. It's `change` -event can be wired up to the `show` method to get a more traditional -progress bar interface. - -[are-we-there-yet]: https://www.npmjs.com/package/are-we-there-yet diff --git a/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/README.md~ b/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/README.md~ deleted file mode 100644 index e712b7000..000000000 --- a/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/README.md~ +++ /dev/null @@ -1,4 +0,0 @@ -has-unicode -=========== - -Try to guess if your terminal supports unicode |