Socket
Socket
Sign inDemoInstall

node-pre-gyp

Package Overview
Dependencies
Maintainers
4
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.36 to 0.6.37

8

CHANGELOG.md
# node-pre-gyp changelog
## 0.6.37
- Solved one part of #276: now now deduce the node ABI from the major version for node >= 2 even when not stored in the abi_crosswalk.json
- Fixed docs to avoid mentioning the deprecated and dangerous `prepublish` in package.json (#291)
- Add new node versions to crosswalk
- Ported tests to use tape instead of mocha
- Got appveyor tests passing by downgrading npm and node-gyp
## 0.6.36

@@ -4,0 +12,0 @@

@@ -1250,2 +1250,6 @@ {

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

@@ -1419,2 +1423,18 @@ "node_abi": 47,

},
"6.11.0": {
"node_abi": 48,
"v8": "5.1"
},
"6.11.1": {
"node_abi": 48,
"v8": "5.1"
},
"6.11.2": {
"node_abi": 48,
"v8": "5.1"
},
"6.11.3": {
"node_abi": 48,
"v8": "5.1"
},
"7.0.0": {

@@ -1484,6 +1504,46 @@ "node_abi": 51,

},
"7.10.1": {
"node_abi": 51,
"v8": "5.5"
},
"8.0.0": {
"node_abi": 57,
"v8": "5.8"
},
"8.1.0": {
"node_abi": 57,
"v8": "5.8"
},
"8.1.1": {
"node_abi": 57,
"v8": "5.8"
},
"8.1.2": {
"node_abi": 57,
"v8": "5.8"
},
"8.1.3": {
"node_abi": 57,
"v8": "5.8"
},
"8.1.4": {
"node_abi": 57,
"v8": "5.8"
},
"8.2.0": {
"node_abi": 57,
"v8": "5.8"
},
"8.2.1": {
"node_abi": 57,
"v8": "5.8"
},
"8.3.0": {
"node_abi": 57,
"v8": "6.0"
},
"8.4.0": {
"node_abi": 57,
"v8": "6.0"
}
}

@@ -20,2 +20,10 @@ "use strict";

var major_versions = {};
Object.keys(abi_crosswalk).forEach(function(v) {
var major = v.split('.')[0];
if (!major_versions[major]) {
major_versions[major] = v;
}
});
function get_electron_abi(runtime, target_version) {

@@ -140,2 +148,9 @@ if (!runtime) {

}
} else if (major >= 2) {
// look for last release that is the same major version
if (major_versions[major]) {
cross_obj = abi_crosswalk[major_versions[major]];
console.log('Warning: node-pre-gyp could not find exact match for ' + target_version);
console.log('Warning: but node-pre-gyp successfully choose ' + major_versions[major] + ' as ABI compatible target');
}
} else if (major === 0) { // node.js

@@ -142,0 +157,0 @@ if (target_parts[1] % 2 === 0) { // for stable/even node.js series

13

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

@@ -30,2 +30,3 @@ "native",

"semver": "^5.3.0",
"tape": "^4.6.3",
"tar": "^2.2.1",

@@ -36,3 +37,2 @@ "tar-pack": "^3.4.0"

"aws-sdk": "^2.28.0",
"mocha": "^3.2.0",
"retire": "^1.2.12",

@@ -45,11 +45,10 @@ "jshint": "^2.9.4"

"undef": true,
"unused": true,
"noarg": true,
"mocha": true
"unused": false,
"noarg": true
},
"scripts": {
"pretest": "retire -n && jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js",
"pretest": "jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js",
"update-crosswalk": "node scripts/abi_crosswalk.js",
"test": "jshint lib lib/util scripts bin/node-pre-gyp && mocha -R spec --timeout 500000"
"test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js"
}
}

@@ -127,3 +127,3 @@ # node-pre-gyp

- You should add `"bundledDependencies":["node-pre-gyp"]`. This ensures that when you publish your module that the correct version of node-pre-gyp will be included in the `node_modules` folder during publishing. Then when uses install your module `node-pre-gyp` will already be present. Without this your module will not be safely installable for downstream applications that have a depedency on node-pre-gyp in the npm tree (without bundling npm deduping might break the install when node-pre-gyp is moved in flight)
- Your `scripts` section should optionally add `"prepublish": "npm ls"` to ensure the right node-pre-gyp version is bundled before publishing your module. If node-pre-gyp is missing or an old version is present then this will catch that error before you publish a broken package.
- Your `scripts` section should optionally add `"prepublishOnly": "npm ls"` to ensure the right node-pre-gyp version is bundled before publishing your module. If node-pre-gyp is missing or an old version is present then this will catch that error before you publish a broken package.
- Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly.

@@ -130,0 +130,0 @@ - Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below.

Sorry, the diff of this file is not supported yet

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