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>2020-03-05 09:49:57 +0300
committerisaacs <i@izs.me>2020-03-07 08:14:16 +0300
commitbf3370b277c9e738215830fa57a4301c7f8fe59f (patch)
tree8c9acbb4fc328f73018311d0eb7150cb66ef1352
parent500010ae9c3ac0e6b1c0a163a30dfbdfdffa3ef3 (diff)
Remove two remaining BB remnants
PR-URL: https://github.com/npm/cli/pull/968 Credit: @isaacs and @mikemimik Close: #968
-rw-r--r--lib/auth/sso.js2
-rw-r--r--lib/version.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/auth/sso.js b/lib/auth/sso.js
index a231f1edd..162a233ca 100644
--- a/lib/auth/sso.js
+++ b/lib/auth/sso.js
@@ -46,7 +46,7 @@ module.exports.login = function login (creds, registry, scope, cb) {
output('Logged in as %s%s on %s.', username, scopeMessage, registry)
return {token}
})
- }).nodeify(cb)
+ }).then(res => cb(null, res), cb)
}
function pollForSession (registry, token, opts) {
diff --git a/lib/version.js b/lib/version.js
index e619b191e..180f5a086 100644
--- a/lib/version.js
+++ b/lib/version.js
@@ -321,7 +321,7 @@ function _commit (version, localData, cb) {
buildTagFlags(), message
], options)
}
- }).nodeify(cb)
+ }).then(res => cb(null, res), cb)
}
function stagePackageFiles (localData, options) {