Warning: chmod(): Operation not permitted in /var/www/alexvillarreal/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 8
403WebShell
403Webshell
Server IP : 74.208.250.37  /  Your IP : 216.73.216.114
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ubuntu 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : miferval ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/node_modules/libtap/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/node_modules/libtap/lib/extra-from-error.js
'use strict'
const stack = require('./stack.js')

module.exports = (er, extra, options) => {
  // the yaml module puts big stuff here, pluck it off
  if (er.source && typeof er.source === 'object' && er.source.context)
    er.source = { ...er.source, context: null }

  extra = Object.keys(options || {}).reduce((set, k) => {
    if (!(k in set) && !/^tapChild/.test(k))
      set[k] = options[k]
    return set
  }, extra || {})

  if (!er || typeof er !== 'object') {
    extra.error = er
    return extra
  }

  const message = er.message ? er.message
    : er.stack ? er.stack.split('\n')[0]
    : ''

  if (er.message) {
    try {
      Object.defineProperty(er, 'message', {
        value: '',
        configurable: true
      })
    } catch {}
  }

  const st = er.stack && er.stack.substr(
    er._babel ? (message + er.codeFrame).length : 0)
  if (st) {
    const splitst = st.split('\n')
    if (er._babel && er.loc) {
      const msplit = message.split(': ')
      const f = msplit[0].trim()
      extra.message = msplit.slice(1).join(': ')
        .replace(/ \([0-9]+:[0-9]+\)$/, '').trim()
      const file = f.indexOf(process.cwd()) === 0
        ? f.substr(process.cwd().length + 1) : f
      if (file !== 'unknown')
        delete er.codeFrame
      extra.at = {
        file,
        line: er.loc.line,
        column: er.loc.column + 1,
      }
    } else {
      // parse out the 'at' bit from the first line.
      extra.at = stack.parseLine(splitst[1])
    }
    extra.stack = stack.clean(splitst)
  }

  if (message) {
    try {
      Object.defineProperty(er, 'message', {
        value: message,
        configurable: true
      })
    } catch {}
  }

  if (er.name && er.name !== 'Error')
    extra.type = er.name

  Object.keys(er).forEach(k => {
    if (k === 'message' ||
        k === 'domainEmitter' ||
        k === 'domainThrown' ||
        k === 'domain' ||
        k === 'domainBound')
      return
    extra[k] = er[k]
  })

  return extra
}

Youez - 2016 - github.com/yon3zu
LinuXploit