snyk-nodejs-lockfile-parser
Version:
Generate a dep tree given a lockfile
12 lines (11 loc) • 726 B
TypeScript
import { ParsedDepPath, PnpmDeps, PnpmImporters } from '../types';
import { PnpmLockfileParser } from './lockfile-parser';
import { PnpmWorkspaceArgs } from '../../types';
export declare class LockfileV5Parser extends PnpmLockfileParser {
constructor(rawPnpmLock: any, workspaceArgs?: PnpmWorkspaceArgs);
parseDepPath(depPath: string): ParsedDepPath;
normalizeTopLevelDeps(dependencies: Record<string, string>, isDev: boolean, importerName?: string): PnpmDeps;
normalizePackagesDeps(dependencies: Record<string, string>, isDev: boolean, importerName?: string): Record<string, string>;
excludeTransPeerDepsVersions(fullVersionStr: string): string;
normaliseImporters(rawPnpmLock: any): PnpmImporters;
}