koffi 2.3.10-beta.2 → 2.3.10-beta.3
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 +1 -1
- package/src/cnoke/src/builder.js +5 -7
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_darwin_arm64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_darwin_x64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_freebsd_arm64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_freebsd_ia32/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_freebsd_x64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_linux_arm32hf/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_linux_arm64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_linux_ia32/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_linux_riscv64hf64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_linux_x64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_openbsd_ia32/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_openbsd_x64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_arm64/koffi.exp +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_arm64/koffi.lib +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_arm64/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_ia32/koffi.exp +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_ia32/koffi.lib +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_ia32/koffi.node +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_x64/koffi.exp +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_x64/koffi.lib +0 -0
- /package/build/{2.3.10-beta.2 → 2.3.10-beta.3}/koffi_win32_x64/koffi.node +0 -0
package/package.json
CHANGED
package/src/cnoke/src/builder.js
CHANGED
|
@@ -300,17 +300,15 @@ function Builder(config = {}) {
|
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
if (pkg.cnoke.require != null) {
|
|
303
|
-
let
|
|
303
|
+
let require_filename = expand_path(pkg.cnoke.require);
|
|
304
304
|
|
|
305
|
-
if (!tools.path_is_absolute(
|
|
306
|
-
|
|
305
|
+
if (!tools.path_is_absolute(require_filename))
|
|
306
|
+
require_filename = path.join(package_dir, require_filename);
|
|
307
307
|
|
|
308
|
-
if (fs.existsSync(
|
|
309
|
-
let proc = spawnSync(process.execPath, ['-e', 'require(process.argv[1])',
|
|
308
|
+
if (fs.existsSync(require_filename)) {
|
|
309
|
+
let proc = spawnSync(process.execPath, ['-e', 'require(process.argv[1])', require_filename]);
|
|
310
310
|
if (proc.status === 0)
|
|
311
311
|
return true;
|
|
312
|
-
|
|
313
|
-
fs.unlinkSync(binary_filename);
|
|
314
312
|
}
|
|
315
313
|
|
|
316
314
|
console.error('Failed to load prebuilt binary, rebuilding from source');
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|