Debugging

This commit is contained in:
Justin Hutchings
2023-01-22 08:04:48 +00:00
parent c953ca12f5
commit 0b162f8538
3 changed files with 3 additions and 3 deletions

View File

@@ -66,10 +66,10 @@ export default class ComponentDetection {
var json: any = JSON.parse(results);
json.componentsFound.forEach(async (component: any) => {
core.debug(component.name);
const packageUrl = ComponentDetection.makePackageUrl(component.component.packageUrl);
if (!packageCache.hasPackage(packageUrl)) {
core.debug(component.component.id);
const pkg = new ComponentDetectionPackage(packageUrl, component.component.id,
component.isDevelopmentDependency,component.topLevelReferrers,component.locationsFoundAt, component.containerDetailIds, component.containerLayerIds);
packageCache.addPackage(pkg);

2
dist/index.js generated vendored
View File

@@ -23790,9 +23790,9 @@ class ComponentDetection {
const results = yield fs_1.default.readFileSync(this.outputPath, 'utf8');
var json = JSON.parse(results);
json.componentsFound.forEach((component) => __awaiter(this, void 0, void 0, function* () {
core.debug(component.name);
const packageUrl = ComponentDetection.makePackageUrl(component.component.packageUrl);
if (!packageCache.hasPackage(packageUrl)) {
core.debug(component.component.id);
const pkg = new ComponentDetectionPackage(packageUrl, component.component.id, component.isDevelopmentDependency, component.topLevelReferrers, component.locationsFoundAt, component.containerDetailIds, component.containerLayerIds);
packageCache.addPackage(pkg);
packages.push(pkg);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long