use of com.synopsys.integration.detectable.detectables.npm.lockfile.parse.NpmLockfilePackager in project synopsys-detect by blackducksoftware.
the class NpmPeerExclusionTest method createPackager.
private NpmLockfilePackager createPackager(NpmDependencyType... excludedTypes) {
ExternalIdFactory externalIdFactory = new ExternalIdFactory();
Gson gson = new GsonBuilder().setPrettyPrinting().create();
NpmLockfileGraphTransformer graphTransformer = new NpmLockfileGraphTransformer(EnumListFilter.fromExcluded(excludedTypes));
NpmLockFileProjectIdTransformer projectIdTransformer = new NpmLockFileProjectIdTransformer(gson, externalIdFactory);
return new NpmLockfilePackager(gson, externalIdFactory, projectIdTransformer, graphTransformer);
}
use of com.synopsys.integration.detectable.detectables.npm.lockfile.parse.NpmLockfilePackager in project synopsys-detect by blackducksoftware.
the class NpmDevExclusionTest method createPackager.
private NpmLockfilePackager createPackager(NpmDependencyType... excludedTypes) {
ExternalIdFactory externalIdFactory = new ExternalIdFactory();
Gson gson = new GsonBuilder().setPrettyPrinting().create();
NpmLockfileGraphTransformer graphTransformer = new NpmLockfileGraphTransformer(EnumListFilter.fromExcluded(excludedTypes));
NpmLockFileProjectIdTransformer projectIdTransformer = new NpmLockFileProjectIdTransformer(gson, externalIdFactory);
return new NpmLockfilePackager(gson, externalIdFactory, projectIdTransformer, graphTransformer);
}
Aggregations