snyk-gradle-plugin
Advanced tools
Comparing version 2.6.1 to 2.7.0
@@ -23,2 +23,5 @@ export interface BaseInspectOptions { | ||
targetFile?: string; | ||
meta?: { | ||
allDepRootNames?: string[]; | ||
}; | ||
} | ||
@@ -25,0 +28,0 @@ export interface DepDict { |
@@ -35,5 +35,10 @@ "use strict"; | ||
} | ||
const depTreeAndDepRootNames = yield getAllDepsOneProject(root, targetFile, options, subProject); | ||
if (depTreeAndDepRootNames.allDepRootNames) { | ||
plugin.meta = plugin.meta || {}; | ||
plugin.meta.allDepRootNames = depTreeAndDepRootNames.allDepRootNames; | ||
} | ||
return { | ||
plugin, | ||
package: yield getAllDepsOneProject(root, targetFile, options, subProject), | ||
package: depTreeAndDepRootNames.depTree, | ||
}; | ||
@@ -71,14 +76,21 @@ }); | ||
const allProjectDeps = yield getAllDeps(root, targetFile, options); | ||
const allDepRootNames = Object.keys(allProjectDeps.projects); | ||
let depDict = {}; | ||
if (subProject) { | ||
return getDepsSubProject(root, subProject, allProjectDeps); | ||
return { | ||
depTree: getDepsSubProject(root, subProject, allProjectDeps), | ||
allDepRootNames, | ||
}; | ||
} | ||
depDict = allProjectDeps.projects[allProjectDeps.defaultProject].depDict; | ||
return { | ||
dependencies: depDict, | ||
name: packageName, | ||
// TODO: extract from project | ||
// https://snyksec.atlassian.net/browse/BST-558 | ||
version: '0.0.0', | ||
packageFormatVersion, | ||
depTree: { | ||
dependencies: depDict, | ||
name: packageName, | ||
// TODO: extract from project | ||
// https://snyksec.atlassian.net/browse/BST-558 | ||
version: '0.0.0', | ||
packageFormatVersion, | ||
}, | ||
allDepRootNames, | ||
}; | ||
@@ -85,0 +97,0 @@ }); |
@@ -43,3 +43,3 @@ { | ||
}, | ||
"version": "2.6.1" | ||
"version": "2.7.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32429
396