Socket
Socket
Sign inDemoInstall

prebuild-install

Package Overview
Dependencies
Maintainers
6
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prebuild-install - npm Package Compare versions

Comparing version 7.0.1 to 7.1.0

8

CHANGELOG.md
# Changelog
## [7.1.0] - 2022-04-20
### Changed
- Allow setting libc to glibc on non-glibc platform ([#176](https://github.com/prebuild/prebuild-install/issues/176)) ([`f729abb`](https://github.com/prebuild/prebuild-install/commit/f729abb)) (Joona Heinikoski).
## [7.0.1] - 2022-01-28

@@ -80,2 +86,4 @@

[7.1.0]: https://github.com/prebuild/prebuild-install/releases/tag/v7.1.0
[7.0.1]: https://github.com/prebuild/prebuild-install/releases/tag/v7.0.1

@@ -82,0 +90,0 @@

2

package.json
{
"name": "prebuild-install",
"version": "7.0.1",
"version": "7.1.0",
"description": "A command line tool to easily install prebuilt binaries for multiple version of node/iojs on a specific platform",

@@ -5,0 +5,0 @@ "scripts": {

@@ -8,4 +8,6 @@ const path = require('path')

const env = process.env
const libc = env.LIBC || (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || ''
const libc = env.LIBC || process.env.npm_config_libc ||
(detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || ''
// Get the configuration

@@ -55,2 +57,4 @@ module.exports = function (pkg) {

rc.libc = rc.platform !== 'linux' || rc.libc === detectLibc.GLIBC ? '' : rc.libc
return rc

@@ -57,0 +61,0 @@ }

@@ -75,6 +75,10 @@ # prebuild-install

When `prebuild-install` is run via an `npm` script, options `--build-from-source`, `--debug`, `--download`, `--target`, `--runtime`, `--arch` and `--platform` may be passed through via arguments given to the `npm` command.
When `prebuild-install` is run via an `npm` script, options `--build-from-source`, `--debug`, `--download`, `--target`, `--runtime`, `--arch` `--platform` and `--libc` may be passed through via arguments given to the `npm` command.
Alternatively you can set environment variables `npm_config_build_from_source=true`, `npm_config_platform`, `npm_config_arch`, `npm_config_target` and `npm_config_runtime`.
Alternatively you can set environment variables `npm_config_build_from_source=true`, `npm_config_platform`, `npm_config_arch`, `npm_config_target` `npm_config_runtime` and `npm_config_libc`.
### Libc
On non-glibc Linux platforms, the Libc name is appended to platform name. For example, musl-based environments are called `linuxmusl`. If `--libc=glibc` is passed as option, glibc is discarded and platform is called as just `linux`. This can be used for example to build cross-platform packages on Alpine Linux.
### Private Repositories

@@ -81,0 +85,0 @@

@@ -23,3 +23,3 @@ const path = require('path')

arch: opts.arch,
libc: opts.libc || process.env.LIBC || '',
libc: opts.libc || '',
configuration: (opts.debug ? 'Debug' : 'Release'),

@@ -26,0 +26,0 @@ module_name: opts.pkg.binary && opts.pkg.binary.module_name,

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