snyk 1.956.0 → 1.957.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.
@@ -946,6 +946,7 @@ const plugin_analytics_1 = __webpack_require__(33077);
946
946
  const policy_1 = __webpack_require__(32615);
947
947
  const policy_2 = __webpack_require__(4669);
948
948
  async function resolveAndTestFacts(ecosystem, scans, options) {
949
+ var _a, _b, _c, _d, _e;
949
950
  const results = [];
950
951
  const errors = [];
951
952
  const packageManager = 'Unmanaged (C/C++)';
@@ -975,7 +976,9 @@ async function resolveAndTestFacts(ecosystem, scans, options) {
975
976
  issueData.packageManager = packageManager;
976
977
  vulnerabilities.push(issueData);
977
978
  }
978
- const dependencyCount = response.issues.length;
979
+ const dependencyCount = (_e = (_d = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.depGraphData) === null || _a === void 0 ? void 0 : _a.graph) === null || _b === void 0 ? void 0 : _b.nodes) === null || _c === void 0 ? void 0 : _c.find((graphNode) => {
980
+ return graphNode.nodeId === 'root-node';
981
+ })) === null || _d === void 0 ? void 0 : _d.deps) === null || _e === void 0 ? void 0 : _e.length;
979
982
  results.push({
980
983
  issues,
981
984
  issuesData,