snyk 1.929.0 → 1.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/756.index.js
CHANGED
|
@@ -172594,8 +172594,14 @@ function extractJsonFromScriptOutput(stdoutText) {
|
|
|
172594
172594
|
lines.forEach((l) => {
|
|
172595
172595
|
if (/^JSONDEPS /.test(l)) {
|
|
172596
172596
|
if (jsonLine !== null) {
|
|
172597
|
-
|
|
172598
|
-
|
|
172597
|
+
debugLog('More than one line with "JSONDEPS " prefix was returned;');
|
|
172598
|
+
debugLog('First line: ' + jsonLine);
|
|
172599
|
+
debugLog('Current line:' + l.substr(9));
|
|
172600
|
+
// TODO (@tardis): the init.gradle should protect against this using 'snykDepsConfExecuted' flag
|
|
172601
|
+
// the longer term fix here is to make multiple snyk graph outputs impossible by interacting with
|
|
172602
|
+
// Gradle API in a more consistent way.
|
|
172603
|
+
// For now, assume the first JSONDEPS found was correct
|
|
172604
|
+
return;
|
|
172599
172605
|
}
|
|
172600
172606
|
jsonLine = l.substr(9);
|
|
172601
172607
|
}
|