From ae5a209b114508ec4290ab31b37ef3a34bdab15a Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 10 Jul 2012 16:16:25 -0700 Subject: [PATCH] npm: Upgrade to 1.1.37 --- deps/npm/.npmignore | 22 +- deps/npm/AUTHORS | 5 + deps/npm/LICENSE | 5 + deps/npm/README.md | 6 - deps/npm/bin/npm | 13 +- deps/npm/bin/npm-cli.js | 12 +- deps/npm/bin/read-package-json.js | 2 +- deps/npm/doc/cli/coding-style.md | 21 +- deps/npm/doc/cli/config.md | 148 ++++-- deps/npm/doc/cli/init.md | 1 + deps/npm/doc/cli/install.md | 2 +- deps/npm/doc/cli/json.md | 19 +- deps/npm/doc/cli/list.md | 20 +- deps/npm/html/api/bin.html | 2 +- deps/npm/html/api/bugs.html | 2 +- deps/npm/html/api/commands.html | 2 +- deps/npm/html/api/config.html | 2 +- deps/npm/html/api/deprecate.html | 2 +- deps/npm/html/api/docs.html | 2 +- deps/npm/html/api/edit.html | 2 +- deps/npm/html/api/explore.html | 2 +- deps/npm/html/api/help-search.html | 2 +- deps/npm/html/api/init.html | 2 +- deps/npm/html/api/install.html | 2 +- deps/npm/html/api/link.html | 2 +- deps/npm/html/api/load.html | 2 +- deps/npm/html/api/ls.html | 2 +- deps/npm/html/api/npm.html | 4 +- deps/npm/html/api/outdated.html | 2 +- deps/npm/html/api/owner.html | 2 +- deps/npm/html/api/pack.html | 2 +- deps/npm/html/api/prefix.html | 2 +- deps/npm/html/api/prune.html | 2 +- deps/npm/html/api/publish.html | 2 +- deps/npm/html/api/rebuild.html | 2 +- deps/npm/html/api/restart.html | 2 +- deps/npm/html/api/root.html | 2 +- deps/npm/html/api/run-script.html | 2 +- deps/npm/html/api/search.html | 2 +- deps/npm/html/api/shrinkwrap.html | 2 +- deps/npm/html/api/start.html | 2 +- deps/npm/html/api/stop.html | 2 +- deps/npm/html/api/submodule.html | 2 +- deps/npm/html/api/tag.html | 2 +- deps/npm/html/api/test.html | 2 +- deps/npm/html/api/uninstall.html | 2 +- deps/npm/html/api/unpublish.html | 2 +- deps/npm/html/api/update.html | 2 +- deps/npm/html/api/version.html | 2 +- deps/npm/html/api/view.html | 2 +- deps/npm/html/api/whoami.html | 2 +- deps/npm/html/doc/README.html | 10 +- deps/npm/html/doc/adduser.html | 2 +- deps/npm/html/doc/bin.html | 2 +- deps/npm/html/doc/bugs.html | 2 +- deps/npm/html/doc/build.html | 2 +- deps/npm/html/doc/bundle.html | 2 +- deps/npm/html/doc/cache.html | 2 +- deps/npm/html/doc/changelog.html | 2 +- deps/npm/html/doc/coding-style.html | 23 +- deps/npm/html/doc/completion.html | 2 +- deps/npm/html/doc/config.html | 135 +++-- deps/npm/html/doc/deprecate.html | 2 +- deps/npm/html/doc/developers.html | 2 +- deps/npm/html/doc/disputes.html | 2 +- deps/npm/html/doc/docs.html | 2 +- deps/npm/html/doc/edit.html | 2 +- deps/npm/html/doc/explore.html | 2 +- deps/npm/html/doc/faq.html | 2 +- deps/npm/html/doc/folders.html | 2 +- deps/npm/html/doc/help-search.html | 2 +- deps/npm/html/doc/help.html | 2 +- deps/npm/html/doc/index.html | 2 +- deps/npm/html/doc/init.html | 4 +- deps/npm/html/doc/install.html | 4 +- deps/npm/html/doc/json.html | 21 +- deps/npm/html/doc/link.html | 2 +- deps/npm/html/doc/list.html | 22 +- deps/npm/html/doc/npm.html | 4 +- deps/npm/html/doc/outdated.html | 2 +- deps/npm/html/doc/owner.html | 2 +- deps/npm/html/doc/pack.html | 2 +- deps/npm/html/doc/prefix.html | 2 +- deps/npm/html/doc/prune.html | 2 +- deps/npm/html/doc/publish.html | 2 +- deps/npm/html/doc/rebuild.html | 2 +- deps/npm/html/doc/registry.html | 2 +- deps/npm/html/doc/removing-npm.html | 2 +- deps/npm/html/doc/restart.html | 2 +- deps/npm/html/doc/root.html | 2 +- deps/npm/html/doc/run-script.html | 2 +- deps/npm/html/doc/scripts.html | 2 +- deps/npm/html/doc/search.html | 2 +- deps/npm/html/doc/semver.html | 2 +- deps/npm/html/doc/shrinkwrap.html | 2 +- deps/npm/html/doc/star.html | 2 +- deps/npm/html/doc/start.html | 2 +- deps/npm/html/doc/stop.html | 2 +- deps/npm/html/doc/submodule.html | 2 +- deps/npm/html/doc/tag.html | 2 +- deps/npm/html/doc/test.html | 2 +- deps/npm/html/doc/uninstall.html | 2 +- deps/npm/html/doc/unpublish.html | 2 +- deps/npm/html/doc/update.html | 2 +- deps/npm/html/doc/version.html | 2 +- deps/npm/html/doc/view.html | 2 +- deps/npm/html/doc/whoami.html | 2 +- deps/npm/html/style.css | 29 +- deps/npm/lib/adduser.js | 89 +++- deps/npm/lib/bugs.js | 16 +- deps/npm/lib/build.js | 20 +- deps/npm/lib/cache.js | 403 +++++++++----- deps/npm/lib/config.js | 11 +- deps/npm/lib/deprecate.js | 7 +- deps/npm/lib/docs.js | 10 +- deps/npm/lib/edit.js | 1 - deps/npm/lib/help-search.js | 7 +- deps/npm/lib/help.js | 4 +- deps/npm/lib/init.js | 227 +------- deps/npm/lib/install.js | 133 +++-- deps/npm/lib/link.js | 37 +- deps/npm/lib/ls.js | 89 +++- deps/npm/lib/npm.js | 80 ++- deps/npm/lib/outdated.js | 17 +- deps/npm/lib/owner.js | 62 ++- deps/npm/lib/pack.js | 3 +- deps/npm/lib/prune.js | 4 +- deps/npm/lib/publish.js | 95 +--- deps/npm/lib/rebuild.js | 12 +- deps/npm/lib/root.js | 1 - deps/npm/lib/run-script.js | 8 +- deps/npm/lib/search.js | 5 +- deps/npm/lib/shrinkwrap.js | 6 +- deps/npm/lib/star.js | 8 +- deps/npm/lib/submodule.js | 1 - deps/npm/lib/substack.js | 14 +- deps/npm/lib/tag.js | 3 +- deps/npm/lib/test.js | 15 +- deps/npm/lib/unbuild.js | 11 +- deps/npm/lib/uninstall.js | 75 ++- deps/npm/lib/unpublish.js | 12 +- deps/npm/lib/update.js | 4 +- deps/npm/lib/utils/cmd-shim.js | 42 +- deps/npm/lib/utils/completion.sh | 15 +- deps/npm/lib/utils/completion/file-completion.js | 19 +- deps/npm/lib/utils/completion/installed-deep.js | 6 +- deps/npm/lib/utils/completion/installed-shallow.js | 2 +- deps/npm/lib/utils/completion/remote-packages.js | 5 +- deps/npm/lib/utils/completion/users.js | 13 +- deps/npm/lib/utils/config-defs.js | 104 ++-- deps/npm/lib/utils/error-handler.js | 158 +++--- deps/npm/lib/utils/exec.js | 40 +- deps/npm/lib/utils/fetch.js | 49 +- deps/npm/lib/utils/find.js | 53 -- deps/npm/lib/utils/ini.js | 8 +- deps/npm/lib/utils/lifecycle.js | 32 +- deps/npm/lib/utils/link.js | 15 +- deps/npm/lib/utils/load-package-defaults.js | 75 --- deps/npm/lib/utils/log.js | 170 ------ deps/npm/lib/utils/npm-registry-client/adduser.js | 100 ---- deps/npm/lib/utils/npm-registry-client/index.js | 16 - deps/npm/lib/utils/npm-registry-client/publish.js | 170 ------ deps/npm/lib/utils/npm-registry-client/request.js | 245 --------- deps/npm/lib/utils/npm-registry-client/star.js | 32 -- deps/npm/lib/utils/npm-registry-client/tag.js | 8 - .../npm/lib/utils/npm-registry-client/unpublish.js | 98 ---- deps/npm/lib/utils/promise-chain.js | 39 -- deps/npm/lib/utils/read-json.js | 580 --------------------- deps/npm/lib/utils/relativize.js | 81 --- deps/npm/lib/utils/sha.js | 17 +- deps/npm/lib/utils/tar.js | 130 +++-- deps/npm/lib/version.js | 25 +- deps/npm/lib/view.js | 16 +- deps/npm/lib/whoami.js | 1 - deps/npm/lib/xmas.js | 8 +- deps/npm/man/man1/README.1 | 9 +- deps/npm/man/man1/adduser.1 | 2 +- deps/npm/man/man1/bin.1 | 2 +- deps/npm/man/man1/bugs.1 | 2 +- deps/npm/man/man1/build.1 | 2 +- deps/npm/man/man1/bundle.1 | 2 +- deps/npm/man/man1/cache.1 | 2 +- deps/npm/man/man1/changelog.1 | 2 +- deps/npm/man/man1/coding-style.1 | 32 +- deps/npm/man/man1/completion.1 | 2 +- deps/npm/man/man1/config.1 | 228 +++++--- deps/npm/man/man1/deprecate.1 | 2 +- deps/npm/man/man1/developers.1 | 2 +- deps/npm/man/man1/disputes.1 | 2 +- deps/npm/man/man1/docs.1 | 2 +- deps/npm/man/man1/edit.1 | 2 +- deps/npm/man/man1/explore.1 | 2 +- deps/npm/man/man1/faq.1 | 2 +- deps/npm/man/man1/folders.1 | 2 +- deps/npm/man/man1/help-search.1 | 2 +- deps/npm/man/man1/help.1 | 2 +- deps/npm/man/man1/index.1 | 2 +- deps/npm/man/man1/init.1 | 5 +- deps/npm/man/man1/install.1 | 4 +- deps/npm/man/man1/json.1 | 22 +- deps/npm/man/man1/link.1 | 2 +- deps/npm/man/man1/list.1 | 29 +- deps/npm/man/man1/npm.1 | 4 +- deps/npm/man/man1/outdated.1 | 2 +- deps/npm/man/man1/owner.1 | 2 +- deps/npm/man/man1/pack.1 | 2 +- deps/npm/man/man1/prefix.1 | 2 +- deps/npm/man/man1/prune.1 | 2 +- deps/npm/man/man1/publish.1 | 2 +- deps/npm/man/man1/rebuild.1 | 2 +- deps/npm/man/man1/registry.1 | 2 +- deps/npm/man/man1/removing-npm.1 | 2 +- deps/npm/man/man1/restart.1 | 2 +- deps/npm/man/man1/root.1 | 2 +- deps/npm/man/man1/run-script.1 | 2 +- deps/npm/man/man1/scripts.1 | 2 +- deps/npm/man/man1/search.1 | 2 +- deps/npm/man/man1/semver.1 | 2 +- deps/npm/man/man1/shrinkwrap.1 | 2 +- deps/npm/man/man1/star.1 | 2 +- deps/npm/man/man1/start.1 | 2 +- deps/npm/man/man1/stop.1 | 2 +- deps/npm/man/man1/submodule.1 | 2 +- deps/npm/man/man1/tag.1 | 2 +- deps/npm/man/man1/test.1 | 2 +- deps/npm/man/man1/uninstall.1 | 2 +- deps/npm/man/man1/unpublish.1 | 2 +- deps/npm/man/man1/update.1 | 2 +- deps/npm/man/man1/version.1 | 2 +- deps/npm/man/man1/view.1 | 2 +- deps/npm/man/man1/whoami.1 | 2 +- deps/npm/man/man3/bin.3 | 2 +- deps/npm/man/man3/bugs.3 | 2 +- deps/npm/man/man3/commands.3 | 2 +- deps/npm/man/man3/config.3 | 2 +- deps/npm/man/man3/deprecate.3 | 2 +- deps/npm/man/man3/docs.3 | 2 +- deps/npm/man/man3/edit.3 | 2 +- deps/npm/man/man3/explore.3 | 2 +- deps/npm/man/man3/help-search.3 | 2 +- deps/npm/man/man3/init.3 | 2 +- deps/npm/man/man3/install.3 | 2 +- deps/npm/man/man3/link.3 | 2 +- deps/npm/man/man3/load.3 | 2 +- deps/npm/man/man3/ls.3 | 2 +- deps/npm/man/man3/npm.3 | 4 +- deps/npm/man/man3/outdated.3 | 2 +- deps/npm/man/man3/owner.3 | 2 +- deps/npm/man/man3/pack.3 | 2 +- deps/npm/man/man3/prefix.3 | 2 +- deps/npm/man/man3/prune.3 | 2 +- deps/npm/man/man3/publish.3 | 2 +- deps/npm/man/man3/rebuild.3 | 2 +- deps/npm/man/man3/restart.3 | 2 +- deps/npm/man/man3/root.3 | 2 +- deps/npm/man/man3/run-script.3 | 2 +- deps/npm/man/man3/search.3 | 2 +- deps/npm/man/man3/shrinkwrap.3 | 2 +- deps/npm/man/man3/start.3 | 2 +- deps/npm/man/man3/stop.3 | 2 +- deps/npm/man/man3/submodule.3 | 2 +- deps/npm/man/man3/tag.3 | 2 +- deps/npm/man/man3/test.3 | 2 +- deps/npm/man/man3/uninstall.3 | 2 +- deps/npm/man/man3/unpublish.3 | 2 +- deps/npm/man/man3/update.3 | 2 +- deps/npm/man/man3/version.3 | 2 +- deps/npm/man/man3/view.3 | 2 +- deps/npm/man/man3/whoami.3 | 2 +- .../{node-gyp/node_modules => }/ansi/.npmignore | 0 .../{node-gyp/node_modules => }/ansi/README.md | 32 +- deps/npm/node_modules/ansi/lib/ansi.js | 368 +++++++++++++ deps/npm/node_modules/ansi/lib/newlines.js | 71 +++ .../{node-gyp/node_modules => }/ansi/package.json | 22 +- .../{node-gyp/node_modules/glob => chownr}/LICENCE | 0 deps/npm/node_modules/couch-login/README.md | 241 +++++++++ deps/npm/node_modules/couch-login/couch-login.js | 287 ++++++++++ deps/npm/node_modules/couch-login/package.json | 27 + deps/npm/node_modules/fstream-npm/LICENCE | 25 + .../{node-gyp/node_modules => }/glob/.npmignore | 0 .../{node-gyp/node_modules => }/glob/.travis.yml | 0 deps/npm/node_modules/glob/LICENCE | 25 + .../{node-gyp/node_modules => }/glob/README.md | 0 .../{node-gyp/node_modules => }/glob/glob.js | 2 +- deps/npm/node_modules/glob/package.json | 35 ++ deps/npm/node_modules/init-package-json/README.md | 43 ++ .../init-package-json/default-input.js | 178 +++++++ .../init-package-json/init-package-json.js | 104 ++++ .../node_modules/promzard/.npmignore | 1 + .../node_modules/promzard/README.md | 130 +++++ .../node_modules/promzard/example/index.js | 11 + .../promzard/example/npm-init/README.md | 8 + .../promzard/example/npm-init/init-input.js | 191 +++++++ .../node_modules/promzard/example/npm-init/init.js | 37 ++ .../promzard/example/npm-init/package.json | 10 + .../promzard/example/substack-input.js | 61 +++ .../node_modules/promzard/package.json | 26 + .../node_modules/promzard/promzard.js | 216 ++++++++ .../node_modules/promzard/test/basic.js | 83 +++ .../node_modules/promzard/test/exports.input | 5 + .../node_modules/promzard/test/exports.js | 30 ++ .../node_modules/promzard/test/fn.input | 18 + .../node_modules/promzard/test/fn.js | 39 ++ .../node_modules/promzard/test/simple.input | 8 + .../node_modules/promzard/test/simple.js | 30 ++ .../node_modules/init-package-json/package.json | 42 ++ deps/npm/node_modules/lockfile/LICENSE | 25 + deps/npm/node_modules/lockfile/README.md | 81 +++ deps/npm/node_modules/lockfile/lockfile.js | 241 +++++++++ deps/npm/node_modules/lockfile/package.json | 36 ++ deps/npm/node_modules/lru-cache/AUTHORS | 5 + deps/npm/node_modules/lru-cache/README.md | 16 +- deps/npm/node_modules/lru-cache/lib/lru-cache.js | 84 ++- deps/npm/node_modules/lru-cache/package.json | 68 ++- deps/npm/node_modules/minimatch/minimatch.js | 76 ++- deps/npm/node_modules/minimatch/package.json | 12 +- deps/npm/node_modules/mkdirp/.gitignore.orig | 2 + deps/npm/node_modules/mkdirp/.gitignore.rej | 5 + deps/npm/node_modules/mkdirp/.npmignore | 2 + deps/npm/node_modules/mkdirp/.travis.yml | 4 + deps/npm/node_modules/mkdirp/package.json | 11 +- deps/npm/node_modules/node-gyp/README.md | 13 +- deps/npm/node_modules/node-gyp/bin/node-gyp.js | 108 ++-- deps/npm/node_modules/node-gyp/legacy/common.gypi | 4 + deps/npm/node_modules/node-gyp/lib/build.js | 24 +- deps/npm/node_modules/node-gyp/lib/clean.js | 3 +- deps/npm/node_modules/node-gyp/lib/configure.js | 65 ++- deps/npm/node_modules/node-gyp/lib/install.js | 79 +-- deps/npm/node_modules/node-gyp/lib/list.js | 10 +- deps/npm/node_modules/node-gyp/lib/node-gyp.js | 65 ++- deps/npm/node_modules/node-gyp/lib/rebuild.js | 4 +- deps/npm/node_modules/node-gyp/lib/remove.js | 10 +- deps/npm/node_modules/node-gyp/lib/util/mkdirp.js | 29 -- .../node-gyp/node_modules/ansi/lib/ansi.js | 291 ----------- .../node-gyp/node_modules/ansi/nodejs.png | Bin 30997 -> 0 bytes .../node-gyp/node_modules/ansi/server.js | 51 -- deps/npm/node_modules/node-gyp/package.json | 29 +- .../node_modules/npm-registry-client/.npmignore | 1 + deps/npm/node_modules/npm-registry-client/LICENSE | 25 + .../npm/node_modules/npm-registry-client/README.md | 136 +++++ deps/npm/node_modules/npm-registry-client/index.js | 92 ++++ .../npm-registry-client/lib/adduser.js | 104 ++++ .../npm-registry-client/lib}/get.js | 92 ++-- .../npm-registry-client/lib/publish.js | 119 +++++ .../npm-registry-client/lib/request.js | 266 ++++++++++ .../node_modules/npm-registry-client/lib/star.js | 29 ++ .../node_modules/npm-registry-client/lib/tag.js | 6 + .../npm-registry-client/lib/unpublish.js | 103 ++++ .../node_modules/npm-registry-client/lib/upload.js | 22 + .../node_modules/npm-registry-client/package.json | 40 ++ deps/npm/node_modules/npmlog/LICENSE | 25 + deps/npm/node_modules/npmlog/README.md | 153 ++++++ deps/npm/node_modules/npmlog/log.js | 154 ++++++ .../node_modules/glob => npmlog}/package.json | 37 +- deps/npm/node_modules/osenv/LICENSE | 25 + deps/npm/node_modules/osenv/README.md | 63 +++ deps/npm/node_modules/osenv/osenv.js | 80 +++ deps/npm/node_modules/osenv/package.json | 38 ++ deps/npm/node_modules/read-installed/README.md | 16 + deps/npm/node_modules/read-installed/package.json | 32 ++ .../read-installed}/read-installed.js | 88 ++-- deps/npm/node_modules/read-package-json/README.md | 162 ++++++ .../node_modules/read-package-json/package.json | 36 ++ .../node_modules/read-package-json/read-json.js | 557 ++++++++++++++++++++ deps/npm/node_modules/read/README.md | 7 +- deps/npm/node_modules/read/lib/read.js | 59 ++- deps/npm/node_modules/read/package.json | 17 +- deps/npm/node_modules/request/README.md | 3 +- deps/npm/node_modules/request/aws.js | 190 +++++++ deps/npm/node_modules/request/aws2.js | 128 +++++ deps/npm/node_modules/request/main.js | 281 +++++----- deps/npm/node_modules/request/oauth.js | 14 +- deps/npm/node_modules/request/package.json | 23 +- deps/npm/node_modules/retry/.npmignore | 1 + deps/npm/node_modules/retry/License | 21 + deps/npm/node_modules/retry/Makefile | 7 + deps/npm/node_modules/retry/Readme.md | 167 ++++++ deps/npm/node_modules/retry/equation.gif | Bin 0 -> 1209 bytes deps/npm/node_modules/retry/index.js | 1 + deps/npm/node_modules/retry/lib/retry.js | 50 ++ deps/npm/node_modules/retry/lib/retry_operation.js | 109 ++++ deps/npm/node_modules/retry/package.json | 29 ++ deps/npm/node_modules/rimraf/package.json | 75 ++- deps/npm/node_modules/rimraf/rimraf.js | 16 +- deps/npm/node_modules/uid-number/LICENCE | 25 + deps/npm/package.json | 47 +- .../test/packages/npm-test-array-bin/bin/array-bin | 2 + .../test/packages/npm-test-array-bin/package.json | 4 + deps/npm/test/packages/npm-test-array-bin/test.js | 6 + .../npm/test/packages/npm-test-dir-bin/bin/dir-bin | 2 + .../test/packages/npm-test-dir-bin/package.json | 4 + deps/npm/test/packages/npm-test-dir-bin/test.js | 5 + .../npm-test-ignore-nested-nm/lib/node_modules/foo | 1 + deps/npm/test/tap/false_name.js | 29 ++ deps/npm/test/tap/false_name/index.js | 1 + deps/npm/test/tap/false_name/package.json | 8 + 396 files changed, 8641 insertions(+), 4122 deletions(-) delete mode 100644 deps/npm/lib/utils/find.js delete mode 100644 deps/npm/lib/utils/load-package-defaults.js delete mode 100644 deps/npm/lib/utils/log.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/adduser.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/index.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/publish.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/request.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/star.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/tag.js delete mode 100644 deps/npm/lib/utils/npm-registry-client/unpublish.js delete mode 100644 deps/npm/lib/utils/promise-chain.js delete mode 100644 deps/npm/lib/utils/read-json.js delete mode 100644 deps/npm/lib/utils/relativize.js rename deps/npm/node_modules/{node-gyp/node_modules => }/ansi/.npmignore (100%) rename deps/npm/node_modules/{node-gyp/node_modules => }/ansi/README.md (78%) create mode 100644 deps/npm/node_modules/ansi/lib/ansi.js create mode 100644 deps/npm/node_modules/ansi/lib/newlines.js rename deps/npm/node_modules/{node-gyp/node_modules => }/ansi/package.json (65%) rename deps/npm/node_modules/{node-gyp/node_modules/glob => chownr}/LICENCE (100%) create mode 100644 deps/npm/node_modules/couch-login/README.md create mode 100644 deps/npm/node_modules/couch-login/couch-login.js create mode 100644 deps/npm/node_modules/couch-login/package.json create mode 100644 deps/npm/node_modules/fstream-npm/LICENCE rename deps/npm/node_modules/{node-gyp/node_modules => }/glob/.npmignore (100%) rename deps/npm/node_modules/{node-gyp/node_modules => }/glob/.travis.yml (100%) create mode 100644 deps/npm/node_modules/glob/LICENCE rename deps/npm/node_modules/{node-gyp/node_modules => }/glob/README.md (100%) rename deps/npm/node_modules/{node-gyp/node_modules => }/glob/glob.js (99%) create mode 100644 deps/npm/node_modules/glob/package.json create mode 100644 deps/npm/node_modules/init-package-json/README.md create mode 100644 deps/npm/node_modules/init-package-json/default-input.js create mode 100644 deps/npm/node_modules/init-package-json/init-package-json.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/.npmignore create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/README.md create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/index.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/package.json create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/promzard.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/basic.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/exports.input create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/exports.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/fn.input create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/fn.js create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/simple.input create mode 100644 deps/npm/node_modules/init-package-json/node_modules/promzard/test/simple.js create mode 100644 deps/npm/node_modules/init-package-json/package.json create mode 100644 deps/npm/node_modules/lockfile/LICENSE create mode 100644 deps/npm/node_modules/lockfile/README.md create mode 100644 deps/npm/node_modules/lockfile/lockfile.js create mode 100644 deps/npm/node_modules/lockfile/package.json create mode 100644 deps/npm/node_modules/lru-cache/AUTHORS create mode 100644 deps/npm/node_modules/mkdirp/.gitignore.orig create mode 100644 deps/npm/node_modules/mkdirp/.gitignore.rej create mode 100644 deps/npm/node_modules/mkdirp/.npmignore create mode 100644 deps/npm/node_modules/mkdirp/.travis.yml delete mode 100644 deps/npm/node_modules/node-gyp/lib/util/mkdirp.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ansi/lib/ansi.js delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ansi/nodejs.png delete mode 100644 deps/npm/node_modules/node-gyp/node_modules/ansi/server.js create mode 100644 deps/npm/node_modules/npm-registry-client/.npmignore create mode 100644 deps/npm/node_modules/npm-registry-client/LICENSE create mode 100644 deps/npm/node_modules/npm-registry-client/README.md create mode 100644 deps/npm/node_modules/npm-registry-client/index.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/adduser.js rename deps/npm/{lib/utils/npm-registry-client => node_modules/npm-registry-client/lib}/get.js (61%) create mode 100644 deps/npm/node_modules/npm-registry-client/lib/publish.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/request.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/star.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/tag.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/unpublish.js create mode 100644 deps/npm/node_modules/npm-registry-client/lib/upload.js create mode 100644 deps/npm/node_modules/npm-registry-client/package.json create mode 100644 deps/npm/node_modules/npmlog/LICENSE create mode 100644 deps/npm/node_modules/npmlog/README.md create mode 100644 deps/npm/node_modules/npmlog/log.js rename deps/npm/node_modules/{node-gyp/node_modules/glob => npmlog}/package.json (58%) create mode 100644 deps/npm/node_modules/osenv/LICENSE create mode 100644 deps/npm/node_modules/osenv/README.md create mode 100644 deps/npm/node_modules/osenv/osenv.js create mode 100644 deps/npm/node_modules/osenv/package.json create mode 100644 deps/npm/node_modules/read-installed/README.md create mode 100644 deps/npm/node_modules/read-installed/package.json rename deps/npm/{lib/utils => node_modules/read-installed}/read-installed.js (84%) create mode 100644 deps/npm/node_modules/read-package-json/README.md create mode 100644 deps/npm/node_modules/read-package-json/package.json create mode 100644 deps/npm/node_modules/read-package-json/read-json.js create mode 100644 deps/npm/node_modules/request/aws.js create mode 100644 deps/npm/node_modules/request/aws2.js create mode 100644 deps/npm/node_modules/retry/.npmignore create mode 100644 deps/npm/node_modules/retry/License create mode 100644 deps/npm/node_modules/retry/Makefile create mode 100644 deps/npm/node_modules/retry/Readme.md create mode 100644 deps/npm/node_modules/retry/equation.gif create mode 100644 deps/npm/node_modules/retry/index.js create mode 100644 deps/npm/node_modules/retry/lib/retry.js create mode 100644 deps/npm/node_modules/retry/lib/retry_operation.js create mode 100644 deps/npm/node_modules/retry/package.json create mode 100644 deps/npm/node_modules/uid-number/LICENCE create mode 100644 deps/npm/test/packages/npm-test-array-bin/bin/array-bin create mode 100644 deps/npm/test/packages/npm-test-array-bin/package.json create mode 100644 deps/npm/test/packages/npm-test-array-bin/test.js create mode 100644 deps/npm/test/packages/npm-test-dir-bin/bin/dir-bin create mode 100644 deps/npm/test/packages/npm-test-dir-bin/package.json create mode 100644 deps/npm/test/packages/npm-test-dir-bin/test.js create mode 100644 deps/npm/test/packages/npm-test-ignore-nested-nm/lib/node_modules/foo create mode 100644 deps/npm/test/tap/false_name.js create mode 100644 deps/npm/test/tap/false_name/index.js create mode 100644 deps/npm/test/tap/false_name/package.json diff --git a/deps/npm/.npmignore b/deps/npm/.npmignore index 94dc33f..b1d9066 100644 --- a/deps/npm/.npmignore +++ b/deps/npm/.npmignore @@ -1,16 +1,16 @@ *.swp -test/bin -test/output.log -test/packages/*/node_modules -test/packages/npm-test-depends-on-spark/which-spark.log -test/packages/test-package/random-data.txt -test/root -node_modules/ronn -node_modules/.bin npm-debug.log -./npmrc -.gitignore -release/ +/test/bin +/test/output.log +/test/packages/*/node_modules +/test/packages/npm-test-depends-on-spark/which-spark.log +/test/packages/test-package/random-data.txt +/test/root +/node_modules/ronn +/node_modules/tap +/node_modules/.bin +/npmrc +/release/ # don't need these in the npm package. html/*.png diff --git a/deps/npm/AUTHORS b/deps/npm/AUTHORS index fcfa7f2..b2adf34 100644 --- a/deps/npm/AUTHORS +++ b/deps/npm/AUTHORS @@ -66,3 +66,8 @@ Joost-Wim Boekesteijn Dalmais Maxence Marcus Ekwall Aaron Stacy +Phillip Howell +Domenic Denicola +James Halliday +Jeremy Cantrell +Ribettes diff --git a/deps/npm/LICENSE b/deps/npm/LICENSE index c944259..3702d8a 100644 --- a/deps/npm/LICENSE +++ b/deps/npm/LICENSE @@ -49,6 +49,11 @@ and are not covered by this license. "npm Logo" created by Mathias Pettersson and Brian Hammond, used with permission. +"Gubblebum Blocky" font +Copyright (c) 2007 by Tjarda Koster, http://jelloween.deviantart.com +included for use in the npm website and documentation, +used with permission. + This program uses "node-uuid", Copyright (c) 2010 Robert Kieffer, according to the terms of the MIT license. diff --git a/deps/npm/README.md b/deps/npm/README.md index d5e285a..1257f14 100644 --- a/deps/npm/README.md +++ b/deps/npm/README.md @@ -89,21 +89,15 @@ To install the latest **unstable** development version from git: git clone https://github.com/isaacs/npm.git cd npm - git submodule update --init --recursive sudo make install # (or: `node cli.js install -gf`) If you're sitting in the code folder reading this document in your terminal, then you've already got the code. Just do: - git submodule update --init --recursive sudo make install and npm will install itself. -Note that github tarballs **do not contain submodules**, so -those won't work. You'll have to also fetch the appropriate submodules -listed in the .gitmodules file. - ## Permissions when Using npm to Install Other Stuff **tl;dr** diff --git a/deps/npm/bin/npm b/deps/npm/bin/npm index 5fbcd3b..07ade35 100755 --- a/deps/npm/bin/npm +++ b/deps/npm/bin/npm @@ -1,6 +1,13 @@ #!/bin/sh -if [ -x "`dirname "$0"`/node.exe" ]; then - "`dirname "$0"`/node.exe" "`dirname "$0"`/node_modules/npm/bin/npm-cli.js" "$@" + +basedir=`dirname "$0"` + +case `uname` in + *CYGWIN*) basedir=`cygpath -w "$basedir"`;; +esac + +if [ -x "$basedir/node.exe" ]; then + "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@" else - node "`dirname "$0"`/node_modules/npm/bin/npm-cli.js" "$@" + node "$basedir/node_modules/npm/bin/npm-cli.js" "$@" fi diff --git a/deps/npm/bin/npm-cli.js b/deps/npm/bin/npm-cli.js index f294370..a71985b 100755 --- a/deps/npm/bin/npm-cli.js +++ b/deps/npm/bin/npm-cli.js @@ -15,9 +15,9 @@ if (typeof WScript !== "undefined") { process.title = "npm" -var log = require("../lib/utils/log.js") -log.waitForConfig() -log.info("ok", "it worked if it ends with") +var log = require("npmlog") +log.pause() // will be unpaused when config is loaded. +log.info("it worked if it ends with", "ok") var fs = require("graceful-fs") , path = require("path") @@ -36,7 +36,7 @@ if (path.basename(process.argv[1]).slice(-1) === "g") { process.argv.splice(1, 1, "npm", "-g") } -log.verbose(process.argv, "cli") +log.verbose("cli", process.argv) var conf = nopt(types, shorthands) npm.argv = conf.argv.remain @@ -56,8 +56,8 @@ if (conf.versions) { return } -log.info("npm@"+npm.version, "using") -log.info("node@"+process.version, "using") +log.info("using", "npm@%s", npm.version) +log.info("using", "node@%s", process.version) // make sure that this version of node works with this version of npm. var semver = require("semver") diff --git a/deps/npm/bin/read-package-json.js b/deps/npm/bin/read-package-json.js index 8c95d86..3e5a0c7 100755 --- a/deps/npm/bin/read-package-json.js +++ b/deps/npm/bin/read-package-json.js @@ -6,7 +6,7 @@ if (argv.length < 3) { var fs = require("fs") , file = argv[2] - , readJson = require("../lib/utils/read-json") + , readJson = require("read-package-json") readJson(file, function (er, data) { if (er) throw er diff --git a/deps/npm/doc/cli/coding-style.md b/deps/npm/doc/cli/coding-style.md index 42ac1d7..c505dba 100644 --- a/deps/npm/doc/cli/coding-style.md +++ b/deps/npm/doc/cli/coding-style.md @@ -129,29 +129,18 @@ Just send the error message back as the first argument to the callback. Always create a new Error object with your message. Don't just return a string message to the callback. Stack traces are handy. -Use the `require("./utils/log").er` function. It takes a callback and an -error message, and returns an object that will report the message in the -event of a failure. It's quite handy. - - function myThing (args, cb) { - getData(args, function (er, data) { - if (er) return log.er(cb, "Couldn't get data")(er) - doSomethingElse(data, cb) - }) - } - function justHasToWork (cb) { - doSomething(log.er(cb, "the doSomething failed.")) - } - ## Logging +Logging is done using the [npmlog](https://github.com/isaacs/npmlog) +utility. + Please clean up logs when they are no longer helpful. In particular, logging the same object over and over again is not helpful. Logs should report what's happening so that it's easier to track down where a fault occurs. -Use appropriate log levels. The default log() function logs at the -"info" level. See `npm-config(1)` and search for "loglevel". +Use appropriate log levels. See `npm-config(1)` and search for +"loglevel". ## Case, naming, etc. diff --git a/deps/npm/doc/cli/config.md b/deps/npm/doc/cli/config.md index 3fd9cb8..537af5c 100644 --- a/deps/npm/doc/cli/config.md +++ b/deps/npm/doc/cli/config.md @@ -117,6 +117,7 @@ The following shorthands are parsed on the command-line: * `-S`: `--save` * `-D`: `--save-dev` * `-O`: `--save-optional` +* `-B`: `--save-bundle` * `-y`: `--yes` * `-n`: `--yes false` * `ll` and `la` commands: `ls --long` @@ -167,32 +168,6 @@ then the user could change the behavior by doing: Force npm to always require authentication when accessing the registry, even for `GET` requests. -### bin-publish - -* Default: false -* Type: Boolean - -If set to true, then binary packages will be created on publish. - -This is the way to opt into the "bindist" behavior described below. - -### bindist - -* Default: Unstable node versions, `null`, otherwise - `"--"` -* Type: String or `null` - -Experimental: on stable versions of node, binary distributions will be -created with this tag. If a user then installs that package, and their -`bindist` tag is found in the list of binary distributions, they will -get that prebuilt version. - -Pre-build node packages have their preinstall, install, and postinstall -scripts stripped (since they are run prior to publishing), and do not -have their `build` directories automatically ignored. - -It's yet to be seen if this is a good idea. - ### browser * Default: OS X: `"open"`, others: `"google-chrome"` @@ -220,6 +195,27 @@ See also the `strict-ssl` config. The location of npm's cache directory. See `npm-cache(1)` +### cache-lock-stale + +* Default: 60000 (1 minute) +* Type: Number + +The number of ms before cache folder lockfiles are considered stale. + +### cache-lock-retries + +* Default: 10 +* Type: Number + +Number of times to retry to acquire a lock on cache folder lockfiles. + +### cache-lock-wait + +* Default: 10000 (10 seconds) +* Type: Number + +Number of ms to wait for cache lock files to expire. + ### cache-max * Default: Infinity @@ -291,6 +287,15 @@ set. The command to run for `npm edit` or `npm config edit`. +### engine-strict + +* Default: false +* Type: Boolean + +If set to true, then npm will stubbornly refuse to install (or even +consider installing) any package that claims to not be compatible with +the current Node.js version. + ### force * Default: false @@ -303,6 +308,38 @@ Makes various commands more forceful. * skips cache when requesting from the registry. * prevents checks against clobbering non-npm files. +### fetch-retries + +* Default: 2 +* Type: Number + +The "retries" config for the `retry` module to use when fetching +packages from the registry. + +### fetch-retry-factor + +* Default: 10 +* Type: Number + +The "factor" config for the `retry` module to use when fetching +packages. + +### fetch-retry-mintimeout + +* Default: 10000 (10 seconds) +* Type: Number + +The "minTimeout" config for the `retry` module to use when fetching +packages. + +### fetch-retry-maxtimeout + +* Default: 60000 (1 minute) +* Type: Number + +The "maxTimeout" config for the `retry` module to use when fetching +packages. + ### git * Default: `"git"` @@ -375,6 +412,16 @@ Sets a User-Agent to the request header A white-space separated list of glob patterns of files to always exclude from packages when building tarballs. +### init-module + +* Default: ~/.npm-init.js +* Type: path + +A module that will be loaded by the `npm init` command. See the +documentation for the +[init-package-json](https://github.com/isaacs/init-package-json) module +for more information, or npm-init(1). + ### init.version * Default: "0.0.0" @@ -430,13 +477,6 @@ if one of the two conditions are met: * the globally installed version is identical to the version that is being installed locally. -### logfd - -* Default: stderr file descriptor -* Type: Number or Stream - -The location to write log output. - ### loglevel * Default: "http" @@ -449,13 +489,17 @@ What level of logs to report. On failure, *all* logs are written to Any logs of a higher level than the setting are shown. The default is "http", which shows http, warn, and error output. -### logprefix +### logstream -* Default: true on Posix, false on Windows -* Type: Boolean +* Default: process.stderr +* Type: Stream + +This is the stream that is passed to the +[npmlog](https://github.com/isaacs/npmlog) module at run time. -Whether or not to prefix log messages with "npm" and the log level. See -also "color" and "loglevel". +It cannot be set from the command line, but if you are using npm +programmatically, you may wish to send logs to somewhere other than +stderr. ### long @@ -503,13 +547,6 @@ The url to report npat test results. A node module to `require()` when npm loads. Useful for programmatic usage. -### outfd - -* Default: standard output file descriptor -* Type: Number or Stream - -Where to write "normal" output. This has no effect on log output. - ### parseable * Default: false @@ -584,8 +621,23 @@ Remove failed installs. Save installed packages to a package.json file as dependencies. +When used with the `npm rm` command, it removes it from the dependencies +hash. + Only works if there is already a package.json file present. +### save-bundle + +* Default: false +* Type: Boolean + +If a package would be saved at install time by the use of `--save`, +`--save-dev`, or `--save-optional`, then also put it in the +`bundleDependencies` list. + +When used with the `npm rm` command, it removes it from the +bundledDependencies list. + ### save-dev * Default: false @@ -593,6 +645,9 @@ Only works if there is already a package.json file present. Save installed packages to a package.json file as devDependencies. +When used with the `npm rm` command, it removes it from the devDependencies +hash. + Only works if there is already a package.json file present. ### save-optional @@ -602,6 +657,9 @@ Only works if there is already a package.json file present. Save installed packages to a package.json file as optionalDependencies. +When used with the `npm rm` command, it removes it from the devDependencies +hash. + Only works if there is already a package.json file present. ### searchopts diff --git a/deps/npm/doc/cli/init.md b/deps/npm/doc/cli/init.md index 39297b4..d036f92 100644 --- a/deps/npm/doc/cli/init.md +++ b/deps/npm/doc/cli/init.md @@ -20,5 +20,6 @@ without a really good reason to do so. ## SEE ALSO +* * npm-json(1) * npm-version(1) diff --git a/deps/npm/doc/cli/install.md b/deps/npm/doc/cli/install.md index cfa95e7..1d2f6ec 100644 --- a/deps/npm/doc/cli/install.md +++ b/deps/npm/doc/cli/install.md @@ -160,7 +160,7 @@ local copy exists on disk. npm install sax --force The `--global` argument will cause npm to install the package globally -rather than locally. See `npm-global(1)`. +rather than locally. See `npm-folders(1)`. The `--link` argument will cause npm to link global installs into the local space in some cases. diff --git a/deps/npm/doc/cli/json.md b/deps/npm/doc/cli/json.md index 5f50cd2..b6bf89c 100644 --- a/deps/npm/doc/cli/json.md +++ b/deps/npm/doc/cli/json.md @@ -453,8 +453,7 @@ Entries in `optionalDependencies` will override entries of the same name in ## engines -You can specify the version of -node that your stuff works on: +You can specify the version of node that your stuff works on: { "engines" : { "node" : ">=0.1.27 <0.1.30" } } @@ -470,6 +469,22 @@ are capable of properly installing your program. For example: { "engines" : { "npm" : "~1.0.20" } } +Note that, unless the user has set the `engine-strict` config flag, this +field is advisory only. + +## engineStrict + +If you are sure that your module will *definitely not* run properly on +versions of Node/npm other than those specified in the `engines` hash, +then you can set `"engineStrict": true` in your package.json file. +This will override the user's `engine-strict` config setting. + +Please do not do this unless you are really very very sure. If your +engines hash is something overly restrictive, you can quite easily and +inadvertently lock yourself into obscurity and prevent your users from +updating to new versions of Node. Consider this choice carefully. If +people abuse it, it will be removed in a future version of npm. + ## os You can specify which operating systems your diff --git a/deps/npm/doc/cli/list.md b/deps/npm/doc/cli/list.md index 93d86cd..3dd709b 100644 --- a/deps/npm/doc/cli/list.md +++ b/deps/npm/doc/cli/list.md @@ -3,20 +3,26 @@ npm-ls(1) -- List installed packages ## SYNOPSIS - npm list - npm ls - npm la - npm ll + npm list [ ...] + npm ls [ ...] + npm la [ ...] + npm ll [ ...] ## DESCRIPTION This command will print to stdout all the versions of packages that are installed, as well as their dependencies, in a tree-structure. -It does not take positional arguments, though you may set config flags -like with any other command, such as `-g` to list global packages. +Positional arguments are `name@version-range` identifiers, which will +limit the results to only the paths to the packages named. Note that +nested packages will *also* show the paths to the specified packages. +For example, running `npm ls promzard` in npm's source tree will show: -It will print out extraneous, missing, and invalid packages. + npm@@VERSION@ /path/to/npm + └─┬ init-package-json@0.0.4 + └── promzard@0.1.5 + +It will show print out extraneous, missing, and invalid packages. When run as `ll` or `la`, it shows extended information by default. diff --git a/deps/npm/html/api/bin.html b/deps/npm/html/api/bin.html index f6781bf..4d328da 100644 --- a/deps/npm/html/api/bin.html +++ b/deps/npm/html/api/bin.html @@ -19,7 +19,7 @@

This function should not be used programmatically. Instead, just refer to the npm.bin member.

- +