Skip to content

Commit

Permalink
fix: downgrade wrap-ansi version as we support node6
Browse files Browse the repository at this point in the history
  • Loading branch information
lwywoo committed Aug 23, 2019
1 parent fb82ebb commit d0c53d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -55,7 +55,7 @@
"@types/agent-base": "^4.2.0",
"abbrev": "^1.1.1",
"ansi-escapes": "3.2.0",
"wrap-ansi": "6.0.0",
"wrap-ansi": "^5.1.0",
"chalk": "^2.4.2",
"configstore": "^3.1.2",
"debug": "^3.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/commands/test/formatters/legacy-format-issue.ts
Expand Up @@ -43,8 +43,8 @@ export function formatIssues(vuln: GroupedVuln, options: Options & TestOptions)
: '',
fixedIn: options.docker ? createFixedInText(vuln) : '',
dockerfilePackage: options.docker ? dockerfileInstructionText(vuln) : '',
legalInstructions: vuln.legalInstructions ? chalk.bold('\n Legal instructions:\n '
+ wrap(vuln.legalInstructions, 100).split('\n').join('\n ')) : '',
legalInstructions: vuln.legalInstructions ? '\n Legal instructions:\n '
+ wrap(vuln.legalInstructions, 100).split('\n').join('\n ') : '',
};

return (
Expand Down
Expand Up @@ -154,8 +154,8 @@ function formatIssue(
title: string,
severity: SEVERITY,
isNew: boolean,
vulnerableModule?: string,
legalInstructions?: string): string {
legalInstructions?: string,
vulnerableModule?: string): string {
const severitiesColourMapping = {
low: {
colorFunc(text) {
Expand Down

0 comments on commit d0c53d1

Please sign in to comment.