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:
authorisaacs <i@izs.me>2014-07-25 04:51:29 +0400
committerisaacs <i@izs.me>2014-07-25 04:52:02 +0400
commitea547e29f1245e516fc67641875841c10f04e1ee (patch)
treed4ee0d8a6c49f20ce4a402f17bd4e350136c1a7b /node_modules/npm-registry-client
parent33ccd13d161ff185d9c9c545013e0775f86c13ac (diff)
Bump semver to version 3
This makes the '^' operator stricter for 0.x.y versions, even if 'x' is not 0. As a direct result, several *other* deps had to be updated, because they either depended on semver 2.x, or because the new stricter rules meant that they (or their deps) were no longer valid. The update to 'read-installed', in particular, causes a test failure. That update must be rolled back, or the test made to pass, prior to a stable npm 2.0.0 release going out.
Diffstat (limited to 'node_modules/npm-registry-client')
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/.npmignore2
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/.travis.yml5
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/LICENSE21
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/examples/pow.js6
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/index.js82
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/package.json52
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/readme.markdown63
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/chmod.js38
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/clobber.js37
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/mkdirp.js28
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/perm.js32
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/perm_sync.js39
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/race.js41
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/rel.js32
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/return.js25
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/return_sync.js24
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/root.js18
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/sync.js32
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/umask.js28
-rw-r--r--node_modules/npm-registry-client/node_modules/mkdirp/test/umask_sync.js32
-rw-r--r--node_modules/npm-registry-client/package.json50
21 files changed, 8 insertions, 679 deletions
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/.npmignore b/node_modules/npm-registry-client/node_modules/mkdirp/.npmignore
deleted file mode 100644
index 9303c347e..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/.npmignore
+++ /dev/null
@@ -1,2 +0,0 @@
-node_modules/
-npm-debug.log \ No newline at end of file
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/.travis.yml b/node_modules/npm-registry-client/node_modules/mkdirp/.travis.yml
deleted file mode 100644
index 84fd7ca24..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/.travis.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-language: node_js
-node_js:
- - 0.6
- - 0.8
- - 0.9
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/LICENSE b/node_modules/npm-registry-client/node_modules/mkdirp/LICENSE
deleted file mode 100644
index 432d1aeb0..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright 2010 James Halliday (mail@substack.net)
-
-This project is free software released under the MIT/X11 license:
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/examples/pow.js b/node_modules/npm-registry-client/node_modules/mkdirp/examples/pow.js
deleted file mode 100644
index e6924212e..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/examples/pow.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var mkdirp = require('mkdirp');
-
-mkdirp('/tmp/foo/bar/baz', function (err) {
- if (err) console.error(err)
- else console.log('pow!')
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/index.js b/node_modules/npm-registry-client/node_modules/mkdirp/index.js
deleted file mode 100644
index fda6de8a2..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/index.js
+++ /dev/null
@@ -1,82 +0,0 @@
-var path = require('path');
-var fs = require('fs');
-
-module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
-
-function mkdirP (p, mode, f, made) {
- if (typeof mode === 'function' || mode === undefined) {
- f = mode;
- mode = 0777 & (~process.umask());
- }
- if (!made) made = null;
-
- var cb = f || function () {};
- if (typeof mode === 'string') mode = parseInt(mode, 8);
- p = path.resolve(p);
-
- fs.mkdir(p, mode, function (er) {
- if (!er) {
- made = made || p;
- return cb(null, made);
- }
- switch (er.code) {
- case 'ENOENT':
- mkdirP(path.dirname(p), mode, function (er, made) {
- if (er) cb(er, made);
- else mkdirP(p, mode, cb, made);
- });
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- fs.stat(p, function (er2, stat) {
- // if the stat fails, then that's super weird.
- // let the original error be the failure reason.
- if (er2 || !stat.isDirectory()) cb(er, made)
- else cb(null, made);
- });
- break;
- }
- });
-}
-
-mkdirP.sync = function sync (p, mode, made) {
- if (mode === undefined) {
- mode = 0777 & (~process.umask());
- }
- if (!made) made = null;
-
- if (typeof mode === 'string') mode = parseInt(mode, 8);
- p = path.resolve(p);
-
- try {
- fs.mkdirSync(p, mode);
- made = made || p;
- }
- catch (err0) {
- switch (err0.code) {
- case 'ENOENT' :
- made = sync(path.dirname(p), mode, made);
- sync(p, mode, made);
- break;
-
- // In the case of any other error, just see if there's a dir
- // there already. If so, then hooray! If not, then something
- // is borked.
- default:
- var stat;
- try {
- stat = fs.statSync(p);
- }
- catch (err1) {
- throw err0;
- }
- if (!stat.isDirectory()) throw err0;
- break;
- }
- }
-
- return made;
-};
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/package.json b/node_modules/npm-registry-client/node_modules/mkdirp/package.json
deleted file mode 100644
index 88110b968..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/package.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "mkdirp",
- "description": "Recursively mkdir, like `mkdir -p`",
- "version": "0.3.5",
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "main": "./index",
- "keywords": [
- "mkdir",
- "directory"
- ],
- "repository": {
- "type": "git",
- "url": "http://github.com/substack/node-mkdirp.git"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "devDependencies": {
- "tap": "~0.4.0"
- },
- "license": "MIT",
- "readme": "# mkdirp\n\nLike `mkdir -p`, but in node.js!\n\n[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)\n\n# example\n\n## pow.js\n\n```js\nvar mkdirp = require('mkdirp');\n \nmkdirp('/tmp/foo/bar/baz', function (err) {\n if (err) console.error(err)\n else console.log('pow!')\n});\n```\n\nOutput\n\n```\npow!\n```\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\n# methods\n\n```js\nvar mkdirp = require('mkdirp');\n```\n\n## mkdirp(dir, mode, cb)\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\n`cb(err, made)` fires with the error or the first directory `made`\nthat had to be created, if any.\n\n## mkdirp.sync(dir, mode)\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\nReturns the first directory that had to be created, if any.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install mkdirp\n```\n\n# license\n\nMIT\n",
- "readmeFilename": "readme.markdown",
- "_id": "mkdirp@0.3.5",
- "dist": {
- "shasum": "de3e5f8961c88c787ee1368df849ac4413eca8d7",
- "tarball": "http://localhost:1337/mkdirp/-/mkdirp-0.3.5.tgz"
- },
- "_from": "mkdirp@>=0.3.3-0 <0.4.0-0",
- "_npmVersion": "1.2.2",
- "_npmUser": {
- "name": "substack",
- "email": "mail@substack.net"
- },
- "maintainers": [
- {
- "name": "substack",
- "email": "mail@substack.net"
- }
- ],
- "directories": {},
- "_shasum": "de3e5f8961c88c787ee1368df849ac4413eca8d7",
- "_resolved": "http://localhost:1337/mkdirp/-/mkdirp-0.3.5.tgz",
- "bugs": {
- "url": "https://github.com/substack/node-mkdirp/issues"
- },
- "homepage": "https://github.com/substack/node-mkdirp"
-}
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/readme.markdown b/node_modules/npm-registry-client/node_modules/mkdirp/readme.markdown
deleted file mode 100644
index 83b0216ab..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/readme.markdown
+++ /dev/null
@@ -1,63 +0,0 @@
-# mkdirp
-
-Like `mkdir -p`, but in node.js!
-
-[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)
-
-# example
-
-## pow.js
-
-```js
-var mkdirp = require('mkdirp');
-
-mkdirp('/tmp/foo/bar/baz', function (err) {
- if (err) console.error(err)
- else console.log('pow!')
-});
-```
-
-Output
-
-```
-pow!
-```
-
-And now /tmp/foo/bar/baz exists, huzzah!
-
-# methods
-
-```js
-var mkdirp = require('mkdirp');
-```
-
-## mkdirp(dir, mode, cb)
-
-Create a new directory and any necessary subdirectories at `dir` with octal
-permission string `mode`.
-
-If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
-
-`cb(err, made)` fires with the error or the first directory `made`
-that had to be created, if any.
-
-## mkdirp.sync(dir, mode)
-
-Synchronously create a new directory and any necessary subdirectories at `dir`
-with octal permission string `mode`.
-
-If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
-
-Returns the first directory that had to be created, if any.
-
-# install
-
-With [npm](http://npmjs.org) do:
-
-```
-npm install mkdirp
-```
-
-# license
-
-MIT
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/chmod.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/chmod.js
deleted file mode 100644
index 520dcb8e9..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/chmod.js
+++ /dev/null
@@ -1,38 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-test('chmod-pre', function (t) {
- var mode = 0744
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.equal(stat && stat.mode & 0777, mode, 'should be 0744');
- t.end();
- });
- });
-});
-
-test('chmod', function (t) {
- var mode = 0755
- mkdirp(file, mode, function (er) {
- t.ifError(er, 'should not error');
- fs.stat(file, function (er, stat) {
- t.ifError(er, 'should exist');
- t.ok(stat && stat.isDirectory(), 'should be directory');
- t.end();
- });
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/clobber.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/clobber.js
deleted file mode 100644
index 0eb709987..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/clobber.js
+++ /dev/null
@@ -1,37 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-var ps = [ '', 'tmp' ];
-
-for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
-}
-
-var file = ps.join('/');
-
-// a file in the way
-var itw = ps.slice(0, 3).join('/');
-
-
-test('clobber-pre', function (t) {
- console.error("about to write to "+itw)
- fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.');
-
- fs.stat(itw, function (er, stat) {
- t.ifError(er)
- t.ok(stat && stat.isFile(), 'should be file')
- t.end()
- })
-})
-
-test('clobber', function (t) {
- t.plan(2);
- mkdirp(file, 0755, function (err) {
- t.ok(err);
- t.equal(err.code, 'ENOTDIR');
- t.end();
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/mkdirp.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/mkdirp.js
deleted file mode 100644
index b07cd70c1..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/mkdirp.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('woo', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/perm.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/perm.js
deleted file mode 100644
index 23a7abbd2..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/perm.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('async perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16);
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
-
-test('async root perm', function (t) {
- mkdirp('/tmp', 0755, function (err) {
- if (err) t.fail(err);
- t.end();
- });
- t.end();
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/perm_sync.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/perm_sync.js
deleted file mode 100644
index f685f6090..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/perm_sync.js
+++ /dev/null
@@ -1,39 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync perm', function (t) {
- t.plan(2);
- var file = '/tmp/' + (Math.random() * (1<<30)).toString(16) + '.json';
-
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
-
-test('sync root perm', function (t) {
- t.plan(1);
-
- var file = '/tmp';
- mkdirp.sync(file, 0755);
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/race.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/race.js
deleted file mode 100644
index 96a044763..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/race.js
+++ /dev/null
@@ -1,41 +0,0 @@
-var mkdirp = require('../').mkdirp;
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('race', function (t) {
- t.plan(4);
- var ps = [ '', 'tmp' ];
-
- for (var i = 0; i < 25; i++) {
- var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- ps.push(dir);
- }
- var file = ps.join('/');
-
- var res = 2;
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- mk(file, function () {
- if (--res === 0) t.end();
- });
-
- function mk (file, cb) {
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- if (cb) cb();
- }
- })
- })
- });
- }
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/rel.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/rel.js
deleted file mode 100644
index 79858243a..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/rel.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('rel', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var cwd = process.cwd();
- process.chdir('/tmp');
-
- var file = [x,y,z].join('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- process.chdir(cwd);
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/return.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/return.js
deleted file mode 100644
index bce68e561..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/return.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(4);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, '/tmp/' + x);
- mkdirp(file, function (err, made) {
- t.ifError(err);
- t.equal(made, null);
- });
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/return_sync.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/return_sync.js
deleted file mode 100644
index 7c222d355..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/return_sync.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('return value', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- // should return the first dir created.
- // By this point, it would be profoundly surprising if /tmp didn't
- // already exist, since every other test makes things in there.
- // Note that this will throw on failure, which will fail the test.
- var made = mkdirp.sync(file);
- t.equal(made, '/tmp/' + x);
-
- // making the same file again should have no effect.
- made = mkdirp.sync(file);
- t.equal(made, null);
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/root.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/root.js
deleted file mode 100644
index 97ad7a2f3..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/root.js
+++ /dev/null
@@ -1,18 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('root', function (t) {
- // '/' on unix, 'c:/' on windows.
- var file = path.resolve('/');
-
- mkdirp(file, 0755, function (err) {
- if (err) throw err
- fs.stat(file, function (er, stat) {
- if (er) throw er
- t.ok(stat.isDirectory(), 'target is a directory');
- t.end();
- })
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/sync.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/sync.js
deleted file mode 100644
index 7530cada8..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('sync', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file, 0755);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0755);
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/umask.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/umask.js
deleted file mode 100644
index 64ccafe22..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/umask.js
+++ /dev/null
@@ -1,28 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('implicit mode from umask', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- mkdirp(file, function (err) {
- if (err) t.fail(err);
- else path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, 0777 & (~process.umask()));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- })
- })
- });
-});
diff --git a/node_modules/npm-registry-client/node_modules/mkdirp/test/umask_sync.js b/node_modules/npm-registry-client/node_modules/mkdirp/test/umask_sync.js
deleted file mode 100644
index 35bd5cbbf..000000000
--- a/node_modules/npm-registry-client/node_modules/mkdirp/test/umask_sync.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var mkdirp = require('../');
-var path = require('path');
-var fs = require('fs');
-var test = require('tap').test;
-
-test('umask sync modes', function (t) {
- t.plan(2);
- var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
- var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
-
- var file = '/tmp/' + [x,y,z].join('/');
-
- try {
- mkdirp.sync(file);
- } catch (err) {
- t.fail(err);
- return t.end();
- }
-
- path.exists(file, function (ex) {
- if (!ex) t.fail('file not created')
- else fs.stat(file, function (err, stat) {
- if (err) t.fail(err)
- else {
- t.equal(stat.mode & 0777, (0777 & (~process.umask())));
- t.ok(stat.isDirectory(), 'target not a directory');
- t.end();
- }
- });
- });
-});
diff --git a/node_modules/npm-registry-client/package.json b/node_modules/npm-registry-client/package.json
index 15623f6e6..6acb40410 100644
--- a/node_modules/npm-registry-client/package.json
+++ b/node_modules/npm-registry-client/package.json
@@ -1,12 +1,8 @@
{
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"name": "npm-registry-client",
"description": "Client for the npm registry",
- "version": "3.0.2",
+ "version": "3.0.5",
"repository": {
"url": "git://github.com/isaacs/npm-registry-client"
},
@@ -17,15 +13,14 @@
"dependencies": {
"chownr": "0",
"graceful-fs": "^3.0.0",
- "mkdirp": "~0.3.3",
- "normalize-package-data": "^0.4.0",
+ "mkdirp": "0.5",
+ "normalize-package-data": "0.4",
"npm-cache-filename": "^1.0.0",
"request": "2 >=2.25.0",
"retry": "0.6.0",
- "rimraf": "~2",
- "semver": "2 >=2.2.1",
- "slide": "~1.1.3",
- "npmlog": ""
+ "rimraf": "2",
+ "semver": "2 >=2.2.1 || 3.x",
+ "slide": "^1.1.3"
},
"devDependencies": {
"tap": ""
@@ -33,34 +28,5 @@
"optionalDependencies": {
"npmlog": ""
},
- "license": "BSD",
- "gitHead": "15343019160ace0b9874cf0ec186b3425dbc7301",
- "bugs": {
- "url": "https://github.com/isaacs/npm-registry-client/issues"
- },
- "homepage": "https://github.com/isaacs/npm-registry-client",
- "_id": "npm-registry-client@3.0.2",
- "_shasum": "5dd0910157ce55f4286a1871d39f9a2128cd3c99",
- "_from": "npm-registry-client@3.0.2",
- "_npmVersion": "1.5.0-alpha-2",
- "_npmUser": {
- "name": "othiym23",
- "email": "ogd@aoaioxxysz.net"
- },
- "maintainers": [
- {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- {
- "name": "othiym23",
- "email": "ogd@aoaioxxysz.net"
- }
- ],
- "dist": {
- "shasum": "5dd0910157ce55f4286a1871d39f9a2128cd3c99",
- "tarball": "http://registry.npmjs.org/npm-registry-client/-/npm-registry-client-3.0.2.tgz"
- },
- "directories": {},
- "_resolved": "https://registry.npmjs.org/npm-registry-client/-/npm-registry-client-3.0.2.tgz"
+ "license": "BSD"
}