Skip to content

Commit

Permalink
fix: correct bundled deps behaviour and add fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
gitphill authored and JamesPatrickGill committed Jun 28, 2023
1 parent 075f35e commit be500ff
Show file tree
Hide file tree
Showing 6 changed files with 19,914 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/dep-graph-builders/npm-lock-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ export const getChildNodeKey = (
parentIndex < reversedAncestry.length;
parentIndex++
) {
const parentKey = reversedAncestry[parentIndex].key;
const parentName = reversedAncestry[parentIndex].name;
const possibleFilteredKeys = filteredCandidates.filter((key) =>
key.includes(parentKey),
key.includes(parentName),
);

if (possibleFilteredKeys.length === 1) {
Expand Down
Loading

0 comments on commit be500ff

Please sign in to comment.