Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Upgrade npm to 1.1.21
Browse files Browse the repository at this point in the history
Somehow this got downgraded in the last v0.6 merge.  Very strange.
  • Loading branch information
isaacs committed May 6, 2012
1 parent 1858d1c commit 33a9ac6
Show file tree
Hide file tree
Showing 294 changed files with 3,778 additions and 2,820 deletions.
4 changes: 4 additions & 0 deletions deps/npm/.npmignore
Expand Up @@ -11,3 +11,7 @@ npm-debug.log
./npmrc
.gitignore
release/

# don't ignore .npmignore files
# these are used in some tests.
!.npmignore
14 changes: 14 additions & 0 deletions deps/npm/AUTHORS
Expand Up @@ -51,3 +51,17 @@ Stephen Sugden <glurgle@gmail.com>
Gautham Pai <buzypi@gmail.com>
David Trejo <david.daniel.trejo@gmail.com>
Paul Vorbach <paul@vorb.de>
George Ornbo <george@shapeshed.com>
Tim Oxley <secoif@gmail.com>
Tyler Green <tyler.green2@gmail.com>
atomizer <danila.gerasimov@gmail.com>
Rod Vagg <rod@vagg.org>
Christian Howe <coderarity@gmail.com>
Andrew Lunny <alunny@gmail.com>
Henrik Hodne <dvyjones@binaryhex.com>
Adam Blackburn <regality@gmail.com>
Kris Windham <kriswindham@gmail.com>
Jens Grunert <jens.grunert@gmail.com>
Joost-Wim Boekesteijn <joost-wim@boekesteijn.nl>
Dalmais Maxence <github@maxired.fr>
Marcus Ekwall <marcus.ekwall@gmail.com>
18 changes: 8 additions & 10 deletions deps/npm/LICENSE
@@ -1,4 +1,4 @@
Copyright 2009, 2010, 2011 Isaac Z. Schlueter (the "Author")
Copyright 2009-2012, Isaac Z. Schlueter (the "Original Author")
All rights reserved.

MIT +no-false-attribs License
Expand All @@ -20,9 +20,9 @@ by the recipients as they would use the unmodified Software,
containing modifications that substantially alter, remove, or
disable functionality of the Software, outside of the documented
configuration mechanisms provided by the Software, shall be
modified such that the Author's bug reporting email addresses and
urls are either replaced with the contact information of the
parties responsible for the changes, or removed entirely.
modified such that the Original Author's bug reporting email
addresses and urls are either replaced with the contact information
of the parties responsible for the changes, or removed entirely.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
Expand All @@ -36,7 +36,7 @@ OTHER DEALINGS IN THE SOFTWARE.

Except where noted, this license applies to any and all software
programs and associated documentation files created by the
Author, when distributed with the Software.
Original Author, when distributed with the Software.

"Node.js" and "node" trademark Joyent, Inc. npm is not officially
part of the Node.js project, and is neither owned by nor
Expand All @@ -49,13 +49,11 @@ and are not covered by this license.
"npm Logo" created by Mathias Pettersson and Brian Hammond,
used with permission.

This program includes a BSDTar/LibArchive version 2.8.3-1 binary,
originally distributed as part of the MinGW suite, compiled for
Win32, according to the terms of the BSD license.
See deps/basic-bsdtar-2.8.3-1-ming32-bin/basic-bsdtar.LICENSE.

This program uses "node-uuid", Copyright (c) 2010 Robert Kieffer,
according to the terms of the MIT license.

This program uses "request", Copyright (c) 2011 Mikeal Rogers,
according to the terms of the Apache license.

This program uses "mkdirp", Copyright (c) 2010 James Halliday,
according to the terms of the MIT/X11 license.
2 changes: 1 addition & 1 deletion deps/npm/Makefile
Expand Up @@ -123,7 +123,7 @@ doc-publish: doc
rsync -vazu --stats --no-implied-dirs --delete html/api/ npmjs.org:/var/www/npmjs.org/public/api

zip-publish: release
scp release/*.zip npmjs.org:/var/www/npmjs.org/public/dist/
scp release/* npmjs.org:/var/www/npmjs.org/public/dist/

release:
@bash scripts/release.sh
Expand Down
7 changes: 7 additions & 0 deletions deps/npm/bin/npm-cli.js
Expand Up @@ -49,6 +49,13 @@ if (conf.version) {
return
}

if (conf.versions) {
var v = process.versions
v.npm = npm.version
console.log(v)
return
}

log.info("npm@"+npm.version, "using")
log.info("node@"+process.version, "using")

Expand Down
16 changes: 0 additions & 16 deletions deps/npm/bin/npm-get-uid-gid.js

This file was deleted.

8 changes: 4 additions & 4 deletions deps/npm/bin/npm.cmd
@@ -1,6 +1,6 @@
:: Created by npm, please don't edit manually.
@IF EXIST "%~dp0"\"node.exe" (
"%~dp0"\"node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
) ELSE (
node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
)
node "%~dp0\.\node_modules\npm\bin\npm-cli.js" %*
)
6 changes: 6 additions & 0 deletions deps/npm/doc/api/ls.md
Expand Up @@ -21,6 +21,12 @@ It will print out extraneous, missing, and invalid packages.
If the silent parameter is set to true, nothing will be output to the screen,
but the data will still be returned.

Callback is provided an error if one occurred, the full data about which
packages are installed and which dependencies they will receive, and a
"lite" data object which just shows which versions are installed where.
Note that the full data object is a circular structure, so care must be
taken if it is serialized to JSON.

## CONFIGURATION

### long
Expand Down
44 changes: 44 additions & 0 deletions deps/npm/doc/cli/changelog.md
Expand Up @@ -3,6 +3,50 @@ npm-changelog(1) -- Changes

## HISTORY

### 1.1.3, 1.1.4

* Update request to support HTTPS-over-HTTP proxy tunneling
* Throw on undefined envs in config settings
* Update which to 1.0.5
* Fix windows UNC busyloop in findPrefix
* Bundle nested bundleDependencies properly
* Alias adduser to add-user
* Doc updates (Christian Howe, Henrik Hodne, Andrew Lunny)
* ignore logfd/outfd streams in makeEnv() (Rod Vagg)
* shrinkwrap: Behave properly with url-installed deps
* install: Support --save with url install targets
* Support installing naked tars or single-file modules from urls etc.
* init: Don't add engines section
* Don't run make clean on rebuild
* Added missing unicode replacement (atomizer)

### 1.1.2

Dave Pacheco (2):
add "npm shrinkwrap"

Martin Cooper (1):
Fix #1753 Make a copy of the cached objects we'll modify.

Tim Oxley (1):
correctly remove readme from default npm view command.

Tyler Green (1):
fix #2187 set terminal columns to Infinity if 0

isaacs (19):
update minimatch
update request
Experimental: single-file modules
Fix #2172 Don't remove global mans uninstalling local pkgs
Add --versions flag to show the version of node as well
Support --json flag for ls output
update request to 2.9.151

### 1.1
* Replace system tar dependency with a JS tar
* Continue to refine

### 1.0
* Greatly simplified folder structure
* Install locally (bundle by default)
Expand Down
4 changes: 2 additions & 2 deletions deps/npm/doc/cli/coding-style.md
Expand Up @@ -59,8 +59,8 @@ Don't use them except in four situations:
* `for (;;)` loops. They're actually required.
* null loops like: `while (something) ;` (But you'd better have a good
reason for doing that.)
* case "foo": doSomething(); break
* In front of a leading ( or [ at the start of the line.
* `case "foo": doSomething(); break`
* In front of a leading `(` or `[` at the start of the line.
This prevents the expression from being interpreted
as a function call or property access, respectively.

Expand Down
72 changes: 71 additions & 1 deletion deps/npm/doc/cli/config.md
Expand Up @@ -115,6 +115,8 @@ The following shorthands are parsed on the command-line:
* `-l`: `--long`
* `-desc`: `--description`
* `-S`: `--save`
* `-D`: `--save-dev`
* `-O`: `--save-optional`
* `-y`: `--yes`
* `-n`: `--yes false`
* `ll` and `la` commands: `ls --long`
Expand Down Expand Up @@ -218,6 +220,28 @@ See also the `strict-ssl` config.

The location of npm's cache directory. See `npm-cache(1)`

### cache-max

* Default: Infinity
* Type: Number

The maximum time (in seconds) to keep items in the registry cache before
re-checking against the registry.

Note that no purging is done unless the `npm cache clean` command is
explicitly used, and that only GET requests use the cache.

### cache-min

* Default: 0
* Type: Number

The minimum time (in seconds) to keep items in the registry cache before
re-checking against the registry.

Note that no purging is done unless the `npm cache clean` command is
explicitly used, and that only GET requests use the cache.

### color

* Default: true on Posix, false on Windows
Expand Down Expand Up @@ -336,6 +360,13 @@ user.

A proxy to use for outgoing https requests.

### user-agent

* Default: npm/{npm.version} node/{process.version}
* Type: String

Sets a User-Agent to the request header

### ignore

* Default: ""
Expand All @@ -353,7 +384,7 @@ The value `npm init` should use by default for the package version.

### init.author.name

* Default: "0.0.0"
* Default: ""
* Type: String

The value `npm init` should use by default for the package author's name.
Expand All @@ -372,6 +403,17 @@ The value `npm init` should use by default for the package author's email.

The value `npm init` should use by default for the package author's homepage.

### json

* Default: false
* Type: Boolean

Whether or not to output JSON data, rather than the normal output.

This feature is currently experimental, and the output data structures
for many commands is either not implemented in JSON yet, or subject to
change. Only the output from `npm ls --json` is currently valid.

### link

* Default: false
Expand Down Expand Up @@ -544,6 +586,24 @@ Save installed packages to a package.json file as dependencies.

Only works if there is already a package.json file present.

### save-dev

* Default: false
* Type: Boolean

Save installed packages to a package.json file as devDependencies.

Only works if there is already a package.json file present.

### save-optional

* Default: false
* Type: Boolean

Save installed packages to a package.json file as optionalDependencies.

Only works if there is already a package.json file present.

### searchopts

* Default: ""
Expand Down Expand Up @@ -682,6 +742,16 @@ If true, output the npm version and exit successfully.

Only relevant when specified explicitly on the command line.

### versions

* Default: false
* Type: boolean

If true, output the npm version as well as node's `process.versions`
hash, and exit successfully.

Only relevant when specified explicitly on the command line.

### viewer

* Default: "man" on Posix, "browser" on Windows
Expand Down
11 changes: 11 additions & 0 deletions deps/npm/doc/cli/developers.md
Expand Up @@ -27,12 +27,23 @@ A package is:
* d) a `<name>@<version>` that is published on the registry with (c)
* e) a `<name>@<tag>` that points to (d)
* f) a `<name>` that has a "latest" tag satisfying (e)
* g) a `git` url that, when cloned, results in (a).

Even if you never publish your package, you can still get a lot of
benefits of using npm if you just want to write a node program (a), and
perhaps if you also want to be able to easily install it elsewhere
after packing it up into a tarball (b).

Git urls can be of the form:

git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish

The `commit-ish` can be any tag, sha, or branch which can be supplied as
an argument to `git checkout`. The default is `master`.

## The package.json File

You need to have a `package.json` file in the root of your project to do
Expand Down
8 changes: 8 additions & 0 deletions deps/npm/doc/cli/index.md
Expand Up @@ -170,6 +170,10 @@ npm-index(1) -- Index of all npm documentation

The semantic versioner for npm

## npm-shrinkwrap(1)

Lock down dependency versions

## npm-star(1)

Mark your favorite packages
Expand Down Expand Up @@ -323,6 +327,10 @@ npm-index(1) -- Index of all npm documentation

Search for packages

## npm-shrinkwrap(3)

programmatically generate package shrinkwrap file

## npm-start(3)

Start a package
Expand Down

0 comments on commit 33a9ac6

Please sign in to comment.