From bb9316da28feaad035eb2f61aeafc5f1a7a57ae2 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 13 Dec 2011 18:53:02 -0800 Subject: [PATCH] npm 1.1.0-beta-2 --- deps/npm/.gitmodules | 18 ++- deps/npm/.travis.yml | 4 + deps/npm/bin/npm-cli.js | 3 + deps/npm/doc/cli/config.md | 25 +++- deps/npm/doc/cli/developers.md | 4 +- deps/npm/doc/cli/search.md | 25 +--- 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/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 | 2 +- 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 | 2 +- deps/npm/html/doc/completion.html | 2 +- deps/npm/html/doc/config.html | 22 ++- deps/npm/html/doc/deprecate.html | 2 +- deps/npm/html/doc/developers.html | 6 +- 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 | 2 +- deps/npm/html/doc/install.html | 2 +- deps/npm/html/doc/json.html | 2 +- deps/npm/html/doc/link.html | 2 +- deps/npm/html/doc/list.html | 2 +- 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 | 24 +--- deps/npm/html/doc/semver.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/lib/adduser.js | 8 +- deps/npm/lib/bugs.js | 4 +- deps/npm/lib/cache.js | 107 +++++++++++++-- deps/npm/lib/init.js | 69 +++++----- deps/npm/lib/install.js | 2 +- deps/npm/lib/npm.js | 4 +- deps/npm/lib/rebuild.js | 30 ++++ deps/npm/lib/search.js | 73 +++++++--- deps/npm/lib/substack.js | 10 ++ deps/npm/lib/unpublish.js | 9 ++ deps/npm/lib/utils/config-defs.js | 12 +- deps/npm/lib/utils/excludes.js | 2 +- deps/npm/lib/utils/fetch.js | 9 +- deps/npm/lib/utils/get-agent.js | 2 +- deps/npm/lib/utils/ini.js | 2 + deps/npm/lib/utils/lifecycle.js | 5 +- deps/npm/lib/utils/log.js | 19 +-- deps/npm/lib/utils/npm-registry-client/get.js | 11 ++ deps/npm/lib/utils/npm-registry-client/publish.js | 11 +- deps/npm/lib/utils/npm-registry-client/request.js | 6 +- deps/npm/lib/utils/prompt.js | 69 ---------- deps/npm/lib/utils/tar.js | 22 ++- deps/npm/man/man1/config.1 | 40 +++++- deps/npm/man/man1/developers.1 | 3 +- deps/npm/man/man1/npm.1 | 2 +- deps/npm/man/man1/search.1 | 42 +----- deps/npm/man/man3/npm.3 | 2 +- deps/npm/node_modules/fast-list/.npmignore | 1 + deps/npm/node_modules/fast-list/.travis.yml | 4 + deps/npm/node_modules/fast-list/bench.js | 55 -------- deps/npm/node_modules/fstream/.npmignore | 3 + deps/npm/node_modules/fstream/.travis.yml | 3 + deps/npm/node_modules/fstream/lib/dir-reader.js | 12 +- deps/npm/node_modules/fstream/lib/reader.js | 7 +- deps/npm/node_modules/fstream/lib/socket-reader.js | 38 ++++++ deps/npm/node_modules/fstream/package.json | 4 +- deps/npm/node_modules/graceful-fs/.npmignore | 1 + deps/npm/node_modules/graceful-fs/graceful-fs.js | 29 ++-- deps/npm/node_modules/graceful-fs/package.json | 2 +- deps/npm/node_modules/lru-cache/.npmignore | 1 + .../{minimatch/node_modules => }/lru-cache/LICENSE | 0 .../node_modules => }/lru-cache/README.md | 0 .../node_modules => }/lru-cache/lib/lru-cache.js | 95 +++---------- deps/npm/node_modules/lru-cache/package.json | 13 ++ deps/npm/node_modules/minimatch/.gitmodules | 3 - deps/npm/node_modules/minimatch/.travis.yml | 4 + deps/npm/node_modules/minimatch/README.md | 7 + deps/npm/node_modules/minimatch/minimatch.js | 117 ++++++---------- .../minimatch/node_modules/lru-cache/package.json | 13 -- deps/npm/node_modules/minimatch/package.json | 5 +- deps/npm/node_modules/node-uuid/.npmignore | 2 + deps/npm/node_modules/nopt/.npmignore | 0 deps/npm/node_modules/read/README.md | 43 ++++++ deps/npm/node_modules/read/lib/read.js | 151 +++++++++++++++++++++ deps/npm/node_modules/read/package.json | 16 +++ deps/npm/node_modules/tar/.npmignore | 5 + deps/npm/node_modules/tar/.travis.yml | 3 + deps/npm/node_modules/tar/lib/pack.js | 4 + deps/npm/node_modules/tar/package.json | 4 +- deps/npm/package.json | 10 +- deps/npm/scripts/clean-old.sh | 0 deps/npm/scripts/index-build.js | 0 deps/npm/scripts/install.sh | 0 160 files changed, 936 insertions(+), 605 deletions(-) create mode 100644 deps/npm/.travis.yml create mode 100644 deps/npm/lib/substack.js delete mode 100644 deps/npm/lib/utils/prompt.js create mode 100644 deps/npm/node_modules/fast-list/.npmignore create mode 100644 deps/npm/node_modules/fast-list/.travis.yml delete mode 100644 deps/npm/node_modules/fast-list/bench.js create mode 100644 deps/npm/node_modules/fstream/.npmignore create mode 100644 deps/npm/node_modules/fstream/.travis.yml create mode 100644 deps/npm/node_modules/fstream/lib/socket-reader.js create mode 100644 deps/npm/node_modules/graceful-fs/.npmignore create mode 100644 deps/npm/node_modules/lru-cache/.npmignore rename deps/npm/node_modules/{minimatch/node_modules => }/lru-cache/LICENSE (100%) rename deps/npm/node_modules/{minimatch/node_modules => }/lru-cache/README.md (100%) rename deps/npm/node_modules/{minimatch/node_modules => }/lru-cache/lib/lru-cache.js (55%) create mode 100644 deps/npm/node_modules/lru-cache/package.json delete mode 100644 deps/npm/node_modules/minimatch/.gitmodules create mode 100644 deps/npm/node_modules/minimatch/.travis.yml delete mode 100644 deps/npm/node_modules/minimatch/node_modules/lru-cache/package.json create mode 100644 deps/npm/node_modules/node-uuid/.npmignore create mode 100644 deps/npm/node_modules/nopt/.npmignore create mode 100644 deps/npm/node_modules/read/README.md create mode 100644 deps/npm/node_modules/read/lib/read.js create mode 100644 deps/npm/node_modules/read/package.json create mode 100644 deps/npm/node_modules/tar/.npmignore create mode 100644 deps/npm/node_modules/tar/.travis.yml mode change 100644 => 100755 deps/npm/scripts/clean-old.sh mode change 100644 => 100755 deps/npm/scripts/index-build.js mode change 100644 => 100755 deps/npm/scripts/install.sh diff --git a/deps/npm/.gitmodules b/deps/npm/.gitmodules index c705633..169c875 100644 --- a/deps/npm/.gitmodules +++ b/deps/npm/.gitmodules @@ -36,19 +36,25 @@ url = https://github.com/mikeal/request.git [submodule "node_modules/tar"] path = node_modules/tar - url = git://github.com/isaacs/node-tar.git + url = https://github.com/isaacs/node-tar.git [submodule "node_modules/fstream"] path = node_modules/fstream - url = git://github.com/isaacs/fstream.git + url = https://github.com/isaacs/fstream.git [submodule "node_modules/inherits"] path = node_modules/inherits - url = git://github.com/isaacs/inherits.git + url = https://github.com/isaacs/inherits.git [submodule "node_modules/block-stream"] path = node_modules/block-stream - url = git://github.com/isaacs/block-stream.git + url = https://github.com/isaacs/block-stream.git [submodule "node_modules/mkdirp"] path = node_modules/mkdirp - url = git://github.com/isaacs/node-mkdirp.git + url = https://github.com/isaacs/node-mkdirp.git [submodule "node_modules/fast-list"] path = node_modules/fast-list - url = git://github.com/isaacs/fast-list.git + url = https://github.com/isaacs/fast-list.git +[submodule "node_modules/read"] + path = node_modules/read + url = https://github.com/isaacs/read.git +[submodule "node_modules/lru-cache"] + path = node_modules/lru-cache + url = https://github.com/isaacs/node-lru-cache.git diff --git a/deps/npm/.travis.yml b/deps/npm/.travis.yml new file mode 100644 index 0000000..698bc9a --- /dev/null +++ b/deps/npm/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +before_install: "make &>out || cat out; rm out" +node_js: + - 0.6 diff --git a/deps/npm/bin/npm-cli.js b/deps/npm/bin/npm-cli.js index db6db2f..e0b9f20 100755 --- a/deps/npm/bin/npm-cli.js +++ b/deps/npm/bin/npm-cli.js @@ -12,6 +12,9 @@ if (typeof WScript !== "undefined") { return } + +process.title = "npm" + var log = require("../lib/utils/log.js") log.waitForConfig() log.info("ok", "it worked if it ends with") diff --git a/deps/npm/doc/cli/config.md b/deps/npm/doc/cli/config.md index e380e65..e70acc2 100644 --- a/deps/npm/doc/cli/config.md +++ b/deps/npm/doc/cli/config.md @@ -225,6 +225,14 @@ The location of npm's cache directory. See `npm-cache(1)` If false, never shows colors. If `"always"` then always shows colors. If true, then only prints color codes for tty file descriptors. +### coverage + +* Default: false +* Type: Boolean + +A flag to tell test-harness to run with their coverage options enabled, +if they respond to the `npm_config_coverage` environment variable. + ### depth * Default: Infinity @@ -379,13 +387,16 @@ The location to write log output. ### loglevel -* Default: "warn" +* Default: "http" * Type: String -* Values: "silent", "win", "error", "warn", "info", "verbose", "silly" +* Values: "silent", "win", "error", "warn", "http", "info", "verbose", "silly" What level of logs to report. On failure, *all* logs are written to `npm-debug.log` in the current working directory. +Any logs of a higher level than the setting are shown. +The default is "http", which shows http, warn, and error output. + ### logprefix * Default: true on Posix, false on Windows @@ -537,6 +548,16 @@ Space-separated options that are always passed to search. Space-separated options that limit the results from search. +### searchsort + +* Default: "name" +* Type: String +* Values: "name", "-name", "date", "-date", "description", + "-description", "keywords", "-keywords" + +Indication of which field to sort search results by. Prefix with a `-` +character to indicate reverse sort. + ### shell * Default: SHELL environment variable, or "bash" on Posix, or "cmd" on diff --git a/deps/npm/doc/cli/developers.md b/deps/npm/doc/cli/developers.md index 0f0f94c..9123f35 100644 --- a/deps/npm/doc/cli/developers.md +++ b/deps/npm/doc/cli/developers.md @@ -150,8 +150,8 @@ You can give publish a url to a tarball, or a filename of a tarball, or a path to a folder. Note that pretty much **everything in that folder will be exposed** -by default. So, if you have secret stuff in there, use a `.npminclude` -or `.npmignore` file to list out the globs to include/ignore, or publish +by default. So, if you have secret stuff in there, use a +`.npmignore` file to list out the globs to ignore, or publish from a fresh checkout. ## Brag about it diff --git a/deps/npm/doc/cli/search.md b/deps/npm/doc/cli/search.md index 3b15e9b..e9e408c 100644 --- a/deps/npm/doc/cli/search.md +++ b/deps/npm/doc/cli/search.md @@ -9,28 +9,9 @@ npm-search(1) -- Search for packages Search the registry for packages matching the search terms. -## CONFIGURATION - -### description - -* Default: true -* Type: Boolean - -Show the description in `npm search` - -### searchopts - -* Default: "" -* Type: String - -Space-separated options that are always passed to search. - -### searchexclude - -* Default: "" -* Type: String - -Space-separated options that limit the results from search. +If a term starts with `/`, then it's interpreted as a regular expression. +A trailing `/` will be ignored in this case. (Note that many regular +expression characters must be escaped or quoted in most shells.) ## SEE ALSO diff --git a/deps/npm/html/api/bin.html b/deps/npm/html/api/bin.html index accd17c..6fc1156 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.

- +