Skip to content

(Scanner) Expose js-x-ray configuration from APIs #665

@fraxken

Description

@fraxken

We should expose JS-X-Ray AstAnalyser options AstAnalyserOptions interface for scanner high level APIs such as workingDir, from and verify.

import {
  type AstAnalyserOptions
} from "@nodesecure/js-x-ray";

depWalker function probably need it too.

We already expose these options in the tarball workspace

export interface ScanOptions {
astAnalyserOptions?: AstAnalyserOptions;
}
export async function scanDirOrArchive(
locationOrManifest: string | ManifestManager,
ref: DependencyRef,
options: ScanOptions = {}
): Promise<void> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions