UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

29 lines (28 loc) 810 B
import type { SecurityAlert } from "../../../types"; export declare class PackageManagerAuditProvider { readonly providerType: "npm"; private log; private strict; private exec; constructor(options?: { debug?: boolean; strict?: boolean; }); fetchAlerts(packages: Array<{ name: string; version: string; }>, options?: { root?: string; }): Promise<SecurityAlert[]>; private enrichWithVersions; private runAudit; private parseNpmCompatibleOutput; private getNpmAdvisories; private convertNpmAdvisory; private convertNpmVulnerability; private parseYarnAuditOutput; private createAdvisoryCvesField; private extractNpmPatchedVersion; private extractYarnPatchedVersion; private normalizeSeverity; }