Attempting to fix manifest duplication

This commit is contained in:
Justin Hutchings
2023-01-22 08:33:45 +00:00
parent f45d764bb0
commit 8059014281
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export default class ComponentDetection {
// Check the locationsFoundAt for every package and add each as a manifest
packages.forEach(async (pkg: ComponentDetectionPackage) => {
pkg.locationsFoundAt.forEach(async (location: any) => {
if (!manifests[location]) {
if (!manifests.find((manifest: Manifest) => manifest.name == location)) {
const manifest = new Manifest(location, location);
manifests.push(manifest);
}
Generated Vendored
+1 -1
View File
@@ -23811,7 +23811,7 @@ class ComponentDetection {
packages.forEach((pkg) => __awaiter(this, void 0, void 0, function* () {
pkg.locationsFoundAt.forEach((location) => __awaiter(this, void 0, void 0, function* () {
var _a, _b;
if (!manifests[location]) {
if (!manifests.find((manifest) => manifest.name == location)) {
const manifest = new dependency_submission_toolkit_1.Manifest(location, location);
manifests.push(manifest);
}
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long