retire
Version:
Retire is a tool for detecting use of vulnerable libraries
18 lines (9 loc) • 716 B
TypeScript
import { Repository, Component, Hasher } from './types';
export declare function check(component: string, version: string, repo: Repository): Component[];
export declare function replaceVersion(jsRepoJsonAsText: string): string;
export declare function isVulnerable(results: Component[]): boolean;
export declare function scanUri(uri: string, repo: Repository): Component[];
export declare function scanFileName(fileName: string, repo: Repository, includeUri: boolean): Component[];
export declare function scanFileContent(content: string, repo: Repository, hasher: Hasher): Component[];
export declare function isAtOrAbove(versionA: string, versionB: string): boolean;
export declare const version: string;