Socket
Socket
Sign inDemoInstall

snyk-mvn-plugin

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-mvn-plugin - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

21

lib/parse-mvn.js

@@ -80,5 +80,7 @@ module.exports = parseTree;

var range = getConstraint(pkgStr);
if (range) {
pkgStr = pkgStr.substring(0, pkgStr.indexOf(' '));
}
var parts = pkgStr.split(':');

@@ -93,15 +95,22 @@ var result = {

};
var selfPkg = parts[0] + ':' + parts[1] + '@' + parts[3];
result.from = parent ?
parent.from.concat(selfPkg) :
[selfPkg];
if (parts.length === 5) {
result.scope = parts[4];
if (parts.length >= 5) {
result.scope = parts[parts.length - 1];
result.version = parts[parts.length - 2];
}
if (range) {
result.dep = range;
}
var selfPkg = result.groupId + ':' + result.artifactId + '@' + result.version;
result.from = parent ?
parent.from.concat(selfPkg) :
[selfPkg];
return result;
}
function dequote(str) {

@@ -108,0 +117,0 @@ return str.slice(str.indexOf('"') + 1, str.lastIndexOf('"'));

@@ -25,3 +25,3 @@ {

},
"version": "1.1.0"
"version": "1.1.1"
}
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