@nodesecure/scanner
Version:
A package API to run a static analysis of your module's dependencies.
30 lines • 978 B
TypeScript
import type { Warning, WarningName } from "@nodesecure/js-x-ray";
import type { ManifestProbeExtractor, ProbeExtractorManifestParent } from "../payload.ts";
import type { DependencyVersion } from "../../types.ts";
export type WarningsResult = {
warnings: {
count: number;
groups: Record<string, Warning[]>;
uniqueKinds: Record<WarningName, number>;
};
};
export interface WarningsOptions {
/**
* @default true
*/
useSpecAsKey?: boolean;
}
export declare class Warnings implements ManifestProbeExtractor<WarningsResult> {
#private;
level: "manifest";
constructor(options?: WarningsOptions);
next(version: string, depVersion: DependencyVersion, parent: ProbeExtractorManifestParent): void;
done(): {
warnings: {
count: number;
uniqueKinds: any;
groups: Record<string, Warning<WarningName>[]>;
};
};
}
//# sourceMappingURL=WarningsExtractor.class.d.ts.map