Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snyk-go-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snyk-go-parser - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

10

dist/parsers/gomod-graph-parser.js

@@ -14,6 +14,10 @@ "use strict";

function parseGoModGraph(goModGraphOutput, projectName, projectVersion = types_1.DEFAULT_INITIAL_VERSION) {
const iterationReadyGraph = goModGraphOutput.trim().split('\n');
const moduleName = iterationReadyGraph[0].split(/\s/)[0];
var _a;
const iterationReadyGraph = goModGraphOutput
.trim()
.split('\n')
.filter(Boolean);
const moduleName = (_a = iterationReadyGraph[0]) === null || _a === void 0 ? void 0 : _a.split(/\s/)[0];
const rootPkgInfo = {
name: projectName || moduleName,
name: projectName || moduleName || 'empty',
version: projectVersion,

@@ -20,0 +24,0 @@ };

@@ -50,3 +50,3 @@ {

},
"version": "1.5.3"
"version": "1.5.4"
}

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