Skip to content

Commit 3ab15cd

Browse files
committed
Update npm to 1.1.0-alpha-2
1 parent 0ba78d5 commit 3ab15cd

138 files changed

Lines changed: 1630 additions & 6819 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ždeps/npm/.gitmodulesβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@
4949
[submodule "node_modules/mkdirp"]
5050
path = node_modules/mkdirp
5151
url = git://github.com/isaacs/node-mkdirp.git
52+
[submodule "node_modules/fast-list"]
53+
path = node_modules/fast-list
54+
url = git://github.com/isaacs/fast-list.git

β€Ždeps/npm/doc/cli/coding-style.mdβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@ Use appropriate log levels. The default log() function logs at the
155155

156156
## Case, naming, etc.
157157

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

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

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

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

167-
Use CAPS_SNAKE_CASE for constants, things that should never change
167+
Use `CAPS_SNAKE_CASE` for constants, things that should never change
168168
and are rarely used.
169169

170170
Use a single uppercase letter for function names where the function

β€Ždeps/npm/lib/completion.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var output = require("./utils/output.js")
2020
completion.completion = function (opts, cb) {
2121
if (opts.w > 3) return cb()
2222

23-
var fs = require("fs")
23+
var fs = require("graceful-fs")
2424
, path = require("path")
2525
, bashExists = null
2626
, zshExists = null

β€Ždeps/npm/lib/utils/tar.jsβ€Ž

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,10 @@ function packFiles (targetTarball, parent, files, pkg, cb) {
7676
, path: parent
7777
, filter: function () {
7878
return -1 !== files.indexOf(this.path)
79-
// || (this.type === "Directory" &&
80-
// this.basename !== ".git")
81-
8279
}
8380
})
8481
.on("error", log.er(cb, "error reading "+parent))
85-
.on("entry", function E (entry) {
86-
entry.on("entry", E)
87-
})
88-
.pipe(tar.Pack({}))
82+
.pipe(tar.Pack())
8983
.on("error", log.er(cb, "tar creation error "+targetTarball))
9084
.pipe(zlib.Gzip())
9185
.on("error", log.er(cb, "gzip error "+targetTarball))
@@ -155,8 +149,9 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) {
155149
log.silly([dMode.toString(8), fMode.toString(8)], "gunzTarPerm modes")
156150

157151
fs.createReadStream(tarball)
152+
.on("error", log.er(cb, "error reading "+tarball))
158153
.pipe(zlib.Unzip())
159-
.on("error", log.er(cb, "unzip error"))
154+
.on("error", log.er(cb, "unzip error "+tarball))
160155
.pipe(tar.Extract({ type: "Directory", path: tmp }))
161156
.on("error", log.er(cb, "Failed unpacking "+tarball))
162157
.on("close", afterUntar)
@@ -165,6 +160,7 @@ function gunzTarPerm (tarball, tmp, dMode, fMode, uid, gid, cb) {
165160
// XXX Do all this in an Extract filter.
166161
//
167162
function afterUntar (er) {
163+
log.silly(er, "afterUntar")
168164
// if we're not doing ownership management,
169165
// then we're done now.
170166
if (er) return log.er(cb, "Failed unpacking "+tarball)(er)

β€Ždeps/npm/node_modules/abbrev/LICENSEβ€Ž

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždeps/npm/node_modules/abbrev/package.jsonβ€Ž

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Ždeps/npm/node_modules/block-stream/bench/block-stream.jsβ€Ž

Lines changed: 0 additions & 68 deletions
This file was deleted.

β€Ždeps/npm/node_modules/block-stream/bench/dropper-pause.jsβ€Ž

Lines changed: 0 additions & 70 deletions
This file was deleted.

β€Ždeps/npm/node_modules/block-stream/bench/dropper.jsβ€Ž

Lines changed: 0 additions & 68 deletions
This file was deleted.

β€Ždeps/npm/node_modules/block-stream/test/basic.jsβ€Ž

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
Β (0)