UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

8 lines (7 loc) 743 B
import type { update } from "../core/update"; import type { PastoralistJSON, PastoralistResult, SecurityAlert } from "../types"; export declare const createEmptyResult: () => PastoralistResult; export declare const createErrorResult: (error: unknown) => PastoralistResult; export declare const buildSecurityResult: (alerts: SecurityAlert[]) => Pick<PastoralistResult, "hasSecurityIssues" | "securityAlertCount" | "securityAlerts">; export declare const buildUpdateResult: (updateResult: ReturnType<typeof update>, config: PastoralistJSON | undefined, isDryRun: boolean) => Pick<PastoralistResult, "overrideCount" | "appliedOverrides" | "updated">; export declare const outputResult: (result: PastoralistResult, isJsonOutput: boolean) => void;