@coana-tech/cli 15.2.7 → 15.2.8
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 +13 -11
- package/package.json +1 -1
- 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/repos/coana-tech/javap-service/javap-service.jar +0 -0
package/cli.mjs
CHANGED
|
@@ -234590,14 +234590,14 @@ function getEcosystemsFromManifestFileNames(fileNames) {
|
|
|
234590
234590
|
}
|
|
234591
234591
|
return [...ecosystems];
|
|
234592
234592
|
}
|
|
234593
|
-
async function validateExternalDependencies(ecosystems, command, manifestFileNames) {
|
|
234593
|
+
async function validateExternalDependencies(ecosystems, command, manifestFileNames, packageManagers) {
|
|
234594
234594
|
const checks = [];
|
|
234595
234595
|
const ecosystemSet = new Set(ecosystems);
|
|
234596
234596
|
if (ecosystemSet.has("NPM")) {
|
|
234597
|
-
checks.push(...getNpmChecks(command, manifestFileNames));
|
|
234597
|
+
checks.push(...getNpmChecks(command, manifestFileNames, packageManagers));
|
|
234598
234598
|
}
|
|
234599
234599
|
if (ecosystemSet.has("PIP")) {
|
|
234600
|
-
checks.push(...getPipChecks(command, manifestFileNames));
|
|
234600
|
+
checks.push(...getPipChecks(command, manifestFileNames, packageManagers));
|
|
234601
234601
|
}
|
|
234602
234602
|
if (ecosystemSet.has("MAVEN") && command === "run") {
|
|
234603
234603
|
checks.push(checkJavaAvailable());
|
|
@@ -234637,9 +234637,10 @@ async function validateExternalDependencies(ecosystems, command, manifestFileNam
|
|
|
234637
234637
|
throw new Error(message2);
|
|
234638
234638
|
}
|
|
234639
234639
|
}
|
|
234640
|
-
function getNpmChecks(command, manifestFileNames) {
|
|
234640
|
+
function getNpmChecks(command, manifestFileNames, packageManagers) {
|
|
234641
234641
|
const checks = [];
|
|
234642
234642
|
const nexe = isNexeMode();
|
|
234643
|
+
const isAllowed = (pm) => !packageManagers || packageManagers.includes(pm);
|
|
234643
234644
|
if (command === "run") {
|
|
234644
234645
|
checks.push(Promise.resolve(checkNodeVersion(20)));
|
|
234645
234646
|
if (!nexe) {
|
|
@@ -234647,21 +234648,22 @@ function getNpmChecks(command, manifestFileNames) {
|
|
|
234647
234648
|
}
|
|
234648
234649
|
} else {
|
|
234649
234650
|
const files = manifestFileNames ?? [];
|
|
234650
|
-
if (files.some((f5) => f5.endsWith("package-lock.json")) && !nexe) {
|
|
234651
|
+
if (files.some((f5) => f5.endsWith("package-lock.json")) && !nexe && isAllowed("NPM")) {
|
|
234651
234652
|
checks.push(checkTool("npm", "NPM", "Required for NPM dependency management. Install from https://nodejs.org"));
|
|
234652
234653
|
}
|
|
234653
|
-
if (files.some((f5) => f5.endsWith("pnpm-lock.yaml"))) {
|
|
234654
|
+
if (files.some((f5) => f5.endsWith("pnpm-lock.yaml")) && isAllowed("PNPM")) {
|
|
234654
234655
|
checks.push(checkTool("pnpm", "NPM", "Required for pnpm dependency management. Install from https://pnpm.io"));
|
|
234655
234656
|
}
|
|
234656
|
-
if (files.some((f5) => f5.endsWith("yarn.lock"))) {
|
|
234657
|
+
if (files.some((f5) => f5.endsWith("yarn.lock")) && isAllowed("YARN")) {
|
|
234657
234658
|
checks.push(checkTool("yarn", "NPM", "Required for Yarn dependency management. Install from https://yarnpkg.com"));
|
|
234658
234659
|
}
|
|
234659
234660
|
}
|
|
234660
234661
|
return checks;
|
|
234661
234662
|
}
|
|
234662
|
-
function getPipChecks(command, manifestFileNames) {
|
|
234663
|
+
function getPipChecks(command, manifestFileNames, packageManagers) {
|
|
234663
234664
|
const checks = [];
|
|
234664
234665
|
const nexe = isNexeMode();
|
|
234666
|
+
const isAllowed = (pm) => !packageManagers || packageManagers.includes(pm);
|
|
234665
234667
|
if (command === "run") {
|
|
234666
234668
|
checks.push(checkEitherTool("python3", "python", "Python (PIP)", "python3 (or python)", "Required for Python dependency management. Install from https://python.org"));
|
|
234667
234669
|
if (!nexe) {
|
|
@@ -234669,7 +234671,7 @@ function getPipChecks(command, manifestFileNames) {
|
|
|
234669
234671
|
}
|
|
234670
234672
|
} else {
|
|
234671
234673
|
const files = manifestFileNames ?? [];
|
|
234672
|
-
if (files.some((f5) => f5.endsWith("uv.lock")) && !nexe) {
|
|
234674
|
+
if (files.some((f5) => f5.endsWith("uv.lock")) && !nexe && isAllowed("UV")) {
|
|
234673
234675
|
checks.push(checkTool("uv", "Python (PIP)", "Required for Python dependency management. Install from https://docs.astral.sh/uv/"));
|
|
234674
234676
|
}
|
|
234675
234677
|
}
|
|
@@ -234771,7 +234773,7 @@ ${Array.from(upgrades).map(([idx, upgradeVersion]) => ` ${prettyPrintPurlUpgrade
|
|
|
234771
234773
|
}
|
|
234772
234774
|
const detectedEcosystems = Array.from(ecosystemToSocketArtifactUpgrades.keys());
|
|
234773
234775
|
if (!options.disableExternalToolChecks) {
|
|
234774
|
-
await validateExternalDependencies(detectedEcosystems, "compute-fixes-and-upgrade-purls", manifestFiles);
|
|
234776
|
+
await validateExternalDependencies(detectedEcosystems, "compute-fixes-and-upgrade-purls", manifestFiles, options.packageManagers);
|
|
234775
234777
|
}
|
|
234776
234778
|
let anyErrors = false;
|
|
234777
234779
|
let anySkipped = false;
|
|
@@ -252347,7 +252349,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
252347
252349
|
}
|
|
252348
252350
|
|
|
252349
252351
|
// dist/version.js
|
|
252350
|
-
var version3 = "15.2.
|
|
252352
|
+
var version3 = "15.2.8";
|
|
252351
252353
|
|
|
252352
252354
|
// dist/cli-core.js
|
|
252353
252355
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|