Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-gyp

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-gyp - npm Package Compare versions

Comparing version 0.6.11 to 0.7.0

21

lib/build.js

@@ -22,6 +22,7 @@

var makeCommand = gyp.opts.make || process.env.MAKE
|| (process.platform.indexOf('bsd') != -1 ? 'gmake' : 'make')
var command = win ? 'msbuild' : makeCommand
|| (process.platform.indexOf('bsd') != -1 ? 'gmake' : 'make')
, command = win ? 'msbuild' : makeCommand
, buildDir = path.resolve('build')
, configPath = path.resolve(buildDir, 'config.gypi')
, jobs = gyp.opts.jobs || process.env.JOBS
, buildType

@@ -193,2 +194,9 @@ , config

argv.push('/p:Configuration=' + buildType + ';Platform=' + p)
if (jobs) {
if (!isNaN(parseInt(jobs, 10))) {
argv.push('/m:' + parseInt(jobs, 10))
} else if (jobs.toUpperCase() === 'MAX') {
argv.push('/m:' + require('os').cpus().length)
}
}
} else {

@@ -199,2 +207,11 @@ argv.push('BUILDTYPE=' + buildType)

argv.push('build')
if (jobs) {
if (!isNaN(parseInt(jobs, 10))) {
argv.push('--jobs')
argv.push(parseInt(jobs, 10))
} else if (jobs.toUpperCase() === 'MAX') {
argv.push('--jobs')
argv.push(require('os').cpus().length)
}
}
}

@@ -201,0 +218,0 @@

2

lib/configure.js

@@ -26,3 +26,3 @@

var python = process.env.PYTHON || gyp.opts.python || 'python'
var python = gyp.opts.python || process.env.PYTHON || 'python'
, buildDir = path.resolve('build')

@@ -29,0 +29,0 @@ , hasVCExpress = false

@@ -22,3 +22,2 @@

, mkdir = require('mkdirp')
, distUrl = 'http://nodejs.org/dist'
, win = process.platform == 'win32'

@@ -43,3 +42,5 @@

var distUrl = gyp.opts['dist-url'] || 'http://nodejs.org/dist'
// Determine which node dev files version we are installing

@@ -46,0 +47,0 @@ var versionStr = argv[0] || gyp.opts.target || process.version

@@ -87,2 +87,4 @@

, python: String // 'configure'
, 'dist-url': String // 'install'
, jobs: String // 'build'
}

@@ -89,0 +91,0 @@

{ "name": "node-gyp"
, "description": "Node.js native addon build tool"
, "keywords": [ "native", "addon", "module", "c", "c++", "bindings", "gyp" ]
, "version": "0.6.11"
, "version": "0.7.0"
, "installVersion": 9

@@ -6,0 +6,0 @@ , "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)"

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