UNPKG

snyk-docker-plugin

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