js-x-ray
js-x-ray copied to clipboard
Inject custom probes in AstAnalyser class
The goal of the task is to allow to package users (developers) to inject a new custom probe using the AstAnalyser
const { AstAnalyser, JsSourceParser } = require("@nodesecure/js-x-ray");
new AstAnalyser({
parser: new JsSourceParser(),
probes: [
// Any valid probe object here
}
});
We probably need to instanciate the ProbeRunner class outside of SourceFile