@coana-tech/cli 14.12.54 → 14.12.56
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 +6 -2
- package/package.json +1 -1
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
package/cli.mjs
CHANGED
|
@@ -219657,6 +219657,10 @@ async function computeFixesAndUpgradePurls(path2, options, logFile) {
|
|
|
219657
219657
|
return { type: "no-ghsas-fix-requested", ghsas: Object.keys(ghsaToVulnerableArtifactIds) };
|
|
219658
219658
|
}
|
|
219659
219659
|
const ghsaToVulnerableArtifactIdsToApply = options.applyFixesTo.includes("all") ? ghsaToVulnerableArtifactIds : Object.fromEntries(Object.entries(ghsaToVulnerableArtifactIds).filter(([ghsa]) => options.applyFixesTo.includes(ghsa)));
|
|
219660
|
+
if (Object.keys(ghsaToVulnerableArtifactIdsToApply).length === 0) {
|
|
219661
|
+
logger.info("The vulnerabilities to apply fixes to do not affect the current project");
|
|
219662
|
+
return { type: "selected-vulnerabilities-do-not-affect-the-current-project" };
|
|
219663
|
+
}
|
|
219660
219664
|
const computedFix = await useSocketComputeFixEndpoint(autofixRunId, artifacts, ghsaToVulnerableArtifactIdsToApply, {
|
|
219661
219665
|
noMajorUpdates: options.disableMajorUpdates,
|
|
219662
219666
|
minimumReleaseAgeInMinutes: options.minimumReleaseAgeInMinutes
|
|
@@ -219677,7 +219681,7 @@ async function computeFixesAndUpgradePurls(path2, options, logFile) {
|
|
|
219677
219681
|
logger.info(` - ${ghsa} (${ghsaToVulnerableArtifactIdsToApply[ghsa].map((id) => simplePurl(artifacts[id].type, artifacts[id].namespace ?? null, artifacts[id].name ?? "", artifacts[id].version ?? null)).join(", ")})`);
|
|
219678
219682
|
}
|
|
219679
219683
|
const fixesFound = Object.entries(computedFix.ghsaToResult).filter(([_, result]) => result.failedArtifacts === void 0 || result.failedArtifacts.length === 0);
|
|
219680
|
-
if (options.
|
|
219684
|
+
if (options.showAffectedDirectDependencies) {
|
|
219681
219685
|
return computeDirectDependencyUpgrades(artifacts, fixesFound);
|
|
219682
219686
|
}
|
|
219683
219687
|
const combinedFixes = fixesFound.flatMap(([_, result]) => result.fixes);
|
|
@@ -235404,7 +235408,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
235404
235408
|
}
|
|
235405
235409
|
|
|
235406
235410
|
// dist/version.js
|
|
235407
|
-
var version2 = "14.12.
|
|
235411
|
+
var version2 = "14.12.56";
|
|
235408
235412
|
|
|
235409
235413
|
// dist/cli-core.js
|
|
235410
235414
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|