@ff-labs/fff-bun 0.8.2-nightly.6645a68 → 0.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/package.json +12 -12
- 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.
|
|
3
|
+
"version": "0.8.4",
|
|
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.
|
|
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
|
|
61
|
+
"url": "https://github.com/dmtrKovalenko/fff/issues"
|
|
62
62
|
},
|
|
63
|
-
"homepage": "https://github.com/dmtrKovalenko/fff
|
|
63
|
+
"homepage": "https://github.com/dmtrKovalenko/fff#readme",
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@ff-labs/fff-bin-darwin-arm64": "0.8.
|
|
66
|
-
"@ff-labs/fff-bin-darwin-x64": "0.8.
|
|
67
|
-
"@ff-labs/fff-bin-linux-x64-gnu": "0.8.
|
|
68
|
-
"@ff-labs/fff-bin-linux-arm64-gnu": "0.8.
|
|
69
|
-
"@ff-labs/fff-bin-linux-x64-musl": "0.8.
|
|
70
|
-
"@ff-labs/fff-bin-linux-arm64-musl": "0.8.
|
|
71
|
-
"@ff-labs/fff-bin-win32-x64": "0.8.
|
|
72
|
-
"@ff-labs/fff-bin-win32-arm64": "0.8.
|
|
65
|
+
"@ff-labs/fff-bin-darwin-arm64": "0.8.4",
|
|
66
|
+
"@ff-labs/fff-bin-darwin-x64": "0.8.4",
|
|
67
|
+
"@ff-labs/fff-bin-linux-x64-gnu": "0.8.4",
|
|
68
|
+
"@ff-labs/fff-bin-linux-arm64-gnu": "0.8.4",
|
|
69
|
+
"@ff-labs/fff-bin-linux-x64-musl": "0.8.4",
|
|
70
|
+
"@ff-labs/fff-bin-linux-arm64-musl": "0.8.4",
|
|
71
|
+
"@ff-labs/fff-bin-win32-x64": "0.8.4",
|
|
72
|
+
"@ff-labs/fff-bin-win32-arm64": "0.8.4"
|
|
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
|
-
|
|
35
|
+
output = execSync("ldd --version 2>&1", {
|
|
35
36
|
encoding: "utf-8",
|
|
36
37
|
timeout: 5000,
|
|
37
38
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
}
|