Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-08-25 08:36:05 +0400
committerisaacs <i@izs.me>2010-08-25 16:21:52 +0400
commitd2fa25efde2322187f820c7f34de38d1da5f4391 (patch)
tree3705b00d16b590f122703fd2fd66afb611fc07ab
parent9b5327b89a9b54e1b040ac1650cdcaa52fffeca2 (diff)
Asynchronize uninstalling
-rw-r--r--lib/uninstall.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/uninstall.js b/lib/uninstall.js
index b5bc37993..61b3e3725 100644
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -118,7 +118,7 @@ function checkDependents (pkg, others, cb) {
}
function secondPart (args, cb) {
- var c = args.map(function (arg) { return function (cb) {
+ asyncMap(args, function (arg, cb) {
var name = arg.name
chain
( function (cb) {
@@ -152,9 +152,7 @@ function secondPart (args, cb) {
, [log, "complete", "uninstall "+arg._id]
, cb
)
- }})
- c.push(cb)
- chain(c)
+ }, cb)
}
function rmMans (pkg, cb) {
var manroot = npm.config.get("manroot")