snyk-sbt-plugin
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -115,2 +115,4 @@ "use strict"; | ||
const sbtPluginPath = generateSbtPluginPath(sbtVersion); | ||
const packageName = path.basename(root); | ||
const packageVersion = '1.0.0'; | ||
try { | ||
@@ -137,3 +139,3 @@ // We could be running from a bundled CLI generated by `pkg`. | ||
}, | ||
package: parser.parseSbtPluginResults(stdout), | ||
package: parser.parseSbtPluginResults(stdout, packageName, packageVersion), | ||
}; | ||
@@ -151,4 +153,4 @@ } | ||
.split('\n') // split into lines | ||
.find((line) => line.startsWith('sbt.version=')) // locate version line | ||
.split('=')[1]; // return only the version | ||
.find((line) => !!line.match(/sbt\.version\s*=/)) // locate version line | ||
.split(/=\s*/)[1].trim(); // return only the version | ||
} | ||
@@ -155,0 +157,0 @@ // guess whether we have the couriser plugin by looking for sbt-coursier |
@@ -176,3 +176,3 @@ "use strict"; | ||
exports.parse = parse; | ||
function parseSbtPluginResults(sbtOutput) { | ||
function parseSbtPluginResults(sbtOutput, packageName, packageVersion) { | ||
// remove all other output | ||
@@ -188,4 +188,4 @@ const outputStart = 'Snyk Output Start'; | ||
const depTree = { | ||
name: '.', | ||
version: '1.0.0', | ||
name: packageName, | ||
version: packageVersion, | ||
dependencies: {}, | ||
@@ -192,0 +192,0 @@ }; |
@@ -44,3 +44,3 @@ { | ||
}, | ||
"version": "2.6.0" | ||
"version": "2.6.1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
51188
561