snyk-mvn-plugin
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -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" | ||
} |
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
7048
181