@coana-tech/cli 14.0.19 → 14.0.20

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.
Files changed (2) hide show
  1. package/cli.js +9 -4
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -193990,7 +193990,7 @@ var require_version = __commonJS({
193990
193990
  "use strict";
193991
193991
  Object.defineProperty(exports2, "__esModule", { value: true });
193992
193992
  exports2.version = void 0;
193993
- exports2.version = "14.0.19";
193993
+ exports2.version = "14.0.20";
193994
193994
  }
193995
193995
  });
193996
193996
 
@@ -194407,8 +194407,13 @@ var require_cli_core = __commonJS({
194407
194407
  }
194408
194408
  }
194409
194409
  async runReachabilityAnalysis(otherModulesCommunicator, subprojectPath, workspacePath, workspaceData, vulnerabilities) {
194410
+ const [vulnsWithActualAPIPatterns, result] = (0, lodash_1.partition)(vulnerabilities, (v) => Array.isArray(v.vulnerabilityAccessPaths));
194411
+ for (const v of result)
194412
+ v.results = typeof v.vulnerabilityAccessPaths === "string" ? { type: "noAnalysisCheck", message: v.vulnerabilityAccessPaths } : { type: "missingVulnerabilityPattern" };
194413
+ if (!vulnsWithActualAPIPatterns.length)
194414
+ return result;
194410
194415
  this.sendProgress("REACHABILITY_ANALYSIS", true, subprojectPath, workspacePath);
194411
- const res = await otherModulesCommunicator.runReachabilityAnalysis(subprojectPath, workspacePath, workspaceData, vulnerabilities, {
194416
+ result.push(...await otherModulesCommunicator.runReachabilityAnalysis(subprojectPath, workspacePath, workspaceData, vulnerabilities, {
194412
194417
  timeoutInSeconds: this.analysisTimeoutInSeconds,
194413
194418
  memoryLimitInMB: this.analysisMemoryLimitInMb,
194414
194419
  printLogFile: this.options.printAnalysisLogFile,
@@ -194418,9 +194423,9 @@ var require_cli_core = __commonJS({
194418
194423
  }, {
194419
194424
  disableBucketing: !!this.options.disableAnalysisSplitting,
194420
194425
  lightweightReachability: this.options.lightweightReachability
194421
- });
194426
+ }));
194422
194427
  this.sendProgress("REACHABILITY_ANALYSIS", false, subprojectPath, workspacePath);
194423
- return res;
194428
+ return result;
194424
194429
  }
194425
194430
  async sendProgress(type, isStartEvent, subprojectPath, workspacePath) {
194426
194431
  await (0, dashboard_integration_1.sendCLIProgressToDashboard)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.0.19",
3
+ "version": "14.0.20",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"