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> { |
We should expose JS-X-Ray AstAnalyser options AstAnalyserOptions interface for scanner high level APIs such as workingDir, from and verify.
depWalker function probably need it too.
We already expose these options in the tarball workspace
scanner/workspaces/tarball/src/tarball.ts
Lines 67 to 75 in 11d5d16