snyk 1.784.0 → 1.785.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.
@@ -5901,7 +5901,8 @@ function convertTestDepGraphResultToLegacy(res, depGraph, packageManager, option
5901
5901
  const severityThreshold = options.severityThreshold === SEVERITY.LOW
5902
5902
  ? undefined
5903
5903
  : options.severityThreshold;
5904
- if (options.docker && options.file && options['exclude-base-image-vulns']) {
5904
+ if (options.docker && (dockerRes === null || dockerRes === void 0 ? void 0 : dockerRes.baseImage) &&
5905
+ options['exclude-base-image-vulns']) {
5905
5906
  vulns = vulns.filter((vuln) => vuln.dockerfileInstruction);
5906
5907
  }
5907
5908
  const legacyRes = {