Socket
Socket
Sign inDemoInstall

snyk-sbt-plugin

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-sbt-plugin - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

8

dist/index.js

@@ -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

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