snyk-nuget-plugin
Advanced tools
Comparing version 1.7.2 to 1.8.0
@@ -67,2 +67,5 @@ var fs = require('fs'); | ||
dependencies: {}, | ||
meta: { | ||
targetFramework: dotnetVersions[0].original, //TODO implement for more than one TF | ||
}, | ||
}; | ||
@@ -69,0 +72,0 @@ |
@@ -37,2 +37,4 @@ var path = require('path'); | ||
var createPackageTree = function (depTree) { | ||
var targetFramework = depTree.meta ? depTree.meta.targetFramework : undefined; // TODO implement for paket and more than one framework | ||
delete depTree.meta; | ||
return { | ||
@@ -43,2 +45,3 @@ package: depTree, | ||
targetFile: targetFile, | ||
targetRuntime: targetFramework, | ||
}, | ||
@@ -45,0 +48,0 @@ }; |
@@ -34,3 +34,3 @@ const fs = require('fs'); | ||
} | ||
frameworks = _.compact(_.map(versions, toReadableVersion)); | ||
frameworks = _.compact(_.map(versions, toReadableFramework)); | ||
}); | ||
@@ -43,3 +43,3 @@ if (frameworks.length < 1) { | ||
function toReadableVersion(version) { | ||
function toReadableFramework(targetFramework) { | ||
const typeMapping = { | ||
@@ -53,6 +53,7 @@ v: '.NETFramework', | ||
for (var type in typeMapping) { | ||
if (new RegExp(type + /\d.?\d(.?\d)?$/.source).test(version)) { | ||
if (new RegExp(type + /\d.?\d(.?\d)?$/.source).test(targetFramework)) { | ||
return { | ||
framework: typeMapping[type], | ||
version: version.split(type)[1], | ||
version: targetFramework.split(type)[1], | ||
original: targetFramework, | ||
}; | ||
@@ -59,0 +60,0 @@ } |
@@ -37,3 +37,3 @@ { | ||
}, | ||
"version": "1.7.2" | ||
"version": "1.8.0" | ||
} |
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
33481
686