@coana-tech/cli 14.12.22 → 14.12.23
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/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/class-graph-analysis/dist/bundle/class-graph-analysis-cli.mjs +16 -8
- package/repos/coana-tech/cocoa/release/Coana.Cocoa.dll +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/repos/coana-tech/mambalade/dist/mambalade-0.3.12-py3-none-any.whl +0 -0
package/cli.mjs
CHANGED
|
@@ -227214,7 +227214,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
227214
227214
|
}
|
|
227215
227215
|
|
|
227216
227216
|
// dist/version.js
|
|
227217
|
-
var version2 = "14.12.
|
|
227217
|
+
var version2 = "14.12.23";
|
|
227218
227218
|
|
|
227219
227219
|
// dist/cli-core.js
|
|
227220
227220
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -7749,8 +7749,10 @@ var AlucardResolutionManager = class {
|
|
|
7749
7749
|
const inputFile = resolve(tmpDir, "input.json");
|
|
7750
7750
|
await writeFile(inputFile, JSON.stringify(inputFileData));
|
|
7751
7751
|
const execResult = await execNeverFail(cmdt`java -jar ${this.alucardPath} resolveNodes --batch-mode --input-file=${inputFile} --output-dir=${tmpDir} --timeout=${this.timeoutInSeconds}`);
|
|
7752
|
-
if (execResult.error)
|
|
7753
|
-
throw Error(
|
|
7752
|
+
if (execResult.error) {
|
|
7753
|
+
throw Error(`alucard could not resolve nodes: ${execResult.error.message}${execResult.stderr ? `
|
|
7754
|
+
stderr: ${execResult.stderr}` : ""}`);
|
|
7755
|
+
}
|
|
7754
7756
|
const nodes = JSON.parse(await readFile5(resolve(tmpDir, "nodes.json"), "utf-8"));
|
|
7755
7757
|
const fatJarExcludes = new Set(nodes.filter((node) => deps[node.packageId] && node.nodeType === "type").map((node) => node.fullyQualifiedName));
|
|
7756
7758
|
graph.addNodes(nodes.filter((node) => !apps[node.nodeId] && node.nodeType === "type" && fatJarExcludes.has(node.fullyQualifiedName)));
|
|
@@ -7768,8 +7770,10 @@ var AlucardResolutionManager = class {
|
|
|
7768
7770
|
const inputFile = resolve(tmpDir, "input.json");
|
|
7769
7771
|
await writeFile(inputFile, JSON.stringify(inputFileData));
|
|
7770
7772
|
const execResult = await execNeverFail(cmdt`java -jar ${this.alucardPath} resolveEdges --batch-mode ${mode === "DIRECT_DEPENDENCIES" && "--entry-edges-only"} --input-file=${inputFile} --output-dir=${tmpDir} --timeout=${this.timeoutInSeconds}`);
|
|
7771
|
-
if (execResult.error)
|
|
7772
|
-
throw
|
|
7773
|
+
if (execResult.error) {
|
|
7774
|
+
throw Error(`alucard could not resolve edges: ${execResult.error.message}${execResult.stderr ? `
|
|
7775
|
+
stderr: ${execResult.stderr}` : ""}`);
|
|
7776
|
+
}
|
|
7773
7777
|
for (const idx of JSON.parse(await readFile5(resolve(tmpDir, "visited.json"), "utf-8"))) {
|
|
7774
7778
|
visited.add(idx);
|
|
7775
7779
|
}
|
|
@@ -17518,8 +17522,10 @@ var CocoaResolutionManager = class {
|
|
|
17518
17522
|
await writeFile4(inputFile, JSON.stringify(inputFileData));
|
|
17519
17523
|
const cmd = cmdt`dotnet ${this.cocoaPath} resolveNodes --batch-mode --input-file=${inputFile} --output-dir=${tmpDir} --timeout=${this.timeoutInSeconds}`;
|
|
17520
17524
|
const execResult = await execNeverFail(cmd, ".");
|
|
17521
|
-
if (execResult.error)
|
|
17522
|
-
throw
|
|
17525
|
+
if (execResult.error) {
|
|
17526
|
+
throw Error(`cocoa could not resolve nodes: ${execResult.error.message}${execResult.stderr ? `
|
|
17527
|
+
stderr: ${execResult.stderr}` : ""}`);
|
|
17528
|
+
}
|
|
17523
17529
|
const nodes = JSON.parse(await readFile9(resolve3(tmpDir, "nodes.json"), "utf-8"));
|
|
17524
17530
|
graph.addNodes(nodes);
|
|
17525
17531
|
});
|
|
@@ -17537,8 +17543,10 @@ var CocoaResolutionManager = class {
|
|
|
17537
17543
|
await writeFile4(inputFile, JSON.stringify(inputFileData));
|
|
17538
17544
|
const cmd = cmdt`dotnet ${this.cocoaPath} resolveEdges --batch-mode ${mode === "DIRECT_DEPENDENCIES" && "--entry-edges-only"} --input-file=${inputFile} --output-dir=${tmpDir} --timeout=${this.timeoutInSeconds}`;
|
|
17539
17545
|
const execResult = await execNeverFail(cmd, ".");
|
|
17540
|
-
if (execResult.error)
|
|
17541
|
-
throw
|
|
17546
|
+
if (execResult.error) {
|
|
17547
|
+
throw Error(`cocoa could not resolve edges: ${execResult.error.message}${execResult.stderr ? `
|
|
17548
|
+
stderr: ${execResult.stderr}` : ""}`);
|
|
17549
|
+
}
|
|
17542
17550
|
for (const idx of JSON.parse(await readFile9(resolve3(tmpDir, "visited.json"), "utf-8"))) {
|
|
17543
17551
|
visited.add(idx);
|
|
17544
17552
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|