snyk 1.1149.0 → 1.1150.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.
@@ -169087,6 +169087,8 @@ async function buildGraph(snykGraph, projectName, projectVersion, coordinateMap)
169087
169087
  if (!item)
169088
169088
  continue;
169089
169089
  let { id, parentId } = item;
169090
+ // take a copy as id maybe mutated below and we need this id when finding childing in snykGraph
169091
+ const snykGraphId = `${id}`;
169090
169092
  const node = snykGraph[id];
169091
169093
  if (!node)
169092
169094
  continue;
@@ -169112,7 +169114,7 @@ async function buildGraph(snykGraph, projectName, projectVersion, coordinateMap)
169112
169114
  }
169113
169115
  depGraphBuilder.addPkgNode({ name, version }, id);
169114
169116
  depGraphBuilder.connectDep(parentId, id);
169115
- queue.push(...findChildren(id, snykGraph)); // queue children
169117
+ queue.push(...findChildren(snykGraphId, snykGraph)); // queue children
169116
169118
  visited.push(id);
169117
169119
  }
169118
169120
  return depGraphBuilder.build();