Skip to content

Commit

Permalink
fix: limit pathfinding to depth 9
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Oct 24, 2023
1 parent c4097d5 commit a7fecbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/issues/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fromGitHub = require('./vulnerabilities/github');

const getPathsForPackage = (packageGraph, packageName, semver, includeDev) => {
const parse = (node, currentPath = [], depth = 0, seenNodes = []) => {
if (seenNodes.includes(node)) {
if (seenNodes.includes(node) || depth > 9) {
return [];
}

Expand Down

0 comments on commit a7fecbc

Please sign in to comment.