From 87e06407487b69e598922a6e2a43fe81acc18a0f Mon Sep 17 00:00:00 2001 From: Justin Hutchings Date: Sun, 22 Jan 2023 08:24:44 +0000 Subject: [PATCH] Fix null/undefined name issue --- componentDetection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/componentDetection.ts b/componentDetection.ts index 8e42d27..269c8b1 100644 --- a/componentDetection.ts +++ b/componentDetection.ts @@ -93,7 +93,7 @@ export default class ComponentDetection { packages.forEach(async (pkg: ComponentDetectionPackage) => { pkg.locationsFoundAt.forEach(async (location: any) => { if (!manifests[location.filePath]) { - const manifest = new Manifest(location.filePath, location.filePath); + const manifest = new Manifest(location, location); manifests.push(manifest); } if (pkg.topLevelReferrers.length == 0) {