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/version.js')
-rw-r--r--deps/npm/lib/version.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/npm/lib/version.js b/deps/npm/lib/version.js
index 3a46efae19b..9d87b2f2c95 100644
--- a/deps/npm/lib/version.js
+++ b/deps/npm/lib/version.js
@@ -3,13 +3,12 @@ const npm = require('./npm.js')
const output = require('./utils/output.js')
const usageUtil = require('./utils/usage.js')
-const completion = (opts, cb) => {
- const none = require('./utils/completion/none.js')
+const completion = async (opts) => {
const { conf: { argv: { remain } } } = opts
if (remain.length > 2)
- return none(opts, cb)
+ return []
- return cb(null, [
+ return [
'major',
'minor',
'patch',
@@ -18,7 +17,7 @@ const completion = (opts, cb) => {
'prepatch',
'prerelease',
'from-git',
- ])
+ ]
}
const usage = usageUtil('version',