snyk 1.1188.0 → 1.1189.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209472,8 +209472,8 @@ const getChildNodeKey = (name, version, ancestry, pkgs, pkgKeysByName) => {
209472
209472
  // ancestor package
209473
209473
  const reversedAncestry = ancestry.reverse();
209474
209474
  for (let parentIndex = 0; parentIndex < reversedAncestry.length; parentIndex++) {
209475
- const parentKey = reversedAncestry[parentIndex].key;
209476
- const possibleFilteredKeys = filteredCandidates.filter((key) => key.includes(parentKey));
209475
+ const parentName = reversedAncestry[parentIndex].name;
209476
+ const possibleFilteredKeys = filteredCandidates.filter((key) => key.includes(parentName));
209477
209477
  if (possibleFilteredKeys.length === 1) {
209478
209478
  return possibleFilteredKeys[0];
209479
209479
  }