(npm, report)
| 140 | // if we get here, we know it's not quiet or json. |
| 141 | // If the loglevel is silent, then we just run the report to get the exitCode set appropriately. |
| 142 | const printAuditReport = (npm, report) => { |
| 143 | const res = getAuditReport(npm, report) |
| 144 | if (!res || !res.report) { |
| 145 | return |
| 146 | } |
| 147 | output.standard(`\n${res.report}`) |
| 148 | } |
| 149 | |
| 150 | const getAuditReport = (npm, report) => { |
| 151 | if (!report) { |
no test coverage detected