first
This commit is contained in:
34
safekiso-server/node_modules/snyk/dist/lib/snyk-test/common.d.ts
generated
vendored
Normal file
34
safekiso-server/node_modules/snyk/dist/lib/snyk-test/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
/// <reference types="node" />
|
||||
import { Writable } from 'stream';
|
||||
import { DepGraphData } from '@snyk/dep-graph';
|
||||
import { Options } from '../types';
|
||||
export declare function assembleQueryString(options: any): {
|
||||
org: string;
|
||||
severityThreshold?: boolean | undefined;
|
||||
ignorePolicy?: boolean | undefined;
|
||||
} | null;
|
||||
export declare enum SEVERITY {
|
||||
LOW = "low",
|
||||
MEDIUM = "medium",
|
||||
HIGH = "high",
|
||||
CRITICAL = "critical"
|
||||
}
|
||||
export declare const SEVERITIES: Array<{
|
||||
verboseName: SEVERITY;
|
||||
value: number;
|
||||
}>;
|
||||
export declare function colorTextBySeverity(severity: string, textToColor: string): string;
|
||||
export declare enum FAIL_ON {
|
||||
all = "all",
|
||||
upgradable = "upgradable",
|
||||
patchable = "patchable"
|
||||
}
|
||||
export type FailOn = 'all' | 'upgradable' | 'patchable';
|
||||
export declare const RETRY_ATTEMPTS = 3;
|
||||
export declare const RETRY_DELAY = 500;
|
||||
/**
|
||||
* printDepGraph writes the given dep-graph and target name to the destination
|
||||
* stream as expected by the `depgraph` CLI workflow.
|
||||
*/
|
||||
export declare function printDepGraph(depGraph: DepGraphData, targetName: string, destination: Writable): Promise<void>;
|
||||
export declare function shouldPrintDepGraph(opts: Options): boolean;
|
||||
Reference in New Issue
Block a user