UNPKG

snyk-nodejs-lockfile-parser

Version:
12 lines (11 loc) 726 B
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; }