Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

node-gyp-build-optional-packages

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-gyp-build-optional-packages - npm Package Compare versions

Comparing version 5.0.7 to 5.1.0

8

index.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc