@coana-tech/cli 14.12.5 → 14.12.6

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
@@ -210347,6 +210347,12 @@ async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash)
210347
210347
  try {
210348
210348
  const { artifacts } = await fetchArtifactsFromManifestsTarHash(manifestsTarHash);
210349
210349
  const properPythonProjects = [];
210350
+ const pipArtifactToRepresentativeManifest = {};
210351
+ for (const artifact of artifacts) {
210352
+ if (artifact.type === "pypi" && artifact.manifestFiles) {
210353
+ pipArtifactToRepresentativeManifest[simplePurl(artifact.type, artifact.namespace ?? "", artifact.name, artifact.version ?? "")] = artifact;
210354
+ }
210355
+ }
210350
210356
  const venvExcludes = [
210351
210357
  "venv",
210352
210358
  ".venv",
@@ -210398,6 +210404,13 @@ async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash)
210398
210404
  manifestFiles.push(...(await getFilesRelative(rootWorkingDirectory)).filter((file) => (0, import_picomatch2.default)("{*.csproj,packages.lock.json}")(basename7(file))));
210399
210405
  break;
210400
210406
  }
210407
+ case "PIP": {
210408
+ const sPurl = simplePurl(artifact.type, artifact.namespace ?? "", artifact.name, artifact.version ?? "");
210409
+ if (pipArtifactToRepresentativeManifest[sPurl]) {
210410
+ manifestFiles.push(...(pipArtifactToRepresentativeManifest[sPurl].manifestFiles ?? []).map((ref) => ref.file));
210411
+ }
210412
+ break;
210413
+ }
210401
210414
  default: {
210402
210415
  artifact.manifestFiles?.forEach((ref) => manifestFiles.push(ref.file));
210403
210416
  const allAncestorIds = getAllToplevelAncestors(artifactMap, artifact.id);
@@ -225589,7 +225602,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
225589
225602
  }
225590
225603
 
225591
225604
  // dist/version.js
225592
- var version2 = "14.12.5";
225605
+ var version2 = "14.12.6";
225593
225606
 
225594
225607
  // dist/cli-core.js
225595
225608
  var { mapValues, omit, partition, pick } = import_lodash15.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coana-tech/cli",
3
- "version": "14.12.5",
3
+ "version": "14.12.6",
4
4
  "description": "Coana CLI",
5
5
  "type": "module",
6
6
  "bin": {