@coana-tech/cli 14.12.213 → 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.213";
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.213",
3
+ "version": "14.12.215",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -111873,6 +111873,7 @@ var SparJSAnalysisEngine = class extends JSAnalysisEngine {
111873
111873
  ${/* XXX: Requires Node 22+ */
111874
111874
  approx && "--approx"}
111875
111875
  --callstacks-json ${callStackFile}
111876
+ --escape-patch-resolved-reads
111876
111877
  --unresolved-non-vulnerable
111877
111878
  ${parseShellArgs(process.env.COANA_SPARJS_ADDITIONAL_FLAGS ?? "")}
111878
111879
  ${filesToAnalyze}
@@ -111918,12 +111919,14 @@ var SparJSAnalysisEngine = class extends JSAnalysisEngine {
111918
111919
  for (const match2 of Object.values(matches))
111919
111920
  match2.affectedPackages = uniq5(match2.stacks.flatMap((stack) => map3(stack, "package")));
111920
111921
  const affectedPackages = JSON.parse(await readFile11(affectedPackagesFile, "utf-8")).packages;
111922
+ const aborted = analysisDiagnostics.solver.aborted;
111921
111923
  return {
111922
111924
  matches,
111923
111925
  analysisDiagnostics: {
111924
111926
  ...analysisDiagnostics,
111925
- aborted: analysisDiagnostics.solver.aborted,
111926
- timeout: analysisDiagnostics.totalTime / 1e6 >= timeoutInSeconds,
111927
+ aborted: !!aborted,
111928
+ timeout: aborted === "timeout",
111929
+ lowmemory: aborted === "out_of_memory",
111927
111930
  timings: {
111928
111931
  analysisTime: (analysisDiagnostics.totalTime - analysisDiagnostics.patternMatchingTime) / 1e3,
111929
111932
  patternMatchingTime: analysisDiagnostics.patternMatchingTime / 1e3,
@@ -112048,7 +112051,7 @@ var JSCodeAwareVulnerabilityScanner = class _JSCodeAwareVulnerabilityScanner {
112048
112051
  analysisOptionsFromHeuristic.approx = process.env.JELLY_APPROX === "true" || experiment === "JELLY_APPROX";
112049
112052
  const analysisRes = await this.resolveEngine(experiment).runAnalysis(this.mainProjectDir, this.projectDir, analysisOptionsFromHeuristic, this.options, timeoutInSeconds, vulnerabilities, experiment, telemetryHandler, analyzerTelemetryHandler);
112050
112053
  const { analysisDiagnostics: diagnostics, matches } = analysisRes;
112051
- const terminatedEarly = diagnostics.lowmemory ?? diagnostics.rangeError ?? (diagnostics.aborted || diagnostics.timeout);
112054
+ const terminatedEarly = diagnostics.rangeError ?? (diagnostics.aborted || diagnostics.timeout || diagnostics.lowmemory);
112052
112055
  return {
112053
112056
  type: "success",
112054
112057
  diagnostics,