@coana-tech/cli 14.12.50 → 14.12.52

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.
@@ -7385,11 +7385,14 @@ var ClassGraphRunner = class {
7385
7385
  appSrcIndices.length ? resolutionManagers.src?.resolveEdges(this.graph, appIndices, appSrcIndices, visited, "DIRECT_DEPENDENCIES") : Promise.resolve(),
7386
7386
  appBinIndices.length ? resolutionManagers.bin?.resolveEdges(this.graph, appIndices, appBinIndices, visited, "DIRECT_DEPENDENCIES") : Promise.resolve()
7387
7387
  ]);
7388
- const reachableNodes = [];
7389
- for (const reachableIdx of this.graph.getEdges().keys()) {
7390
- reachableNodes.push(allNodes[reachableIdx]);
7388
+ const reachablePackageIds = /* @__PURE__ */ new Set();
7389
+ for (const idx of findReachableNodes(this.graph, appIndices)) {
7390
+ const node = allNodes[idx];
7391
+ if (node.nodeType === "reflective")
7392
+ continue;
7393
+ reachablePackageIds.add(allNodes[idx].packageId);
7391
7394
  }
7392
- return n3(reachableNodes.map((node) => node.packageId));
7395
+ return Array.from(reachablePackageIds);
7393
7396
  }
7394
7397
  async runAnalysis(vulnerableClasses) {
7395
7398
  try {
@@ -7402,6 +7405,7 @@ var ClassGraphRunner = class {
7402
7405
  return {
7403
7406
  success: false,
7404
7407
  vulnerablePaths: {},
7408
+ reachablePackageIds: [],
7405
7409
  analysisDiagnostics,
7406
7410
  error: e2.message
7407
7411
  };
@@ -7464,6 +7468,13 @@ var ClassGraphRunner = class {
7464
7468
  vulnerableClassToIndices.get(node.fullyQualifiedName).push(idx);
7465
7469
  });
7466
7470
  const vulnerablePaths = this.computeVulnerablePaths(this.graph, appIndices, allNodes, vulnerableClassToIndices);
7471
+ const reachablePackageIds = /* @__PURE__ */ new Set();
7472
+ for (const idx of findReachableNodes(this.graph, appIndices)) {
7473
+ const node = allNodes[idx];
7474
+ if (node.nodeType === "reflective")
7475
+ continue;
7476
+ reachablePackageIds.add(allNodes[idx].packageId);
7477
+ }
7467
7478
  const analysisDiagnostics = {
7468
7479
  timeout: false,
7469
7480
  aborted: false
@@ -7471,6 +7482,7 @@ var ClassGraphRunner = class {
7471
7482
  const result = {
7472
7483
  success: true,
7473
7484
  vulnerablePaths,
7485
+ reachablePackageIds: Array.from(reachablePackageIds),
7474
7486
  analysisDiagnostics,
7475
7487
  error: null
7476
7488
  };