Socket
Socket
Sign inDemoInstall

node-gyp

Package Overview
Dependencies
Maintainers
3
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 1.0.2 to 1.0.3

10

lib/build.js

@@ -225,4 +225,5 @@

if (jobs) {
if (!isNaN(parseInt(jobs, 10))) {
argv.push('/m:' + parseInt(jobs, 10))
var j = parseInt(jobs, 10)
if (!isNaN(j) && j > 0) {
argv.push('/m:' + j)
} else if (jobs.toUpperCase() === 'MAX') {

@@ -238,5 +239,6 @@ argv.push('/m:' + require('os').cpus().length)

if (jobs) {
if (!isNaN(parseInt(jobs, 10))) {
var j = parseInt(jobs, 10)
if (!isNaN(j) && j > 0) {
argv.push('--jobs')
argv.push(parseInt(jobs, 10))
argv.push(j)
} else if (jobs.toUpperCase() === 'MAX') {

@@ -243,0 +245,0 @@ argv.push('--jobs')

4

lib/node-gyp.js

@@ -183,4 +183,4 @@

if (!opts) opts = {}
if (!opts.silent && !opts.customFds) {
opts.customFds = [ 0, 1, 2 ]
if (!opts.silent && !opts.stdio) {
opts.stdio = [ 0, 1, 2 ]
}

@@ -187,0 +187,0 @@ var cp = child_process.spawn(command, args, opts)

@@ -12,3 +12,3 @@

{ name: 'clean', args: [] }
, { name: 'configure', args: [] }
, { name: 'configure', args: argv }
, { name: 'build', args: [] }

@@ -15,0 +15,0 @@ )

@@ -13,3 +13,3 @@ {

],
"version": "1.0.2",
"version": "1.0.3",
"installVersion": 9,

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

"nopt": "2 || 3",
"npmlog": "0",
"npmlog": "0 || 1",
"osenv": "0",

@@ -34,0 +34,0 @@ "request": "2",

@@ -47,3 +47,3 @@ node-gyp

* Windows 7/8:
* Microsoft Visual Studio C++ 2012 for Windows Desktop ([Express][msvc2012] version works well)
* Microsoft Visual Studio C++ 2012/13 for Windows Desktop ([Express][msvc2012] version works well)

@@ -86,3 +86,3 @@ If you have multiple Python versions installed, you can identify which Python

__Note__: The `configure` step looks for the `binding.gyp` file in the current
directory to processs. See below for instructions on creating the `binding.gyp` file.
directory to process. See below for instructions on creating the `binding.gyp` file.

@@ -101,3 +101,3 @@ Now you will have either a `Makefile` (on Unix platforms) or a `vcxproj` file

__Note:__ To create a _Debug_ build of the bindings file, pass the `--debug` (or
`-d`) switch when running the either `configure` or `build` command.
`-d`) switch when running either the `configure`, `build` or `rebuild` command.

@@ -126,4 +126,5 @@

Some additional resources for writing `gyp` files:
Some additional resources for addons and writing `gyp` files:
* ["Going Native" a nodeschool.io tutorial](http://nodeschool.io/#goingnative)
* ["Hello World" node addon example](https://github.com/joyent/node/tree/master/test/addons/hello-world)

@@ -143,5 +144,5 @@ * [gyp user documentation](http://code.google.com/p/gyp/wiki/GypUserDocumentation)

| `build` | Invokes `make`/`msbuild.exe` and builds the native addon
| `clean` | Removes any the `build` dir if it exists
| `clean` | Removes the `build` directory if it exists
| `configure` | Generates project build files for the current platform
| `rebuild` | Runs "clean", "configure" and "build" all in a row
| `rebuild` | Runs `clean`, `configure` and `build` all in a row
| `install` | Installs node development header files for the given version

@@ -148,0 +149,0 @@ | `list` | Lists the currently installed node development file versions

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