NpmTarball class allow a resolver to be injected in constructor options but I think we should also allow the injection of the `AstAnalyser` class