@coana-tech/cli 15.0.2 → 15.0.3
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 +1 -1
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +9 -3
- 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
|
@@ -251822,7 +251822,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
251822
251822
|
}
|
|
251823
251823
|
|
|
251824
251824
|
// dist/version.js
|
|
251825
|
-
var version3 = "15.0.
|
|
251825
|
+
var version3 = "15.0.3";
|
|
251826
251826
|
|
|
251827
251827
|
// dist/cli-core.js
|
|
251828
251828
|
var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
|
package/package.json
CHANGED
|
@@ -110960,6 +110960,9 @@ async function validateNpmDependencyDownloads(artifactIdToArtifact, packageNames
|
|
|
110960
110960
|
}
|
|
110961
110961
|
|
|
110962
110962
|
// dist/whole-program-code-aware-vulnerability-scanner/js/heuristics.js
|
|
110963
|
+
var largeIndirectionBoundOptions = {
|
|
110964
|
+
maxIndirections: 1024
|
|
110965
|
+
};
|
|
110963
110966
|
var lazyIndirectionBoundOptions = {
|
|
110964
110967
|
maxIndirections: 5
|
|
110965
110968
|
};
|
|
@@ -111895,7 +111898,9 @@ var SparJSAnalysisEngine = class extends JSAnalysisEngine {
|
|
|
111895
111898
|
--reachable-json ${affectedPackagesFile}
|
|
111896
111899
|
${getExcludes(mainProjectRoot, projectRoot, reachabilityAnalysisOptions)}
|
|
111897
111900
|
--diagnostics-json ${diagnosticsFile}
|
|
111898
|
-
--max-indirections
|
|
111901
|
+
--max-indirections=${/* XXX: maxIndirections is tuned for --lazy mode, which SparJS doesn't support,
|
|
111902
|
+
* so we use a value that's better for non-lazy analysis. */
|
|
111903
|
+
maxIndirections ? largeIndirectionBoundOptions.maxIndirections : void 0}
|
|
111899
111904
|
${!!includePackages && (includePackages.length ? ["--include-packages", ...includePackages] : ["--ignore-dependencies"])}
|
|
111900
111905
|
${/* XXX: Requires Node 22+ */
|
|
111901
111906
|
approx && "--approx"}
|
|
@@ -114004,8 +114009,8 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
|
|
|
114004
114009
|
const bucketsFromLastAnalysisAndCliVersion = await dashboardAPI.getBucketsForLastReport(relative9(state.rootWorkingDir, state.subprojectDir) || ".", state.workspacePath, vulnerabilities[0].ecosystem ?? "NPM", COANA_REPORT_ID, apiKey);
|
|
114005
114010
|
if (!bucketsFromLastAnalysisAndCliVersion)
|
|
114006
114011
|
return void 0;
|
|
114007
|
-
const { cliVersion: cliVersion2, buckets:
|
|
114008
|
-
if (
|
|
114012
|
+
const { cliVersion: cliVersion2, buckets: rawBucketsFromLastAnalysis } = bucketsFromLastAnalysisAndCliVersion;
|
|
114013
|
+
if (rawBucketsFromLastAnalysis.some((b) => b.heuristicName === heuristics.IGNORE_DEPENDENCIES_AND_MAX_ROUNDS_3.name))
|
|
114009
114014
|
return;
|
|
114010
114015
|
try {
|
|
114011
114016
|
if ((0, import_semver4.lt)(cliVersion2, CLI_VERSION_TO_USE_CACHING_FROM[ecosystem] ?? CLI_VERSION_TO_USE_CACHING_FROM_DEFAULT))
|
|
@@ -114013,6 +114018,7 @@ async function analyzeWithHeuristics(state, vulns, heuristicsInOrder, doNotRecom
|
|
|
114013
114018
|
} catch (e) {
|
|
114014
114019
|
return void 0;
|
|
114015
114020
|
}
|
|
114021
|
+
const bucketsFromLastAnalysis = rawBucketsFromLastAnalysis.filter((b) => b.heuristicName !== "IMPORT_REACHABILITY");
|
|
114016
114022
|
const duplicateUrls = findDuplicateVulnsInBuckets(bucketsFromLastAnalysis);
|
|
114017
114023
|
if (duplicateUrls.length > 0) {
|
|
114018
114024
|
sendWarningToDashboard(`Assertion error: Detected bucket(s) with non-unique vulnerability URLs. Non-unique URLs: ${duplicateUrls.join(" ")}.`, {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|