snyk 1.1022.0 → 1.1023.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.
@@ -3171,7 +3171,7 @@ function formatSnykIacTestTestData(snykIacTestScanResult, projectName, orgName)
3171
3171
  const filesWithIssuesCount = countFilesWithIssues(snykIacTestScanResult);
3172
3172
  const filesWithoutIssuesCount = allFilesCount - filesWithIssuesCount;
3173
3173
  const ignores = snykIacTestScanResult
3174
- ? snykIacTestScanResult.scanAnalytics.ignoredCount
3174
+ ? snykIacTestScanResult.metadata.ignoredCount
3175
3175
  : 0;
3176
3176
  let contextSuppressedIssueCount;
3177
3177
  const suppressedResults = (_a = snykIacTestScanResult === null || snykIacTestScanResult === void 0 ? void 0 : snykIacTestScanResult.scanAnalytics) === null || _a === void 0 ? void 0 : _a.suppressedResults;
@@ -4448,7 +4448,7 @@ function computeIacAnalytics(testOutput) {
4448
4448
  iacType,
4449
4449
  packageManager: Object.keys(iacType),
4450
4450
  iacIssuesCount: ((_b = (_a = testOutput.results) === null || _a === void 0 ? void 0 : _a.vulnerabilities) === null || _b === void 0 ? void 0 : _b.length) || 0,
4451
- iacIgnoredIssuesCount: ((_c = testOutput.results) === null || _c === void 0 ? void 0 : _c.scanAnalytics.ignoredCount) || 0,
4451
+ iacIgnoredIssuesCount: ((_c = testOutput.results) === null || _c === void 0 ? void 0 : _c.metadata.ignoredCount) || 0,
4452
4452
  iacFilesCount: Object.values(iacType).reduce((acc, packageManagerAnalytics) => acc + packageManagerAnalytics.count, 0),
4453
4453
  iacResourcesCount: ((_e = (_d = testOutput.results) === null || _d === void 0 ? void 0 : _d.resources) === null || _e === void 0 ? void 0 : _e.length) || 0,
4454
4454
  iacErrorCodes: [...new Set((_f = testOutput.errors) === null || _f === void 0 ? void 0 : _f.map((error) => error.code))] || [],