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 1.0.1 to 1.1.0

13

bin.js
#!/usr/bin/env node
var proc = require('child_process')
var os = require('os')
var ARGS = process.argv.slice(2)
var RUN_PREINSTALL = true
if (os.platform() === 'win32' && ARGS[0] === '--no-windows-preinstall') {
ARGS.shift()
RUN_PREINSTALL = false
}
proc.exec('node-gyp-build-test', function (err) {
if (err) preinstall(process.argv.slice(2).join(' '))
if (err) preinstall(ARGS.join(' '))
})

@@ -16,3 +25,3 @@

function preinstall (cmd) {
if (!cmd) return build()
if (!cmd || !RUN_PREINSTALL) return build()
exec(cmd).on('exit', function (code) {

@@ -19,0 +28,0 @@ if (code) process.exit(code)

2

package.json
{
"name": "node-gyp-build",
"version": "1.0.1",
"version": "1.1.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