UNPKG

snyk-gradle-plugin

Version:
55 lines (54 loc) 1.26 kB
import type { OutgoingHttpHeaders } from 'http'; import type { NeedleHttpVerbs, NeedleResponse } from 'needle'; export interface RequestInfo { method: NeedleHttpVerbs; path: string; body?: any; headers?: OutgoingHttpHeaders; qs?: {}; json?: boolean; timeout?: number; family?: number; } export type SnykHttpClient = (requestInfo: RequestInfo) => Promise<{ res: NeedleResponse; body: any; }>; export interface Sha1Map { [hash: string]: string; } export interface PomCoords { groupId: string; artifactId: string; version: string; type: string; classifier?: string; } interface PackageResource { id: string; type: 'package'; } type GetPackageResponseData = Array<PackageResource>; interface GetPackageLinks { self?: string | { href: string; meta?: { [key: string]: any; }; }; } export interface GetPackageData { data: GetPackageResponseData; links: GetPackageLinks; } export interface GradleInspectOptions { 'configuration-matching'?: string; 'configuration-attributes'?: string; daemon?: boolean; initScript?: string; gradleNormalizeDeps?: boolean; } export interface CliOptions { 'print-graph'?: boolean; } export {};