Fix manifest duplication bug
This commit is contained in:
@@ -91,7 +91,7 @@ export default class ComponentDetection {
|
|||||||
// Check the locationsFoundAt for every package and add each as a manifest
|
// Check the locationsFoundAt for every package and add each as a manifest
|
||||||
packages.forEach(async (pkg: ComponentDetectionPackage) => {
|
packages.forEach(async (pkg: ComponentDetectionPackage) => {
|
||||||
pkg.locationsFoundAt.forEach(async (location: any) => {
|
pkg.locationsFoundAt.forEach(async (location: any) => {
|
||||||
if (!manifests[location.filePath]) {
|
if (!manifests[location]) {
|
||||||
const manifest = new Manifest(location, location);
|
const manifest = new Manifest(location, location);
|
||||||
manifests.push(manifest);
|
manifests.push(manifest);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -23811,7 +23811,7 @@ class ComponentDetection {
|
|||||||
packages.forEach((pkg) => __awaiter(this, void 0, void 0, function* () {
|
packages.forEach((pkg) => __awaiter(this, void 0, void 0, function* () {
|
||||||
pkg.locationsFoundAt.forEach((location) => __awaiter(this, void 0, void 0, function* () {
|
pkg.locationsFoundAt.forEach((location) => __awaiter(this, void 0, void 0, function* () {
|
||||||
var _a, _b;
|
var _a, _b;
|
||||||
if (!manifests[location.filePath]) {
|
if (!manifests[location]) {
|
||||||
const manifest = new dependency_submission_toolkit_1.Manifest(location, location);
|
const manifest = new dependency_submission_toolkit_1.Manifest(location, location);
|
||||||
manifests.push(manifest);
|
manifests.push(manifest);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user