UNPKG

snyk-docker-plugin

Version:
50 lines (45 loc) 1.3 kB
import { Elf } from "../../go-parser/types"; import { ScanResult } from "../../types"; import type { NodeModulesPackagePath } from "../types"; export interface AppDepsScanResultWithoutTarget extends Omit<ScanResult, "target"> { // Internal-only: per-package node_modules install dirs used to resolve // per-dependency APK ownership. Destructured out before the result becomes a // public ScanResult, so it never reaches the wire. nodeModulesPackagePaths?: NodeModulesPackagePath[]; } export interface FilePathToContent { [filePath: string]: string; } export interface FilePathToBuffer { [filePath: string]: Buffer; } export interface JarInfo extends JarBuffer { coords: JarCoords | null; dependencies: JarCoords[]; nestedJars: JarBuffer[]; } export interface JarBuffer { location: string; buffer: Buffer; } export interface JarCoords { artifactId?: string; groupId?: string; version?: string; } export interface FilePathToElfContent { [filePath: string]: Elf; } export interface AggregatedJars { [path: string]: JarBuffer[]; } export interface ApplicationFileInfo { path: string; } export interface ApplicationFiles { fileHierarchy: ApplicationFileInfo[]; moduleName?: string; language: string; } export type FilesByDirMap = Map<string, Set<string>>;