@ff-labs/fff-bun 0.8.2-nightly.6645a68 → 0.8.4-dev.180783f

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.
Files changed (2) hide show
  1. package/package.json +12 -12
  2. package/src/platform.ts +10 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ff-labs/fff-bun",
3
- "version": "0.8.2-nightly.6645a68",
3
+ "version": "0.8.4-dev.180783f",
4
4
  "private": false,
5
5
  "description": "High-performance fuzzy file finder for Bun - perfect for LLM agent tools",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  ],
40
40
  "repository": {
41
41
  "type": "git",
42
- "url": "git+https://github.com/dmtrKovalenko/fff.nvim.git",
42
+ "url": "git+https://github.com/dmtrKovalenko/fff.git",
43
43
  "directory": "packages/fff"
44
44
  },
45
45
  "keywords": [
@@ -58,18 +58,18 @@
58
58
  "access": "public"
59
59
  },
60
60
  "bugs": {
61
- "url": "https://github.com/dmtrKovalenko/fff.nvim/issues"
61
+ "url": "https://github.com/dmtrKovalenko/fff/issues"
62
62
  },
63
- "homepage": "https://github.com/dmtrKovalenko/fff.nvim#readme",
63
+ "homepage": "https://github.com/dmtrKovalenko/fff#readme",
64
64
  "optionalDependencies": {
65
- "@ff-labs/fff-bin-darwin-arm64": "0.8.2-nightly.6645a68",
66
- "@ff-labs/fff-bin-darwin-x64": "0.8.2-nightly.6645a68",
67
- "@ff-labs/fff-bin-linux-x64-gnu": "0.8.2-nightly.6645a68",
68
- "@ff-labs/fff-bin-linux-arm64-gnu": "0.8.2-nightly.6645a68",
69
- "@ff-labs/fff-bin-linux-x64-musl": "0.8.2-nightly.6645a68",
70
- "@ff-labs/fff-bin-linux-arm64-musl": "0.8.2-nightly.6645a68",
71
- "@ff-labs/fff-bin-win32-x64": "0.8.2-nightly.6645a68",
72
- "@ff-labs/fff-bin-win32-arm64": "0.8.2-nightly.6645a68"
65
+ "@ff-labs/fff-bin-darwin-arm64": "0.8.4-dev.180783f",
66
+ "@ff-labs/fff-bin-darwin-x64": "0.8.4-dev.180783f",
67
+ "@ff-labs/fff-bin-linux-x64-gnu": "0.8.4-dev.180783f",
68
+ "@ff-labs/fff-bin-linux-arm64-gnu": "0.8.4-dev.180783f",
69
+ "@ff-labs/fff-bin-linux-x64-musl": "0.8.4-dev.180783f",
70
+ "@ff-labs/fff-bin-linux-arm64-musl": "0.8.4-dev.180783f",
71
+ "@ff-labs/fff-bin-win32-x64": "0.8.4-dev.180783f",
72
+ "@ff-labs/fff-bin-win32-arm64": "0.8.4-dev.180783f"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/bun": "^1.3.8",
package/src/platform.ts CHANGED
@@ -30,16 +30,20 @@ export function getTriple(): string {
30
30
  * Detect whether we're on musl or glibc Linux
31
31
  */
32
32
  function detectLinuxLibc(): string {
33
+ let output = "";
33
34
  try {
34
- const lddOutput = execSync("ldd --version 2>&1", {
35
+ output = execSync("ldd --version 2>&1", {
35
36
  encoding: "utf-8",
36
37
  timeout: 5000,
37
38
  });
38
- if (lddOutput.toLowerCase().includes("musl")) {
39
- return "unknown-linux-musl";
40
- }
41
- } catch {
42
- // ldd failed, assume glibc
39
+ } catch (e: unknown) {
40
+ // Alpine/musl: `ldd --version` exits with code 1 but still prints
41
+ // "musl libc ..." — execSync surfaces that on the error object.
42
+ const err = e as { stdout?: string | Buffer; stderr?: string | Buffer };
43
+ output = String(err?.stdout ?? "") + String(err?.stderr ?? "");
44
+ }
45
+ if (output.toLowerCase().includes("musl")) {
46
+ return "unknown-linux-musl";
43
47
  }
44
48
  return "unknown-linux-gnu";
45
49
  }