Socket
Socket
Sign inDemoInstall

snyk-nuget-plugin

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-nuget-plugin - npm Package Compare versions

Comparing version 1.7.2 to 1.8.0

3

lib/dotnet-parser.js

@@ -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 @@ };

9

lib/proj-parser.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc