Socket
Socket
Sign inDemoInstall

node-gyp-build

Package Overview
Dependencies
0
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.1 to 3.6.0

13

bin.js

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

var os = require('os')
var path = require('path')

@@ -12,3 +13,13 @@ proc.exec('node-gyp-build-test', function (err) {

function build () {
proc.spawn(os.platform() === 'win32' ? 'node-gyp.cmd' : 'node-gyp', ['rebuild'], {stdio: 'inherit'}).on('exit', function (code) {
var args = [ os.platform() === 'win32' ? 'node-gyp.cmd' : 'node-gyp', 'rebuild' ]
try {
args = [
process.execPath,
path.join(require.resolve('node-gyp/package.json'), '..', require('node-gyp/package.json').bin['node-gyp']),
'rebuild'
]
} catch (_) {}
proc.spawn(args[0], args.slice(1), {stdio: 'inherit'}).on('exit', function (code) {
if (code || !process.argv[3]) process.exit(code)

@@ -15,0 +26,0 @@ exec(process.argv[3]).on('exit', function (code) {

2

package.json
{
"name": "node-gyp-build",
"version": "3.5.1",
"version": "3.6.0",
"description": "Build tool and bindings loader for node-gyp that supports prebuilds",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc