UNPKG

npm-audit-pipeline

Version:
16 lines (15 loc) 520 B
import { NpmAuditorConfiguration } from './argsParser'; import { NpmAuditResponse } from './executorResponseHandler'; export declare enum Level { info = "info", low = "low", moderate = "moderate", high = "high", critical = "critical" } export declare type LevelAudit = { level: Level; expectedCount: number; actualCount: number; }; export declare const evaluateFailedVulnerabilities: (config: NpmAuditorConfiguration) => (npmAuditResponse: NpmAuditResponse) => ReadonlyArray<LevelAudit>;