snyk-nuget-plugin
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -10,2 +10,3 @@ var fs = require('fs'); | ||
var projectJsonFormatParser = require('./formats/dotnet-core-parser'); | ||
var determineDotnetVersion = require('./proj-parser'); | ||
@@ -40,2 +41,3 @@ function determineManifestType (filename) { | ||
var fileContent; | ||
var dotnetVersion; | ||
var fileContentPath = path.resolve(root || '.', targetFile || '.'); | ||
@@ -50,4 +52,12 @@ var projectRootFolder = path.resolve(fileContentPath, '../../'); | ||
manifestType = determineManifestType(path.basename(targetFile || root)); | ||
if (manifestType === 'dotnet-core') { | ||
dotnetVersion = determineDotnetVersion(projectRootFolder); | ||
} else { | ||
// .csproj is in the same directory as packages.config or project.json | ||
dotnetVersion = determineDotnetVersion( | ||
path.resolve(fileContentPath, '../')); | ||
} | ||
fileContent = fs.readFileSync(fileContentPath).toString(); | ||
debug('Loaded ' + targetFile + ' with manifest type ' + manifestType); | ||
debug('Loaded ' + targetFile + ' with manifest type ' | ||
+ manifestType + ' for .NET version ' + dotnetVersion); | ||
} | ||
@@ -54,0 +64,0 @@ catch (error) { |
@@ -1,1 +0,1 @@ | ||
{"name":"snyk-nuget-plugin","description":"![logo](https://res.cloudinary.com/snyk/image/upload/v1468845259/logo/snyk-dog.svg) ## Snyk: NuGet Plugin ***","main":"lib/index.js","scripts":{"lint":"jscs `find ./lib -name '*.js'` -v && jscs `find ./test -name '*.js'` -v","test":"npm run unit-test","test-windows":"tap -R spec test/*.test.js --timeout=120","unit-test":"tap `ls ./test/*.test.js` -R=spec","dev":"nodemon -x 'npm run unit-test'","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"https://github.com/snyk/snyk-nuget-plugin.git"},"keywords":["snyk","nuget"],"author":"snyk.io","license":"Apache-2.0","bugs":{"url":"https://github.com/snyk/snyk-nuget-plugin/issues"},"homepage":"https://github.com/snyk/snyk-nuget-plugin#readme","dependencies":{"debug":"^3.1.0","es6-promise":"^4.1.1","xml2js":"^0.4.17","zip":"^1.2.0"},"devDependencies":{"jscs":"^3.0.7","nodemon":"^1.12.1","semantic-release":"^8.2.0","tap":"^10.7.0","tap-only":"0.0.5"},"version":"1.4.0"} | ||
{"name":"snyk-nuget-plugin","description":"![logo](https://res.cloudinary.com/snyk/image/upload/v1468845259/logo/snyk-dog.svg) ## Snyk: NuGet Plugin ***","main":"lib/index.js","scripts":{"lint":"jscs `find ./lib -name '*.js'` -v && jscs `find ./test -name '*.js'` -v","test":"npm run unit-test","test-windows":"tap -R spec test/*.test.js --timeout=120","unit-test":"tap `ls ./test/*.test.js` -R=spec","dev":"nodemon -x 'npm run unit-test'","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"https://github.com/snyk/snyk-nuget-plugin.git"},"keywords":["snyk","nuget"],"author":"snyk.io","license":"Apache-2.0","bugs":{"url":"https://github.com/snyk/snyk-nuget-plugin/issues"},"homepage":"https://github.com/snyk/snyk-nuget-plugin#readme","dependencies":{"debug":"^3.1.0","es6-promise":"^4.1.1","xml2js":"^0.4.17","zip":"^1.2.0","lodash":"^4.17.10"},"devDependencies":{"jscs":"^3.0.7","nodemon":"^1.12.1","semantic-release":"^8.2.0","tap":"^10.7.0","tap-only":"0.0.5"},"version":"1.5.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
22192
12
553
5
4
+ Addedlodash@^4.17.10
+ Addedlodash@4.17.21(transitive)