snyk 1.790.0 → 1.791.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.
@@ -2736,7 +2736,13 @@ function extractDataToSendFromResults(results, jsonData, options) {
2736
2736
  }
2737
2737
  let stringifiedJsonData = '';
2738
2738
  if (options.json || options['json-file-output']) {
2739
- stringifiedJsonData = json_1.jsonStringifyLargeObject(formatJsonOutput(jsonData, options));
2739
+ if (Array.isArray(jsonData) && options['app-vulns']) {
2740
+ const jsonResult = jsonData.map((res) => formatJsonOutput(res, options));
2741
+ stringifiedJsonData = json_1.jsonStringifyLargeObject(jsonResult);
2742
+ }
2743
+ else {
2744
+ stringifiedJsonData = json_1.jsonStringifyLargeObject(formatJsonOutput(jsonData, options));
2745
+ }
2740
2746
  }
2741
2747
  const dataToSend = options.sarif ? sarifData : jsonData;
2742
2748
  const stringifiedData = options.sarif