npm-audit-report
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -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" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12337
9
283
1