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.3.6 to 1.3.7

lib/formats/dotnet-core-parser.js

34

lib/index.js

@@ -10,3 +10,3 @@ var fs = require('fs');

var debug = require('debug')('snyk');
var projectJsonFormatParser = require('./formats/dotnet-cli-parser');
var projectJsonFormatParser = require('./formats/dotnet-core-parser');

@@ -19,3 +19,3 @@ function determineManifestType (filename) {

case /project.assets.json$/.test(filename): {
return 'dotnet-cli';
return 'dotnet-core';
}

@@ -81,3 +81,3 @@ case /packages.config$/.test(filename): {

switch (manifestType) {
case 'dotnet-cli': {
case 'dotnet-core': {
debug('Trying to parse dot-net-cli manifest');

@@ -159,3 +159,3 @@ projectJsonFormatParser(fileContent, tree);

}).then(function scanInstalled(installedPackages) {
if (manifestType !== 'dotnet-cli') {
if (manifestType !== 'dotnet-core') {
debug('Located ' + installedPackages.length + ' packages in manifest');

@@ -214,17 +214,21 @@ function injectPath(dep) {

.then(function fetchNugetInformationFromPackages() {
// initiate collecting information from .nuget files on installed packages
debug('Trying to analyze .nuspec files');
var nuspecParserChain = [];
for (var name in flattendPackageList) {
var dep = flattendPackageList[name];
debug('...' + name);
nuspecParserChain.push(parseNuspec(dep));
if (manifestType !== 'dotnet-core') {
// begin collecting information from .nuget files on installed packages
debug('Trying to analyze .nuspec files');
for (var name in flattendPackageList) {
var dep = flattendPackageList[name];
debug('...' + name);
nuspecParserChain.push(parseNuspec(dep));
}
}
return Promise.all(nuspecParserChain);
}).then(function processNugetInformation(nuspecResolutionChain) {
nuspecResolutionChain.forEach(function (resolution) {
if (!resolution) return; // jscs:ignore
debug('.nuspec analyzed for ' + resolution.name);
nuspecResolutions[resolution.name] = resolution;
});
if (manifestType !== 'dotnet-core') {
nuspecResolutionChain.forEach(function (resolution) {
if (!resolution) return; // jscs:ignore
debug('.nuspec analyzed for ' + resolution.name);
nuspecResolutions[resolution.name] = resolution;
});
}
}).then(function buildDependencyTree() {

@@ -231,0 +235,0 @@ // .nuget parsing is complete, returned as array of promise resolutions

@@ -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.3.6"}
{"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.3.7"}
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