@coana-tech/cli 14.12.53 → 14.12.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.53",
3
+ "version": "14.12.55",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -76766,23 +76766,16 @@ function affectedJSPackagesToPurl(packages) {
76766
76766
  });
76767
76767
  }
76768
76768
  function getMavenPurl(groupId, artifactId, type, classifier, version3) {
76769
- const purl = {
76769
+ return {
76770
76770
  type: "maven" /* MAVEN */,
76771
76771
  namespace: groupId,
76772
76772
  name: artifactId,
76773
- version: version3
76773
+ version: version3,
76774
+ qualifiers: {
76775
+ ...type !== void 0 ? { ext: type } : {},
76776
+ ...classifier !== void 0 ? { classifier } : {}
76777
+ }
76774
76778
  };
76775
- const qualifiers = {};
76776
- if (type && type !== "jar") {
76777
- qualifiers.type = type;
76778
- }
76779
- if (classifier) {
76780
- qualifiers.classifier = classifier;
76781
- }
76782
- if (Object.keys(qualifiers).length > 0) {
76783
- purl.qualifiers = qualifiers;
76784
- }
76785
- return purl;
76786
76779
  }
76787
76780
  function getNugetPurl(name2, version3) {
76788
76781
  return {
@@ -98575,7 +98568,7 @@ var JavaCodeAwareVulnerabilityScanner = class _JavaCodeAwareVulnerabilityScanner
98575
98568
  }
98576
98569
  static computeDetectedOccurrences(depIdToPurl, vulnerablePaths, vulnerableClasses) {
98577
98570
  function prettyPrintMavenPurl(pkg) {
98578
- return [pkg.namespace, pkg.name, pkg.qualifiers?.type, pkg.qualifiers?.classifier, pkg.version].filter((s2) => s2 !== void 0).join(":");
98571
+ return [pkg.namespace, pkg.name, pkg.qualifiers?.ext, pkg.qualifiers?.classifier, pkg.version].filter((s2) => s2 !== void 0).join(":");
98579
98572
  }
98580
98573
  const affectedPackages = /* @__PURE__ */ new Set();
98581
98574
  const classStacks = [];
@@ -98709,9 +98702,9 @@ async function convertSocketArtifacts2(rootDir, artifacts, tmpDir) {
98709
98702
  ...artifact.toplevelAncestors?.flatMap((ancestorId) => artifacts.find((a2) => a2.id === ancestorId)?.manifestFiles?.map((m) => m.file) ?? []) ?? []
98710
98703
  ]);
98711
98704
  const pomFile = manifestFilesForArtifact.find((manifestFile) => pomMatcher(basename5(manifestFile)));
98712
- const artifactFile = artifact.namespace && artifact.version ? await resolveArtifact(artifact.namespace, artifact.name, artifact.qualifiers?.type, artifact.qualifiers?.classifier, artifact.version, pomFile) : void 0;
98705
+ const artifactFile = artifact.namespace && artifact.version ? await resolveArtifact(artifact.namespace, artifact.name, artifact.qualifiers?.ext, artifact.qualifiers?.classifier, artifact.version, pomFile) : void 0;
98713
98706
  const uuid = randomUUID2();
98714
- depIdToPurl.set(uuid, getMavenPurl(artifact.namespace ?? "", artifact.name, artifact.qualifiers?.type, artifact.qualifiers?.classifier, artifact.version));
98707
+ depIdToPurl.set(uuid, getMavenPurl(artifact.namespace ?? "", artifact.name, artifact.qualifiers?.ext, artifact.qualifiers?.classifier, artifact.version));
98715
98708
  deps[uuid] = {
98716
98709
  ecosystemSpecificPackageInfo: {
98717
98710
  type: "JVM"