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

node-pre-gyp

Package Overview
Dependencies
Maintainers
5
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pre-gyp - npm Package Compare versions

Comparing version 0.6.31 to 0.6.32

7

CHANGELOG.md
# node-pre-gyp changelog
## 0.6.32
- Honor npm configuration for CA bundles (@heikkipora)
- Add node-pre-gyp and npm versions to user agent (@addaleax)
- Updated various deps
- Add known node version for v7.x
## 0.6.31

@@ -4,0 +11,0 @@

28

lib/install.js

@@ -16,2 +16,9 @@ "use strict";

var npgVersion = 'unknown';
try {
// Read own package.json to get the current node-pre-pyp version.
var ownPackageJSON = fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8');
npgVersion = JSON.parse(ownPackageJSON).version;
} catch (e) {}
function download(uri,opts,callback) {

@@ -21,9 +28,24 @@ log.http('GET', uri);

var req = null;
// Try getting version info from the currently running npm.
var envVersionInfo = process.env.npm_config_user_agent ||
'node ' + process.version;
var requestOpts = {
uri: uri.replace('+','%2B'),
headers: {
'User-Agent': 'node-pre-gyp (node ' + process.version + ')'
'User-Agent': 'node-pre-gyp (v' + npgVersion + ', ' + envVersionInfo + ')'
}
};
if (opts.cafile) {
try {
requestOpts.ca = fs.readFileSync(opts.cafile);
} catch (e) {
return callback(e);
}
} else if (opts.ca) {
requestOpts.ca = opts.ca;
}
var proxyUrl = opts.proxy ||

@@ -152,2 +174,6 @@ process.env.http_proxy ||

}
opts.ca = gyp.opts.ca;
opts.cafile = gyp.opts.cafile;
var from = opts.hosted_tarball;

@@ -154,0 +180,0 @@ var to = opts.module_path;

@@ -16,2 +16,4 @@ "use strict";

var log = require('npmlog');
log.disableProgress();
var EE = require('events').EventEmitter;

@@ -18,0 +20,0 @@ var inherits = require('util').inherits;

@@ -1210,2 +1210,6 @@ {

},
"4.6.2": {
"node_abi": 46,
"v8": "4.5"
},
"5.0.0": {

@@ -1346,3 +1350,15 @@ "node_abi": 47,

"v8": "5.1"
},
"7.0.0": {
"node_abi": 51,
"v8": "5.4"
},
"7.1.0": {
"node_abi": 51,
"v8": "5.4"
},
"7.2.0": {
"node_abi": 51,
"v8": "5.4"
}
}

14

package.json
{
"name": "node-pre-gyp",
"description": "Node.js native addon binary install tool",
"version" : "0.6.31",
"version" : "0.6.32",
"keywords": [

@@ -25,5 +25,5 @@ "native",

"nopt": "~3.0.6",
"npmlog": "^4.0.0",
"npmlog": "^4.0.1",
"rc": "~1.1.6",
"request": "^2.75.0",
"request": "^2.79.0",
"rimraf": "~2.5.4",

@@ -35,6 +35,6 @@ "semver": "~5.3.0",

"devDependencies": {
"aws-sdk": "2.x",
"mocha": "3.x",
"retire": "1.2.10",
"jshint": "2.x"
"aws-sdk": "^2.7.7",
"mocha": "^3.2.0",
"retire": "^1.2.10",
"jshint": "^2.9.4"
},

@@ -41,0 +41,0 @@ "jshintConfig": {

Sorry, the diff of this file is not supported yet

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