@nodesecure/js-x-ray
Version:
JavaScript AST XRay analysis
25 lines • 985 B
TypeScript
import { DiGraph, type VertexBody, type VertexDefinition } from "digraph-js";
import { AstAnalyser, type ReportOnFile, type RuntimeOptions } from "./AstAnalyser.ts";
import { JsSourceParser, type SourceParser } from "./parsers/JsSourceParser.ts";
export interface EntryFilesAnalyserOptions {
astAnalyzer?: AstAnalyser;
loadExtensions?: (defaults: string[]) => string[];
rootPath?: string | URL;
ignoreENOENT?: boolean;
}
export declare class EntryFilesAnalyser {
#private;
static Parsers: {
readonly js: JsSourceParser;
readonly ts: SourceParser;
};
astAnalyzer: AstAnalyser;
allowedExtensions: Set<string>;
dependencies: DiGraph<VertexDefinition<VertexBody>>;
ignoreENOENT: boolean;
constructor(options?: EntryFilesAnalyserOptions);
analyse(entryFiles: Iterable<string | URL>, options?: RuntimeOptions): AsyncGenerator<ReportOnFile & {
file: string;
}>;
}
//# sourceMappingURL=EntryFilesAnalyser.d.ts.map