snyk-nuget-plugin
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -72,3 +72,5 @@ "use strict"; | ||
} | ||
const targetFrameworks = Object.keys(projectAssets.project.frameworks); | ||
// Scan all 'frameworks' detected in the project.assets.json file, and use the targetAlias if detected and | ||
// otherwise the raw key name, as it's not guaranteed that all framework objects contains a targetAlias. | ||
const targetFrameworks = Object.entries(projectAssets.project.frameworks).map(([key, value]) => ('targetAlias' in value ? value.targetAlias : key)); | ||
if (targetFrameworks.length <= 0) { | ||
@@ -75,0 +77,0 @@ throw new errors_1.FileNotProcessableError(`unable to detect a target framework in ${projectRootFolder}, a valid one is needed to continue down this path.`); |
@@ -61,3 +61,3 @@ { | ||
}, | ||
"version": "2.3.0" | ||
"version": "2.3.1" | ||
} |
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
132979
1811