UNPKG

@snyk/cocoapods-lockfile-parser

Version:

Generate a Snyk dependency graph from a Podfile.lock file

48 lines (47 loc) 1.32 kB
export interface NodeInfoLabels { [key: string]: string | undefined; checksum: string; repository?: string; externalSourcePodspec?: string; externalSourcePath?: string; externalSourceGit?: string; externalSourceTag?: string; externalSourceCommit?: string; externalSourceBranch?: string; checkoutOptionsPodspec?: string; checkoutOptionsPath?: string; checkoutOptionsGit?: string; checkoutOptionsTag?: string; checkoutOptionsCommit?: string; checkoutOptionsBranch?: string; } export interface Lockfile { PODS: PodEntry[]; DEPENDENCIES: string[]; 'SPEC REPOS'?: { [key: string]: string[]; }; 'EXTERNAL SOURCES'?: { [key: string]: ExternalSourceInfo; }; 'CHECKOUT OPTIONS'?: { [key: string]: CheckoutOptions; }; 'SPEC CHECKSUMS': { [key: string]: string; }; 'PODFILE CHECKSUM'?: string; COCOAPODS?: string; } type PodEntry = string | { [key: string]: string[]; }; export type ExternalSourceInfoKey = ':podspec' | ':path' | ':git' | ':tag' | ':commit' | ':branch'; export type ExternalSourceInfo = { [K in ExternalSourceInfoKey]?: string; }; export type CheckoutOptionKey = ExternalSourceInfoKey; export type CheckoutOptions = { [K in CheckoutOptionKey]?: string; }; export {};