A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/5b6172f01c88b73e83a75a508bbdcad92231ead5 below:

logout from custom registry · npm/cli@5b6172f · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+2

-1

lines changed Original file line number Diff line number Diff line change

@@ -1,5 +1,5 @@

1 -

const getAuth = require('npm-registry-fetch/lib/auth.js')

2 1

const npmFetch = require('npm-registry-fetch')

2 +

const { getAuth } = npmFetch

3 3

const log = require('../utils/log-shim')

4 4

const BaseCommand = require('../base-command.js')

5 5

@@ -26,6 +26,7 @@ class Logout extends BaseCommand {

26 26

log.verbose('logout', `clearing token for ${reg}`)

27 27

await npmFetch(`/-/user/token/${encodeURIComponent(auth.token)}`, {

28 28

...this.npm.flatOptions,

29 +

registry: reg,

29 30

method: 'DELETE',

30 31

ignoreBody: true,

31 32

})

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4