Socket
Socket
Sign inDemoInstall

prebuild-install

Package Overview
Dependencies
Maintainers
5
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 5.1.0 to 5.2.0

3

bin.js

@@ -6,2 +6,3 @@ #!/usr/bin/env node

var whichPmRuns = require('which-pm-runs')
var napi = require('napi-build-utils')

@@ -37,2 +38,4 @@ var pkg = require(path.resolve('package.json'))

if (napi.isNapiRuntime(rc.runtime)) napi.logUnsupportedVersion(rc.target, log)
var pm = whichPmRuns()

@@ -39,0 +42,0 @@ var isNpm = !pm || pm.name === 'npm'

6

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

@@ -19,3 +19,4 @@ "scripts": {

"bindings",
"devops"
"devops",
"napi"
],

@@ -28,2 +29,3 @@ "dependencies": {

"mkdirp": "^0.5.1",
"napi-build-utils": "^1.0.1",
"node-abi": "^2.2.0",

@@ -30,0 +32,0 @@ "noop-logger": "^0.1.1",

var minimist = require('minimist')
var getAbi = require('node-abi').getAbi
var detectLibc = require('detect-libc')
var napi = require('napi-build-utils')

@@ -66,4 +67,8 @@ var env = process.env

rc.abi = getAbi(rc.target, rc.runtime)
if (napi.isNapiRuntime(rc.runtime) && rc.target === process.versions.node) {
rc.target = napi.getBestNapiBuildVersion()
}
rc.abi = napi.isNapiRuntime(rc.runtime) ? rc.target : getAbi(rc.target, rc.runtime)
return rc

@@ -70,0 +75,0 @@ }

@@ -35,3 +35,3 @@ # prebuild-install

--target -t version (version to install for)
--runtime -r runtime (Node runtime [node or electron] to build or install for, default is node)
--runtime -r runtime (Node runtime [node, napi or electron] to build or install for, default is node)
--path -p path (make a prebuild-install here)

@@ -45,3 +45,3 @@ --token -T gh-token (github token for private repos)

--version (print prebuild-install version and exit)
```
```

@@ -48,0 +48,0 @@ When `prebuild-install` is run via an `npm` script, options

@@ -25,3 +25,4 @@ var path = require('path')

configuration: (opts.debug ? 'Debug' : 'Release'),
module_name: opts.pkg.binary && opts.pkg.binary.module_name
module_name: opts.pkg.binary && opts.pkg.binary.module_name,
tag_prefix: opts['tag-prefix'] || 'v'
})

@@ -47,6 +48,6 @@ }

if (hostMirrorUrl) {
return hostMirrorUrl + '/v{version}/' + packageName
return hostMirrorUrl + '/{tag_prefix}{version}/' + packageName
}
if (opts.pkg.binary) {
if (opts.pkg.binary && opts.pkg.binary.host) {
return [

@@ -61,3 +62,3 @@ opts.pkg.binary.host,

return github(opts.pkg) + '/releases/download/v{version}/' + packageName
return github(opts.pkg) + '/releases/download/{tag_prefix}{version}/' + packageName
}

@@ -64,0 +65,0 @@

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