Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/lib/ drwxr-xr-x |
Viewing file: Select action/file-type: module.exports = logout var dezalgo = require('dezalgo') var log = require('npmlog') var npm = require('./npm.js') var mapToRegistry = require('./utils/map-to-registry.js') logout.usage = 'npm logout [--registry=<url>] [--scope=<@scope>]' function afterLogout (normalized, cb) { var scope = npm.config.get('scope') if (scope) npm.config.del(scope + ':registry') npm.config.clearCredentialsByURI(normalized) npm.config.save('user', cb) } function logout (args, cb) { cb = dezalgo(cb) mapToRegistry('/', npm.config, function (err, uri, auth, normalized) { if (err) return cb(err) if (auth.token) { log.verbose('logout', 'clearing session token for', normalized) npm.registry.logout(normalized, { auth: auth }, function (err) { if (err) return cb(err) afterLogout(normalized, cb) }) } else if (auth.username || auth.password) { log.verbose('logout', 'clearing user credentials for', normalized) afterLogout(normalized, cb) } else { cb(new Error( 'Not logged in to', normalized + ',', "so can't log out." )) } }) } |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0035 ]-- |