UNPKG

@code-pushup/js-packages-plugin

Version:
43 lines (42 loc) 1.17 kB
import type { PackageAuditLevel } from '../../config.js'; export type YarnClassicAuditAdvisory = { type: 'auditAdvisory'; data: { resolution: { id: number; path: string; }; advisory: { module_name: string; severity: PackageAuditLevel; vulnerable_versions: string; recommendation: string; title: string; url: string; }; }; }; export type YarnClassicAuditSummary = { type: 'auditSummary'; data: { vulnerabilities: Record<PackageAuditLevel, number>; }; }; export type YarnClassicAuditResultJson = [ ...YarnClassicAuditAdvisory[], YarnClassicAuditSummary ]; export declare const yarnClassicFieldNames: readonly ["Package", "Current", "Latest", "Package Type", "URL"]; export type YarnClassicFieldName = (typeof yarnClassicFieldNames)[number]; type YarnClassicInfo = { type: 'info'; }; type YarnClassicTable = { type: 'table'; data: { head: string[]; body: string[][]; }; }; export type YarnClassicOutdatedResultJson = [YarnClassicInfo, YarnClassicTable] | []; export {};