@coana-tech/cli 13.19.10 → 13.19.12

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 +40 -36
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -51664,9 +51664,9 @@ var require_individual = __commonJS({
51664
51664
  }
51665
51665
  });
51666
51666
 
51667
- // ../../node_modules/.pnpm/bole@5.0.15/node_modules/bole/format.js
51667
+ // ../../node_modules/.pnpm/bole@5.0.17/node_modules/bole/format.js
51668
51668
  var require_format2 = __commonJS({
51669
- "../../node_modules/.pnpm/bole@5.0.15/node_modules/bole/format.js"(exports2, module2) {
51669
+ "../../node_modules/.pnpm/bole@5.0.17/node_modules/bole/format.js"(exports2, module2) {
51670
51670
  var utilformat = require("util").format;
51671
51671
  function format3(a1, a22, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {
51672
51672
  if (a16 !== void 0) {
@@ -51720,9 +51720,9 @@ var require_format2 = __commonJS({
51720
51720
  }
51721
51721
  });
51722
51722
 
51723
- // ../../node_modules/.pnpm/bole@5.0.15/node_modules/bole/bole.js
51723
+ // ../../node_modules/.pnpm/bole@5.0.17/node_modules/bole/bole.js
51724
51724
  var require_bole = __commonJS({
51725
- "../../node_modules/.pnpm/bole@5.0.15/node_modules/bole/bole.js"(exports2, module2) {
51725
+ "../../node_modules/.pnpm/bole@5.0.17/node_modules/bole/bole.js"(exports2, module2) {
51726
51726
  "use strict";
51727
51727
  var _stringify = require_fast_safe_stringify();
51728
51728
  var individual = require_individual()("$$bole", { fastTime: false });
@@ -52782,9 +52782,9 @@ var require_path_key = __commonJS({
52782
52782
  }
52783
52783
  });
52784
52784
 
52785
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
52785
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
52786
52786
  var require_resolveCommand = __commonJS({
52787
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
52787
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
52788
52788
  "use strict";
52789
52789
  var path2 = require("path");
52790
52790
  var which = require_which2();
@@ -52824,9 +52824,9 @@ var require_resolveCommand = __commonJS({
52824
52824
  }
52825
52825
  });
52826
52826
 
52827
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
52827
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
52828
52828
  var require_escape = __commonJS({
52829
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
52829
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
52830
52830
  "use strict";
52831
52831
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
52832
52832
  function escapeCommand(arg) {
@@ -52835,8 +52835,8 @@ var require_escape = __commonJS({
52835
52835
  }
52836
52836
  function escapeArgument(arg, doubleEscapeMetaChars) {
52837
52837
  arg = `${arg}`;
52838
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
52839
- arg = arg.replace(/(\\*)$/, "$1$1");
52838
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
52839
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
52840
52840
  arg = `"${arg}"`;
52841
52841
  arg = arg.replace(metaCharsRegExp, "^$1");
52842
52842
  if (doubleEscapeMetaChars) {
@@ -52877,9 +52877,9 @@ var require_shebang_command = __commonJS({
52877
52877
  }
52878
52878
  });
52879
52879
 
52880
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
52880
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
52881
52881
  var require_readShebang = __commonJS({
52882
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
52882
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
52883
52883
  "use strict";
52884
52884
  var fs = require("fs");
52885
52885
  var shebangCommand = require_shebang_command();
@@ -52899,9 +52899,9 @@ var require_readShebang = __commonJS({
52899
52899
  }
52900
52900
  });
52901
52901
 
52902
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
52902
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
52903
52903
  var require_parse = __commonJS({
52904
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
52904
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
52905
52905
  "use strict";
52906
52906
  var path2 = require("path");
52907
52907
  var resolveCommand = require_resolveCommand();
@@ -52961,9 +52961,9 @@ var require_parse = __commonJS({
52961
52961
  }
52962
52962
  });
52963
52963
 
52964
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
52964
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
52965
52965
  var require_enoent = __commonJS({
52966
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
52966
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
52967
52967
  "use strict";
52968
52968
  var isWin = process.platform === "win32";
52969
52969
  function notFoundError(original, syscall) {
@@ -52982,7 +52982,7 @@ var require_enoent = __commonJS({
52982
52982
  const originalEmit = cp.emit;
52983
52983
  cp.emit = function(name, arg1) {
52984
52984
  if (name === "exit") {
52985
- const err = verifyENOENT(arg1, parsed, "spawn");
52985
+ const err = verifyENOENT(arg1, parsed);
52986
52986
  if (err) {
52987
52987
  return originalEmit.call(cp, "error", err);
52988
52988
  }
@@ -53011,9 +53011,9 @@ var require_enoent = __commonJS({
53011
53011
  }
53012
53012
  });
53013
53013
 
53014
- // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
53014
+ // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
53015
53015
  var require_cross_spawn = __commonJS({
53016
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
53016
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
53017
53017
  "use strict";
53018
53018
  var cp = require("child_process");
53019
53019
  var parse10 = require_parse();
@@ -190204,7 +190204,7 @@ var require_version = __commonJS({
190204
190204
  "use strict";
190205
190205
  Object.defineProperty(exports2, "__esModule", { value: true });
190206
190206
  exports2.version = void 0;
190207
- exports2.version = "13.19.10";
190207
+ exports2.version = "13.19.12";
190208
190208
  }
190209
190209
  });
190210
190210
 
@@ -190512,24 +190512,28 @@ var require_cli_core = __commonJS({
190512
190512
  });
190513
190513
  }
190514
190514
  for (const codeAwareScanSuccess of Object.values(workspaceToCodeAwareScanSuccess)) {
190515
- if (Array.isArray(codeAwareScanSuccess.detectedOccurrences)) {
190516
- codeAwareScanSuccess.detectedOccurrences = codeAwareScanSuccess.detectedOccurrences.filter((detectedOccurence) => {
190517
- detectedOccurence.affectedAppCodePoints = detectedOccurence.affectedAppCodePoints.filter((affectedAppCodePoint) => (0, vulnerable_paths_utils_1.isShortestPath)(trie, affectedAppCodePoint.map(serialize3)));
190515
+ const detectedOccurrences = codeAwareScanSuccess.detectedOccurrences;
190516
+ detectedOccurrences.stacks = detectedOccurrences.stacks.filter((stack2) => (0, vulnerable_paths_utils_1.isShortestPath)(trie, stack2.map(serialize3)));
190517
+ if (detectedOccurrences.stacks.length === 0)
190518
+ detectedOccurrences.affectedPackages = [];
190519
+ detectedOccurrences.affectedPackages = detectedOccurrences.affectedPackages.filter((affectedPackage) => {
190520
+ if (affectedPackage === vuln_chain_detail_utils_1.ROOT_NODE_STR || affectedPackage === "UNKNOWN")
190521
+ return true;
190522
+ const [packageName, version2] = affectedPackage.split("@");
190523
+ return detectedOccurrences.stacks.some((stack2) => stack2.some((stackElm) => {
190518
190524
  if (ecosystem2 === "MAVEN") {
190519
- detectedOccurence.affectedAppCodePoints = detectedOccurence.affectedAppCodePoints.map((path2) => {
190520
- if (path2.length < 2)
190521
- throw new Error("The path should always have length at least two.");
190522
- return {
190523
- appClass: path2[0].class,
190524
- reference: path2[1]
190525
- };
190526
- });
190525
+ const [groupId, artifactId, ...rest] = stackElm.package.split(":");
190526
+ const expectedPackageName = `${groupId}:${artifactId}`;
190527
+ const expectedVersion = rest[rest.length - 1];
190528
+ return expectedPackageName === packageName && expectedVersion === version2;
190527
190529
  }
190528
- return detectedOccurence.affectedAppCodePoints.length > 0;
190529
- });
190530
- } else {
190531
- codeAwareScanSuccess.detectedOccurrences.stacks = codeAwareScanSuccess.detectedOccurrences.stacks.filter((stack2) => (0, vulnerable_paths_utils_1.isShortestPath)(trie, stack2.map(serialize3)));
190532
- }
190530
+ if (ecosystem2 === "NUGET") {
190531
+ const [expectedPackageName, expectedVersion] = stackElm.package.split("/");
190532
+ return expectedPackageName === packageName && expectedVersion === version2;
190533
+ }
190534
+ return true;
190535
+ }));
190536
+ });
190533
190537
  }
190534
190538
  }
190535
190539
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "13.19.10",
3
+ "version": "13.19.12",
4
4
  "description": "Coana CLI",
5
5
  "bin": {
6
6
  "@coana-tech/cli": "./cli.js"