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

Commit

Permalink
Update npm to 1.1.0-alpha-2
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Nov 23, 2011
1 parent 8595981 commit a386753
Show file tree
Hide file tree
Showing 138 changed files with 1,630 additions and 6,819 deletions.
3 changes: 3 additions & 0 deletions deps/npm/.gitmodules
Expand Up @@ -49,3 +49,6 @@
[submodule "node_modules/mkdirp"]
path = node_modules/mkdirp
url = git://github.com/isaacs/node-mkdirp.git
[submodule "node_modules/fast-list"]
path = node_modules/fast-list
url = git://github.com/isaacs/fast-list.git
8 changes: 4 additions & 4 deletions deps/npm/doc/cli/coding-style.md
Expand Up @@ -155,16 +155,16 @@ Use appropriate log levels. The default log() function logs at the

## Case, naming, etc.

Use lowerCamelCase for multiword identifiers when they refer to objects,
Use `lowerCamelCase` for multiword identifiers when they refer to objects,
functions, methods, members, or anything not specified in this section.

Use UpperCamelCase for class names (things that you'd pass to "new").
Use `UpperCamelCase` for class names (things that you'd pass to "new").

Use all-lower-hyphen-css-case for multiword filenames and config keys.
Use `all-lower-hyphen-css-case` for multiword filenames and config keys.

Use named functions. They make stack traces easier to follow.

Use CAPS_SNAKE_CASE for constants, things that should never change
Use `CAPS_SNAKE_CASE` for constants, things that should never change
and are rarely used.

Use a single uppercase letter for function names where the function
Expand Down
2 changes: 1 addition & 1 deletion deps/npm/lib/completion.js
Expand Up @@ -20,7 +20,7 @@ var output = require("./utils/output.js")
completion.completion = function (opts, cb) {
if (opts.w > 3) return cb()

var fs = require("fs")
var fs = require("graceful-fs")
, path = require("path")
, bashExists = null
, zshExists = null
Expand Down
12 changes: 4 additions & 8 deletions deps/npm/lib/utils/tar.js
Expand Up @@ -76,16 +76,10 @@ function packFiles (targetTarball, parent, files, pkg, cb) {
, path: parent
, filter: function () {
return -1 !== files.indexOf(this.path)
// || (this.type === "Directory" &&
// this.basename !== ".git")

}
})
.on("error", log.er(cb, "error reading "+parent))
.on("entry", function E (entry) {
entry.on("entry", E)
})
.pipe(tar.Pack({}))
.pipe(tar.Pack())
.on("error", log.er(cb, "tar creation error "+targetTarball))
.pipe(zlib.Gzip())
.on("error", log.er(cb, "gzip error "+targetTarball))
Expand Down Expand Up @@ -155,8 +149,9 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) {
log.silly([dMode.toString(8), fMode.toString(8)], "gunzTarPerm modes")

fs.createReadStream(tarball)
.on("error", log.er(cb, "error reading "+tarball))
.pipe(zlib.Unzip())
.on("error", log.er(cb, "unzip error"))
.on("error", log.er(cb, "unzip error "+tarball))
.pipe(tar.Extract({ type: "Directory", path: tmp }))
.on("error", log.er(cb, "Failed unpacking "+tarball))
.on("close", afterUntar)
Expand All @@ -165,6 +160,7 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) {
// XXX Do all this in an Extract filter.
//
function afterUntar (er) {
log.silly(er, "afterUntar")
// if we're not doing ownership management,
// then we're done now.
if (er) return log.er(cb, "Failed unpacking "+tarball)(er)
Expand Down
23 changes: 23 additions & 0 deletions deps/npm/node_modules/abbrev/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions deps/npm/node_modules/abbrev/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 0 additions & 68 deletions deps/npm/node_modules/block-stream/bench/block-stream.js

This file was deleted.

70 changes: 0 additions & 70 deletions deps/npm/node_modules/block-stream/bench/dropper-pause.js

This file was deleted.

68 changes: 0 additions & 68 deletions deps/npm/node_modules/block-stream/bench/dropper.js

This file was deleted.

27 changes: 0 additions & 27 deletions deps/npm/node_modules/block-stream/test/basic.js

This file was deleted.

0 comments on commit a386753

Please sign in to comment.