fnva 0.0.32 → 0.0.33
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/fnva.js
CHANGED
|
@@ -53,7 +53,8 @@ function buildBinaryPath() {
|
|
|
53
53
|
const binaryCandidates = [];
|
|
54
54
|
|
|
55
55
|
// 1. Prebuilt binary shipped with the npm package
|
|
56
|
-
|
|
56
|
+
const npmBinaryPath = platformBinaryPath(platform);
|
|
57
|
+
binaryCandidates.push(npmBinaryPath);
|
|
57
58
|
|
|
58
59
|
// 2. User-provided override via environment variable
|
|
59
60
|
if (process.env.FNVA_NATIVE_PATH) {
|
|
@@ -70,12 +71,32 @@ function buildBinaryPath() {
|
|
|
70
71
|
binaryCandidates.push(path.join(targetDir, 'debug', 'fnva'));
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
// Debug: Show all candidates and their existence
|
|
75
|
+
if (process.env.FNVA_DEBUG === '1') {
|
|
76
|
+
console.log('[DEBUG] Looking for fnva binary...');
|
|
77
|
+
console.log('[DEBUG] Platform:', platform, 'Arch:', resolveArch());
|
|
78
|
+
console.log('[DEBUG] Binary candidates:');
|
|
79
|
+
binaryCandidates.forEach((candidate, index) => {
|
|
80
|
+
const exists = candidate && fs.existsSync(candidate);
|
|
81
|
+
console.log(` ${index + 1}. ${candidate} - ${exists ? 'EXISTS' : 'MISSING'}`);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
73
85
|
for (const candidate of binaryCandidates) {
|
|
74
86
|
if (candidate && fs.existsSync(candidate)) {
|
|
87
|
+
if (process.env.FNVA_DEBUG === '1') {
|
|
88
|
+
console.log(`[DEBUG] Found binary at: ${candidate}`);
|
|
89
|
+
}
|
|
75
90
|
return candidate;
|
|
76
91
|
}
|
|
77
92
|
}
|
|
78
93
|
|
|
94
|
+
if (process.env.FNVA_DEBUG === '1') {
|
|
95
|
+
console.log('[DEBUG] No binary found, falling back to Node.js mode');
|
|
96
|
+
console.log('[DEBUG] Expected npm package binary path:', npmBinaryPath);
|
|
97
|
+
console.log('[DEBUG] npmBinaryPath exists:', fs.existsSync(npmBinaryPath));
|
|
98
|
+
}
|
|
99
|
+
|
|
79
100
|
return null;
|
|
80
101
|
}
|
|
81
102
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/platforms/linux-x64/fnva
CHANGED
|
Binary file
|
|
Binary file
|