Skip to content

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

Closed

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> {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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