UNPKG

817 BTypeScriptView Raw
1import { PkgInfo, DepGraph } from '@snyk/dep-graph';
2import { Lockfile } from './types';
3export default class LockfileParser {
4 static readFile(lockfilePath: string): Promise<LockfileParser>;
5 static readFileSync(lockfilePath: string): LockfileParser;
6 static readContents(contents: string, rootPkgInfo?: PkgInfo): LockfileParser;
7 private rootPkgInfo;
8 private internalData;
9 constructor(hash: Lockfile, rootPkgInfo?: PkgInfo);
10 toDepGraph(): DepGraph;
11 private nodeIdForPkgInfo;
12 private nodeInfoLabelsForPod;
13 private checksumForPod;
14 private repositoryForPod;
15 private externalSourceInfoForPod;
16 private checkoutOptionsForPod;
17 private get repositories();
18 private get pkgManager();
19 private get cocoapodsVersion();
20 get podfileChecksum(): string | undefined;
21}