snyk-go-parser
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -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
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
64321
322