Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-audit-report

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-audit-report - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

11

lib/utils.js

@@ -26,11 +26,10 @@ 'use strict'

function color (value, colorName, withColor, bold = false) {
if (bold) {
return (colorName && withColor) ? ccs.color(colorName, 'bold') + value + ccs.color('reset') : value
}
function color (value, colorName, withColor) {
return (colorName && withColor) ? ccs.color(colorName) + value + ccs.color('reset') : value
}
function severityLabel (sev, withColor, bold = false) {
return color(severityColors[sev].label, severityColors[sev].color, withColor, bold)
function severityLabel (sev, withColor, bold) {
let colorName = severityColors[sev].color
if (bold) colorName = [colorName, 'bold']
return color(severityColors[sev].label, colorName, withColor)
}
{
"name": "npm-audit-report",
"version": "1.0.8",
"version": "1.0.9",
"description": "Given a response from the npm security api, render it into a variety of security reports",

@@ -39,3 +39,8 @@ "main": "index.js",

},
"homepage": "https://github.com/npm/npm-audit-report#readme"
"homepage": "https://github.com/npm/npm-audit-report#readme",
"files": [
"index.js",
"lib",
"reporters"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc