node-gyp-build-optional-packages
Advanced tools
Comparing version 5.0.7 to 5.1.0
@@ -17,3 +17,3 @@ var fs = require('fs') | ||
var platform = process.platform | ||
var libc = process.env.LIBC || (isAlpine(platform) ? 'musl' : 'glibc') | ||
var libc = process.env.LIBC || (isMusl(platform) ? 'musl' : 'glibc') | ||
var armv = process.env.ARM_VERSION || (arch === 'arm64' ? '8' : vars.arm_version) || '' | ||
@@ -211,4 +211,6 @@ var uv = (versions.uv || '').split('.')[0] | ||
function isAlpine (platform) { | ||
return platform === 'linux' && fs.existsSync('/etc/alpine-release') | ||
function isMusl (platform) { | ||
if (platform !== 'linux') return false; | ||
const { familySync, MUSL } = require('detect-libc'); | ||
return familySync() === MUSL; | ||
} | ||
@@ -215,0 +217,0 @@ |
{ | ||
"name": "node-gyp-build-optional-packages", | ||
"version": "5.0.7", | ||
"version": "5.1.0", | ||
"description": "Build tool and bindings loader for node-gyp that supports prebuilds", | ||
@@ -11,2 +11,5 @@ "main": "index.js", | ||
}, | ||
"dependencies": { | ||
"detect-libc": "^2.0.1" | ||
}, | ||
"scripts": { | ||
@@ -13,0 +16,0 @@ "test": "standard && node test" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13761
274
1
+ Addeddetect-libc@^2.0.1
+ Addeddetect-libc@2.0.3(transitive)