Skip to content

Commit 75f96b4

Browse files
committed
Bugfix for undefined in mergeDependencies.
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
1 parent e396aa8 commit 75f96b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/cli/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5618,6 +5618,9 @@ export function mergeDependencies(
56185618
}
56195619
if (adep["dependsOn"]) {
56205620
for (const eachDepends of adep["dependsOn"]) {
5621+
if (!eachDepends){
5622+
continue
5623+
}
56215624
if (parentRef) {
56225625
if (eachDepends.toLowerCase() !== parentRef.toLowerCase()) {
56235626
deps_map[adep.ref].add(eachDepends);
@@ -5630,6 +5633,9 @@ export function mergeDependencies(
56305633
if (adep["provides"]) {
56315634
providesFound = true;
56325635
for (const eachProvides of adep["provides"]) {
5636+
if (!eachProvides){
5637+
continue
5638+
}
56335639
if (
56345640
parentRef &&
56355641
eachProvides.toLowerCase() !== parentRef.toLowerCase()

0 commit comments

Comments
 (0)