Socket
Socket
Sign inDemoInstall

node-gyp

Package Overview
Dependencies
28
Maintainers
2
Versions
144
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

2

bin/node-gyp.js

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

}
if (prog.command == 'list') {
if (command == 'list') {
var versions = arguments[1]

@@ -119,0 +119,0 @@ if (versions.length > 0) {

@@ -109,3 +109,3 @@

function download(url,onError) {
function download (url, onError) {
gyp.info('downloading:', url)

@@ -263,31 +263,37 @@ var requestOpts = {

if (err) return done(err)
var res = download(nodeLibUrl32, function (err, _res) {
if (err || _res.statusCode !== 200) {
return done(err || new Error(res.statusCode + ' status code downloading 32-bit node.lib'))
gyp.verbose('streaming 32-bit node.lib to:', nodeLibPath32)
var req = download(nodeLibUrl32)
req.on('error', done)
req.on('response', function (res) {
if (res.statusCode !== 200) {
done(new Error(res.statusCode + ' status code downloading 32-bit node.lib'))
}
gyp.verbose('streaming 32-bit node.lib to:', nodeLibPath32)
var ws = fs.createWriteStream(nodeLibPath32)
ws.on('error', cb)
res.pipe(ws)
res.on('end', function () {
--async || done()
})
})
res.on('error', done)
req.on('end', function () {
--async || done()
})
var ws = fs.createWriteStream(nodeLibPath32)
ws.on('error', cb)
req.pipe(ws)
})
mkdir(dir64, function (err) {
if (err) return done(err)
var res = download(nodeLibUrl64, function (err, _res) {
if (err || _res.statusCode !== 200) {
return done(err || new Error(res.statusCode + ' status code downloading 64-bit node.lib'))
gyp.verbose('streaming 64-bit node.lib to:', nodeLibPath64)
var req = download(nodeLibUrl64)
req.on('error', done)
req.on('response', function (res) {
if (res.statusCode !== 200) {
done(new Error(res.statusCode + ' status code downloading 64-bit node.lib'))
}
gyp.verbose('streaming 64-bit node.lib to:', nodeLibPath64)
var ws = fs.createWriteStream(nodeLibPath64)
ws.on('error', cb)
res.pipe(ws)
res.on('end', function () {
--async || done()
})
})
res.on('error', done)
req.on('end', function () {
--async || done()
})
var ws = fs.createWriteStream(nodeLibPath64)
ws.on('error', cb)
req.pipe(ws)
})

@@ -294,0 +300,0 @@ }

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

@@ -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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc