snyk 1.873.0 → 1.876.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.
@@ -143148,7 +143148,7 @@ async function display(scanResults, testResults, errors, options) {
143148
143148
  error_1.exitWith(error_1.ExitCode.VulnerabilitiesFound, output, testResults);
143149
143149
  }
143150
143150
  if (!hasDependencies) {
143151
- error_1.exitWith(error_1.ExitCode.NoSupportedFiles, `${output}\nCould not detect supported target files in ${options === null || options === void 0 ? void 0 : options.path}\nPlease see our documentation for supported languages and target files: ${chalk.underline('https://snyk.co/udVgQ')} and make sure you are in the right directory.`);
143151
+ error_1.exitWith(error_1.ExitCode.NoSupportedFiles, `${output}\nCould not find any source code matching the Snyk database of open source dependencies in ${options === null || options === void 0 ? void 0 : options.path}\nPlease see our documentation for supported languages and target files: ${chalk.underline('https://snyk.co/udVgQ')} and make sure you are in the right directory.`);
143152
143152
  }
143153
143153
  return output;
143154
143154
  }
@@ -143521,7 +143521,7 @@ function getExcludedPatterns(projectRoot, policyFilePath = path_1.join(projectRo
143521
143521
  const config = dotSnyk.parse(policyFilePath);
143522
143522
  return [
143523
143523
  policyFilePath,
143524
- ...dotSnyk.toAbsolutePaths(projectRoot, (_a = config === null || config === void 0 ? void 0 : config.exclude) === null || _a === void 0 ? void 0 : _a.unmanaged),
143524
+ ...dotSnyk.toAbsolutePaths(projectRoot, (_a = config === null || config === void 0 ? void 0 : config.exclude) === null || _a === void 0 ? void 0 : _a.global),
143525
143525
  ];
143526
143526
  }
143527
143527
  exports.getExcludedPatterns = getExcludedPatterns;