@coana-tech/cli 14.12.162 → 14.12.164

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/cli.mjs CHANGED
@@ -236382,8 +236382,20 @@ function toSocketFactsSocketDependencyTree(artifacts, vulnerabilities, tier1Reac
236382
236382
  });
236383
236383
  }
236384
236384
  }
236385
+ const componentsWithoutPatterns = artifacts.map((artifact) => {
236386
+ if (!artifact.vulnerabilities) {
236387
+ return { ...artifact };
236388
+ }
236389
+ return {
236390
+ ...artifact,
236391
+ vulnerabilities: artifact.vulnerabilities.map((vuln) => {
236392
+ const { reachabilityData, ...vulnWithoutReachabilityData } = vuln;
236393
+ return vulnWithoutReachabilityData;
236394
+ })
236395
+ };
236396
+ });
236385
236397
  return {
236386
- components: artifacts,
236398
+ components: componentsWithoutPatterns,
236387
236399
  tier1ReachabilityScanId,
236388
236400
  workspaceDiagnostics
236389
236401
  };
@@ -251277,7 +251289,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251277
251289
  }
251278
251290
 
251279
251291
  // dist/version.js
251280
- var version3 = "14.12.162";
251292
+ var version3 = "14.12.164";
251281
251293
 
251282
251294
  // dist/cli-core.js
251283
251295
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.162",
3
+ "version": "14.12.164",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -110982,6 +110982,7 @@ async function runJellyAnalysis(mainProjectRoot, projectRoot, jellyOptions, reac
110982
110982
  await writeFile7(vulnerabilitiesFile, JSON.stringify(vulnerabilitiesInJellyFormat));
110983
110983
  const useLazy = experiment === "LAZY_EXPERIMENT" || reachabilityAnalysisOptions.lazy;
110984
110984
  const { includePackages } = jellyOptions;
110985
+ const additionalFlags = process.env.JELLY_ADDITIONAL_FLAGS?.split(/\s+/).filter(Boolean) ?? [];
110985
110986
  const jellyCmd = cmdt`
110986
110987
  ${await getNodeExecutable(ToolPathResolver.nodeExecutablePath)} --max-old-space-size=${reachabilityAnalysisOptions.memoryLimitInMB ?? 8192}
110987
110988
  ${jellyExecutable}
@@ -110997,6 +110998,7 @@ async function runJellyAnalysis(mainProjectRoot, projectRoot, jellyOptions, reac
110997
110998
  ${jellyOptions.approx && "--approx"}
110998
110999
  ${logFile ? ["--logfile", logFile] : []}
110999
111000
  --callstacks-json ${callStackFile}
111001
+ ${additionalFlags}
111000
111002
  ${filesToAnalyze}
111001
111003
  `;
111002
111004
  if (PRINT_JELLY_COMMAND)