public DependencyScanner(INpm npm, IFileAccess fileSystem, PackagePolicies packagePolicies, DiskCacheConfig config)
        {
            this.fileSystem      = fileSystem;
            this.npm             = npm;
            this.versionResolver = new NpmVersionResolver(npm, config);
            this.packagePolicies = packagePolicies;
            this.config          = config;

            this.detailsPathFormatStr  = Path.Combine(this.config.CacheRoot, "packageDetails", "{0}_{1}.json");
            this.resolvedPathFormatStr = Path.Combine(this.config.CacheRoot, "resolvedDependencies", "{0}_{1}.json");
        }
Beispiel #2
0
 public NpmVersionResolver(INpm npm, DiskCacheConfig config)
 {
     this.npm = npm;
     npmOverviewPathFormatStr = Path.Combine(config.CacheRoot, "npmOverview", "{0}");
     this.cachePolicy         = config.NpmPackages;
 }