You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
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

Comparing version 5.3.0 to 5.3.1

2

bin.js

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

var opts = Object.assign({}, rc, {pkg: pkg, log: log})
var opts = Object.assign({}, rc, { pkg: pkg, log: log })

@@ -44,0 +44,0 @@ if (napi.isNapiRuntime(rc.runtime)) napi.logUnsupportedVersion(rc.target, log)

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

'User-Agent': 'simple-get',
'Accept': 'application/octet-stream'
Accept: 'application/octet-stream'
}

@@ -89,26 +89,26 @@ }

pump(fs.createReadStream(cachedPrebuild), zlib.createGunzip(), extract,
function (err) {
if (err) return cb(err)
function (err) {
if (err) return cb(err)
var resolved
if (binaryName) {
try {
resolved = path.resolve(opts.path || '.', binaryName)
} catch (err) {
return cb(err)
}
log.info('unpack', 'resolved to ' + resolved)
if (opts.runtime === 'node' && opts.platform === process.platform && opts.abi === process.versions.modules && opts.arch === process.arch) {
var resolved
if (binaryName) {
try {
require(resolved)
resolved = path.resolve(opts.path || '.', binaryName)
} catch (err) {
return cb(err)
}
log.info('unpack', 'required ' + resolved + ' successfully')
log.info('unpack', 'resolved to ' + resolved)
if (opts.runtime === 'node' && opts.platform === process.platform && opts.abi === process.versions.modules && opts.arch === process.arch) {
try {
require(resolved)
} catch (err) {
return cb(err)
}
log.info('unpack', 'required ' + resolved + ' successfully')
}
}
}
cb(null, resolved)
})
cb(null, resolved)
})
}

@@ -115,0 +115,0 @@

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

@@ -31,7 +31,6 @@ "scripts": {

"npmlog": "^4.0.1",
"os-homedir": "^1.0.1",
"pump": "^2.0.1",
"pump": "^3.0.0",
"rc": "^1.2.7",
"simple-get": "^2.7.0",
"tar-fs": "^1.13.0",
"simple-get": "^3.0.3",
"tar-fs": "^2.0.0",
"tunnel-agent": "^0.6.0",

@@ -42,7 +41,7 @@ "which-pm-runs": "^1.0.0"

"a-native-module": "^1.0.0",
"nock": "^9.2.5",
"nock": "^10.0.6",
"rimraf": "^2.5.2",
"standard": "^10.0.3",
"standard": "^13.0.2",
"tape": "^4.5.1",
"verify-travis-appveyor": "^2.0.1"
"verify-travis-appveyor": "^3.0.1"
},

@@ -49,0 +48,0 @@ "bin": "./bin.js",

@@ -14,3 +14,5 @@ var url = require('url')

if (proxy) {
// eslint-disable-next-line node/no-deprecated-api
var parsedDownloadUrl = url.parse(reqOpts.url)
// eslint-disable-next-line node/no-deprecated-api
var parsedProxy = url.parse(proxy)

@@ -17,0 +19,0 @@ var uriProtocol = (parsedDownloadUrl.protocol === 'https:' ? 'https' : 'http')

var path = require('path')
var github = require('github-from-package')
var home = require('os-homedir')
var home = require('os').homedir
var crypto = require('crypto')

@@ -5,0 +5,0 @@ var expandTemplate = require('expand-template')()

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc