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