@coana-tech/cli 14.12.214 → 14.12.215

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
@@ -251742,7 +251742,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
251742
251742
  }
251743
251743
 
251744
251744
  // dist/version.js
251745
- var version3 = "14.12.214";
251745
+ var version3 = "14.12.215";
251746
251746
 
251747
251747
  // dist/cli-core.js
251748
251748
  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.214",
3
+ "version": "14.12.215",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -111919,12 +111919,14 @@ var SparJSAnalysisEngine = class extends JSAnalysisEngine {
111919
111919
  for (const match2 of Object.values(matches))
111920
111920
  match2.affectedPackages = uniq5(match2.stacks.flatMap((stack) => map3(stack, "package")));
111921
111921
  const affectedPackages = JSON.parse(await readFile11(affectedPackagesFile, "utf-8")).packages;
111922
+ const aborted = analysisDiagnostics.solver.aborted;
111922
111923
  return {
111923
111924
  matches,
111924
111925
  analysisDiagnostics: {
111925
111926
  ...analysisDiagnostics,
111926
- aborted: analysisDiagnostics.solver.aborted,
111927
- timeout: analysisDiagnostics.totalTime / 1e6 >= timeoutInSeconds,
111927
+ aborted: !!aborted,
111928
+ timeout: aborted === "timeout",
111929
+ lowmemory: aborted === "out_of_memory",
111928
111930
  timings: {
111929
111931
  analysisTime: (analysisDiagnostics.totalTime - analysisDiagnostics.patternMatchingTime) / 1e3,
111930
111932
  patternMatchingTime: analysisDiagnostics.patternMatchingTime / 1e3,
@@ -112049,7 +112051,7 @@ var JSCodeAwareVulnerabilityScanner = class _JSCodeAwareVulnerabilityScanner {
112049
112051
  analysisOptionsFromHeuristic.approx = process.env.JELLY_APPROX === "true" || experiment === "JELLY_APPROX";
112050
112052
  const analysisRes = await this.resolveEngine(experiment).runAnalysis(this.mainProjectDir, this.projectDir, analysisOptionsFromHeuristic, this.options, timeoutInSeconds, vulnerabilities, experiment, telemetryHandler, analyzerTelemetryHandler);
112051
112053
  const { analysisDiagnostics: diagnostics, matches } = analysisRes;
112052
- const terminatedEarly = diagnostics.lowmemory ?? diagnostics.rangeError ?? (diagnostics.aborted || diagnostics.timeout);
112054
+ const terminatedEarly = diagnostics.rangeError ?? (diagnostics.aborted || diagnostics.timeout || diagnostics.lowmemory);
112053
112055
  return {
112054
112056
  type: "success",
112055
112057
  diagnostics,