snyk-docker-plugin
Version:
Snyk CLI docker plugin
12 lines (11 loc) • 785 B
TypeScript
import * as lockFileParser from "snyk-nodejs-lockfile-parser";
import { NodeLockfileVersion } from "snyk-nodejs-lockfile-parser";
import { AppDepsScanResultWithoutTarget, FilePathToContent } from "./types";
export declare function nodeFilesToScannedProjects(filePathToContent: FilePathToContent, shouldIncludeNodeModules: boolean): Promise<AppDepsScanResultWithoutTarget[]>;
export interface LockFileInfo {
path: string;
type: lockFileParser.LockfileType;
}
export declare function detectLockFile(directoryPath: string, filesInDirectory: Set<string>): LockFileInfo | null;
export declare function getLockFileVersion(lockFilePath: string, lockFileContents: string): NodeLockfileVersion;
export declare function shouldBuildDepTree(lockfileVersion: NodeLockfileVersion): boolean;