We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8423d4f commit 5b6172fCopy full SHA for 5b6172f
lib/commands/logout.js
@@ -1,5 +1,5 @@
1
-const getAuth = require('npm-registry-fetch/lib/auth.js')
2
const npmFetch = require('npm-registry-fetch')
+const { getAuth } = npmFetch
3
const log = require('../utils/log-shim')
4
const BaseCommand = require('../base-command.js')
5
@@ -26,6 +26,7 @@ class Logout extends BaseCommand {
26
log.verbose('logout', `clearing token for ${reg}`)
27
await npmFetch(`/-/user/token/${encodeURIComponent(auth.token)}`, {
28
...this.npm.flatOptions,
29
+ registry: reg,
30
method: 'DELETE',
31
ignoreBody: true,
32
})
0 commit comments