UNPKG

snyk-nodejs-lockfile-parser

Version:
14 lines (13 loc) 846 B
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; }