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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/dist-tag.js')
-rw-r--r--deps/npm/lib/dist-tag.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/npm/lib/dist-tag.js b/deps/npm/lib/dist-tag.js
index 0e9d914d398..7c20ea99015 100644
--- a/deps/npm/lib/dist-tag.js
+++ b/deps/npm/lib/dist-tag.js
@@ -8,6 +8,7 @@ var npm = require('./npm.js')
var mapToRegistry = require('./utils/map-to-registry.js')
var readLocalPkg = require('./utils/read-local-package.js')
var usage = require('./utils/usage')
+var output = require('./utils/output.js')
distTag.usage = usage(
'dist-tag',
@@ -77,7 +78,7 @@ function add (spec, tag, cb) {
npm.registry.distTags.add(base, params, function (er) {
if (er) return cb(er)
- console.log('+' + t + ': ' + pkg + '@' + version)
+ output('+' + t + ': ' + pkg + '@' + version)
cb()
})
})
@@ -108,7 +109,7 @@ function remove (tag, pkg, cb) {
npm.registry.distTags.rm(base, params, function (er) {
if (er) return cb(er)
- console.log('-' + tag + ': ' + pkg + '@' + version)
+ output('-' + tag + ': ' + pkg + '@' + version)
cb()
})
})
@@ -132,7 +133,7 @@ function list (pkg, cb) {
var msg = Object.keys(tags).map(function (k) {
return k + ': ' + tags[k]
}).sort().join('\n')
- console.log(msg)
+ output(msg)
cb(er, tags)
})
}