@coana-tech/cli 13.19.24 → 13.19.26

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 +10 -7
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -95772,7 +95772,7 @@ var init_other_modules_communicator = __esm({
95772
95772
  subprojectPath,
95773
95773
  [...args2, "-o", outputFilePath],
95774
95774
  extraDockerArgs,
95775
- env
95775
+ { ...env ?? process.env, COANA_REPORT_ID: this.options.reportId, COANA_API_KEY: this.options.apiKey }
95776
95776
  );
95777
95777
  return JSON.parse(await (0, import_promises11.readFile)(outputFilePath, "utf-8")).result;
95778
95778
  }
@@ -95888,7 +95888,7 @@ var init_other_modules_communicator = __esm({
95888
95888
  workspacePaths
95889
95889
  );
95890
95890
  }
95891
- async runReachabilityAnalysis(subprojectPath, workspacePath, workspaceData, vulnerabilities, reachabilityAnalysisOptions, otherAnalysisOptions, reportId, apiKey) {
95891
+ async runReachabilityAnalysis(subprojectPath, workspacePath, workspaceData, vulnerabilities, reachabilityAnalysisOptions, otherAnalysisOptions) {
95892
95892
  const tmpDir = await this.getTmpDirForSubproject(subprojectPath);
95893
95893
  const inputFile = (0, import_path20.join)(tmpDir, "input.json");
95894
95894
  await (0, import_promises11.writeFile)(
@@ -95906,7 +95906,7 @@ var init_other_modules_communicator = __esm({
95906
95906
  subprojectPath,
95907
95907
  workspacePath,
95908
95908
  argt`-i ${inputFile}`,
95909
- { ...process.env, COANA_REPORT_ID: reportId, COANA_API_KEY: apiKey }
95909
+ { ...process.env, COANA_REPORT_ID: this.options.reportId, COANA_API_KEY: this.options.apiKey }
95910
95910
  );
95911
95911
  }
95912
95912
  };
@@ -123669,7 +123669,8 @@ var init_dashboard_integration = __esm({
123669
123669
  errorSubmitEndpoint = process.env.COANA_CLI_ERROR_SUBMIT_ENDPOINT ?? "https://app.coana.tech/api/v1/cli/error";
123670
123670
  axiosClient = axios_default.create();
123671
123671
  esm_default(axiosClient, {
123672
- retries: 3,
123672
+ retries: 7,
123673
+ // The delay before the second retry is 1 second and before the third retry it is 2 seconds.
123673
123674
  // eslint-disable-next-line @typescript-eslint/unbound-method
123674
123675
  retryDelay: esm_default.exponentialDelay,
123675
123676
  onRetry(retryCount, error, requestConfig) {
@@ -190235,7 +190236,7 @@ var require_version = __commonJS({
190235
190236
  "use strict";
190236
190237
  Object.defineProperty(exports2, "__esModule", { value: true });
190237
190238
  exports2.version = void 0;
190238
- exports2.version = "13.19.24";
190239
+ exports2.version = "13.19.26";
190239
190240
  }
190240
190241
  });
190241
190242
 
@@ -190395,7 +190396,9 @@ var require_cli_core = __commonJS({
190395
190396
  runWithoutDocker: this.options.runWithoutDocker,
190396
190397
  debug: this.options.debug,
190397
190398
  silent: this.options.silent,
190398
- coanaLogPath: this.coanaLogPath
190399
+ coanaLogPath: this.coanaLogPath,
190400
+ reportId: this.reportId,
190401
+ apiKey: this.options.apiKey
190399
190402
  });
190400
190403
  const startTime = (/* @__PURE__ */ new Date()).toISOString();
190401
190404
  this.sendProgress("CREATE_PROJECT_MANAGER", true);
@@ -190647,7 +190650,7 @@ var require_cli_core = __commonJS({
190647
190650
  }, {
190648
190651
  disableBucketing: !!this.options.disableAnalysisSplitting,
190649
190652
  lightweightReachability: this.options.lightweightReachability
190650
- }, this.reportId, this.options.apiKey);
190653
+ });
190651
190654
  this.sendProgress("REACHABILITY_ANALYSIS", false, subprojectPath, workspacePath);
190652
190655
  return res;
190653
190656
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "13.19.24",
3
+ "version": "13.19.26",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"