snyk 1.1064.0 → 1.1065.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.
@@ -196803,11 +196803,11 @@ function parseSbtPluginResults(sbtOutput, packageName, packageVersion) {
196803
196803
  return depTree;
196804
196804
  }
196805
196805
  exports.parseSbtPluginResults = parseSbtPluginResults;
196806
+ const PRODUCTION_SCOPES = ['compile', 'runtime', 'provided'];
196806
196807
  function parseSbtPluginProjectResultToDepTree(projectKey, sbtProjectOutput) {
196807
196808
  const pkgs = Object.keys(sbtProjectOutput.modules)
196808
196809
  .filter((module) => {
196809
- // filtering for the `compile` configuration only, otherwise, there can be multiple graph roots
196810
- return sbtProjectOutput.modules[module].configurations.includes('compile');
196810
+ return sbtProjectOutput.modules[module].configurations.some((c) => PRODUCTION_SCOPES.includes(c));
196811
196811
  });
196812
196812
  const getDependenciesFor = (name) => {
196813
196813
  if (!sbtProjectOutput.dependencies[name]) {
@@ -196818,7 +196818,7 @@ function parseSbtPluginProjectResultToDepTree(projectKey, sbtProjectOutput) {
196818
196818
  }
196819
196819
  const dependencies = {};
196820
196820
  for (const subDepName of sbtProjectOutput.dependencies[name]) {
196821
- if (pkgs.indexOf(subDepName) > -1) { // dependency is in compile configuration
196821
+ if (pkgs.indexOf(subDepName) > -1) { // dependency is in production configuration
196822
196822
  dependencies[subDepName] = getDependenciesFor(subDepName);
196823
196823
  }
196824
196824
  }