@corgea/cli 1.8.2 → 1.8.4

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/bin/corgea.js CHANGED
@@ -9,7 +9,7 @@ function resolveTargetTriple() {
9
9
  switch (process.platform) {
10
10
  case "linux":
11
11
  case "android":
12
- if (process.arch === "x64") return "x86_64-unknown-linux-gnu";
12
+ if (process.arch === "x64") return "x86_64-unknown-linux-musl";
13
13
  if (process.arch === "arm64") return "aarch64-unknown-linux-gnu";
14
14
  return null;
15
15
  case "darwin":
@@ -26,7 +26,9 @@ function resolveTargetTriple() {
26
26
 
27
27
  const targetTriple = resolveTargetTriple();
28
28
  if (!targetTriple) {
29
- throw new Error(`Unsupported platform: ${process.platform} (${process.arch})`);
29
+ throw new Error(
30
+ `Unsupported platform: ${process.platform} (${process.arch})`,
31
+ );
30
32
  }
31
33
 
32
34
  const binaryName = process.platform === "win32" ? "corgea.exe" : "corgea";
@@ -36,7 +38,7 @@ const binaryPath = path.join(vendorRoot, targetTriple, "corgea", binaryName);
36
38
  if (!existsSync(binaryPath)) {
37
39
  throw new Error(
38
40
  `Corgea binary not found at ${binaryPath}.\n` +
39
- `Try reinstalling: npm install -g corgea-cli@latest`
41
+ `Try reinstalling: npm install -g corgea-cli@latest`,
40
42
  );
41
43
  }
42
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corgea/cli",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "The Corgea CLI. Scan for vulnerabilities, create fixes.",
5
5
  "license": "LGPL-2.1-only",
6
6
  "homepage": "https://corgea.com",
index edfb32c..d91a1f6 100755
Binary file