UNPKG

yarn-audit-fix

Version:
20 lines (19 loc) 1.31 kB
import { TAuditReport, TContext, TLockfileObject, TLockfileType } from '../ifaces'; export declare const getLockfileType: (lockfile: string) => TLockfileType; export declare const _parse: (lockfile: string, lockfileType: TLockfileType) => TLockfileObject; export declare const _format: (lockfile: TLockfileObject, lockfileType: TLockfileType) => string; /** * Pulled up from https://github.com/hfour/yarn-audit-fix-ng/blob/main/src/index.ts */ export declare const _patch: (lockfile: TLockfileObject, report: TAuditReport, { flags, bins }: TContext, lockfileType: TLockfileType) => TLockfileObject; export declare const _audit: ({ flags, temp, bins }: TContext, lockfileType: TLockfileType) => TAuditReport; export declare const _internal: { _parse: (lockfile: string, lockfileType: TLockfileType) => TLockfileObject; _audit: ({ flags, temp, bins }: TContext, lockfileType: TLockfileType) => TAuditReport; _patch: (lockfile: TLockfileObject, report: TAuditReport, { flags, bins }: TContext, lockfileType: TLockfileType) => TLockfileObject; _format: (lockfile: TLockfileObject, lockfileType: TLockfileType) => string; }; export declare const parse: typeof _parse; export declare const audit: typeof _audit; export declare const patch: typeof _patch; export declare const format: typeof _format;