@coana-tech/cli 14.12.116 → 14.12.117

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
@@ -30394,12 +30394,12 @@ var require_lodash = __commonJS({
30394
30394
  return result2;
30395
30395
  });
30396
30396
  function omitBy(object, predicate) {
30397
- return pickBy2(object, negate(getIteratee(predicate)));
30397
+ return pickBy3(object, negate(getIteratee(predicate)));
30398
30398
  }
30399
- var pick2 = flatRest(function(object, paths) {
30399
+ var pick = flatRest(function(object, paths) {
30400
30400
  return object == null ? {} : basePick(object, paths);
30401
30401
  });
30402
- function pickBy2(object, predicate) {
30402
+ function pickBy3(object, predicate) {
30403
30403
  if (object == null) {
30404
30404
  return {};
30405
30405
  }
@@ -31074,8 +31074,8 @@ var require_lodash = __commonJS({
31074
31074
  lodash16.partial = partial;
31075
31075
  lodash16.partialRight = partialRight;
31076
31076
  lodash16.partition = partition2;
31077
- lodash16.pick = pick2;
31078
- lodash16.pickBy = pickBy2;
31077
+ lodash16.pick = pick;
31078
+ lodash16.pickBy = pickBy3;
31079
31079
  lodash16.property = property;
31080
31080
  lodash16.propertyOf = propertyOf;
31081
31081
  lodash16.pull = pull;
@@ -68492,7 +68492,7 @@ var require_omit = __commonJS({
68492
68492
  var require_pickBy = __commonJS({
68493
68493
  "../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/pickBy.js"(exports2, module2) {
68494
68494
  var _curry2 = require_curry2();
68495
- var pickBy2 = /* @__PURE__ */ _curry2(function pickBy3(test2, obj) {
68495
+ var pickBy3 = /* @__PURE__ */ _curry2(function pickBy4(test2, obj) {
68496
68496
  var result = {};
68497
68497
  for (var prop2 in obj) {
68498
68498
  if (test2(obj[prop2], prop2, obj)) {
@@ -68501,7 +68501,7 @@ var require_pickBy = __commonJS({
68501
68501
  }
68502
68502
  return result;
68503
68503
  });
68504
- module2.exports = pickBy2;
68504
+ module2.exports = pickBy3;
68505
68505
  }
68506
68506
  });
68507
68507
 
@@ -68509,7 +68509,7 @@ var require_pickBy = __commonJS({
68509
68509
  var require_pick = __commonJS({
68510
68510
  "../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/pick.js"(exports2, module2) {
68511
68511
  var _curry2 = require_curry2();
68512
- var pick2 = /* @__PURE__ */ _curry2(function pick3(names, obj) {
68512
+ var pick = /* @__PURE__ */ _curry2(function pick2(names, obj) {
68513
68513
  var result = {};
68514
68514
  var idx = 0;
68515
68515
  while (idx < names.length) {
@@ -68520,7 +68520,7 @@ var require_pick = __commonJS({
68520
68520
  }
68521
68521
  return result;
68522
68522
  });
68523
- module2.exports = pick2;
68523
+ module2.exports = pick;
68524
68524
  }
68525
68525
  });
68526
68526
 
@@ -250944,10 +250944,10 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
250944
250944
  }
250945
250945
 
250946
250946
  // dist/version.js
250947
- var version3 = "14.12.116";
250947
+ var version3 = "14.12.117";
250948
250948
 
250949
250949
  // dist/cli-core.js
250950
- var { mapValues, omit, partition, pick } = import_lodash15.default;
250950
+ var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
250951
250951
  var bucketedAnalysisTimeoutInSeconds = 60;
250952
250952
  var SEVERITY_ORDER = {
250953
250953
  INFO: 0,
@@ -251192,7 +251192,8 @@ var CliCore = class {
251192
251192
  vulnsWithResults.push(...Object.values(vulnerabilities).flat());
251193
251193
  for (const [workspacePath, workspaceDiagnostics] of Object.entries(diagnostics)) {
251194
251194
  allWorkspaceDiagnostics.push({
251195
- subprojectPath: relative20(this.rootWorkingDirectory, workspacePath) || ".",
251195
+ // the workspace path is the subproject path in socket mode
251196
+ subprojectPath: workspacePath ?? ".",
251196
251197
  workspacePath: ".",
251197
251198
  purl_type: getPurlType(ecosystem),
251198
251199
  diagnostics: workspaceDiagnostics
@@ -251425,18 +251426,19 @@ Subproject: ${subproject}`);
251425
251426
  this.verifyOptions();
251426
251427
  if (!this.options.excludeDirs)
251427
251428
  this.options.excludeDirs = await inferExcludeDirsFromConfigurationFiles(this.rootWorkingDirectory);
251428
- logger.debug("running in debug mode");
251429
- logger.info("using options", JSON.stringify(pick(this.options, [
251430
- "debug",
251431
- "silent",
251432
- "memoryLimit",
251433
- "timeout",
251434
- "analysisTimeout",
251435
- "concurrency",
251436
- "excludeDirs",
251437
- "useUnreachableFromPrecomputation",
251438
- "minSeverity"
251439
- ]), null, 2));
251429
+ logger.info("using options", JSON.stringify(pickBy2(this.options, (value2, key) => {
251430
+ return [
251431
+ "debug",
251432
+ "silent",
251433
+ "memoryLimit",
251434
+ "analysisTimeout",
251435
+ "concurrency",
251436
+ "excludeDirs",
251437
+ "includeDirs",
251438
+ "purlTypes",
251439
+ "minSeverity"
251440
+ ].includes(key) && value2 !== void 0 && value2 !== false;
251441
+ }), null, 2));
251440
251442
  logger.info("available memory: %i MiB", os.freemem() / (1024 * 1024));
251441
251443
  try {
251442
251444
  const limits = await Promise.all([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.116",
3
+ "version": "14.12.117",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {