Comparing version 1.1.2 to 1.1.3
@@ -5,4 +5,4 @@ if (process.platform === 'darwin') { | ||
var options = {stdio: 'inherit'}; | ||
var child = spawn('node-pre-gyp', args, options); | ||
var child = spawn(require.resolve('node-pre-gyp/bin/node-pre-gyp'), args, options); | ||
child.on('close', process.exit); | ||
} | ||
} |
# node-pre-gyp changelog | ||
## 0.6.39 | ||
- Support for node v9 | ||
- Support for versioning on `{libc}` to allow binaries to work on non-glic linux systems like alpine linux | ||
## 0.6.38 | ||
- Maintaining compatibility (for v0.6.x series) with node v0.10.x | ||
## 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 +22,0 @@ |
@@ -136,3 +136,3 @@ "use strict"; | ||
var full_message = "Pre-built binaries not found for " + package_json.name + "@" + package_json.version; | ||
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI)"; | ||
full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI, " + opts.libc + ")"; | ||
full_message += fallback_message; | ||
@@ -139,0 +139,0 @@ log.error("Tried to download(" + err.statusCode + "): " + opts.hosted_tarball); |
@@ -1250,2 +1250,6 @@ { | ||
}, | ||
"4.8.4": { | ||
"node_abi": 46, | ||
"v8": "4.5" | ||
}, | ||
"5.0.0": { | ||
@@ -1419,2 +1423,26 @@ "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" | ||
}, | ||
"6.11.4": { | ||
"node_abi": 48, | ||
"v8": "5.1" | ||
}, | ||
"6.11.5": { | ||
"node_abi": 48, | ||
"v8": "5.1" | ||
}, | ||
"7.0.0": { | ||
@@ -1484,6 +1512,70 @@ "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" | ||
}, | ||
"8.5.0": { | ||
"node_abi": 57, | ||
"v8": "6.0" | ||
}, | ||
"8.6.0": { | ||
"node_abi": 57, | ||
"v8": "6.0" | ||
}, | ||
"8.7.0": { | ||
"node_abi": 57, | ||
"v8": "6.1" | ||
}, | ||
"8.8.0": { | ||
"node_abi": 57, | ||
"v8": "6.1" | ||
}, | ||
"8.9.0": { | ||
"node_abi": 57, | ||
"v8": "6.1" | ||
}, | ||
"9.0.0": { | ||
"node_abi": 59, | ||
"v8": "6.2" | ||
} | ||
} |
@@ -8,2 +8,3 @@ "use strict"; | ||
var url = require('url'); | ||
var detect_libc = require('detect-libc'); | ||
@@ -21,2 +22,10 @@ var abi_crosswalk; | ||
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) { | ||
@@ -141,2 +150,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 | ||
@@ -286,2 +302,3 @@ if (target_parts[1] % 2 === 0) { // for stable/even node.js series | ||
target_arch: options.target_arch || process.arch, | ||
libc: options.target_libc || detect_libc.family || 'unknown', | ||
module_main: package_json.main, | ||
@@ -288,0 +305,0 @@ toolset : options.toolset || '' // address https://github.com/mapbox/node-pre-gyp/issues/119 |
{ | ||
"_from": "node-pre-gyp@^0.6.36", | ||
"_id": "node-pre-gyp@0.6.36", | ||
"_from": "node-pre-gyp@^0.6.39", | ||
"_id": "node-pre-gyp@0.6.39", | ||
"_inBundle": false, | ||
"_integrity": "sha1-22BBEst04NR3VU6bUFsXq936t4Y=", | ||
"_integrity": "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==", | ||
"_location": "/node-pre-gyp", | ||
@@ -11,16 +11,15 @@ "_phantomChildren": {}, | ||
"registry": true, | ||
"raw": "node-pre-gyp@^0.6.36", | ||
"raw": "node-pre-gyp@^0.6.39", | ||
"name": "node-pre-gyp", | ||
"escapedName": "node-pre-gyp", | ||
"rawSpec": "^0.6.36", | ||
"rawSpec": "^0.6.39", | ||
"saveSpec": null, | ||
"fetchSpec": "^0.6.36" | ||
"fetchSpec": "^0.6.39" | ||
}, | ||
"_requiredBy": [ | ||
"#USER", | ||
"/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz", | ||
"_shasum": "db604112cb74e0d477554e9b505b17abddfab786", | ||
"_spec": "node-pre-gyp@^0.6.36", | ||
"_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz", | ||
"_shasum": "c00e96860b23c0e1420ac7befc5044e1d78d8649", | ||
"_spec": "node-pre-gyp@^0.6.39", | ||
"_where": "/Users/eshanker/Code/fsevents", | ||
@@ -39,2 +38,4 @@ "author": { | ||
"dependencies": { | ||
"detect-libc": "^1.0.2", | ||
"hawk": "3.1.3", | ||
"mkdirp": "^0.5.1", | ||
@@ -44,3 +45,3 @@ "nopt": "^4.0.1", | ||
"rc": "^1.1.7", | ||
"request": "^2.81.0", | ||
"request": "2.81.0", | ||
"rimraf": "^2.6.1", | ||
@@ -56,4 +57,4 @@ "semver": "^5.3.0", | ||
"jshint": "^2.9.4", | ||
"mocha": "^3.2.0", | ||
"retire": "^1.2.12" | ||
"retire": "^1.2.12", | ||
"tape": "^4.6.3" | ||
}, | ||
@@ -65,5 +66,4 @@ "homepage": "https://github.com/mapbox/node-pre-gyp#readme", | ||
"undef": true, | ||
"unused": true, | ||
"noarg": true, | ||
"mocha": true | ||
"unused": false, | ||
"noarg": true | ||
}, | ||
@@ -87,7 +87,7 @@ "keywords": [ | ||
"scripts": { | ||
"pretest": "retire -n && jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js", | ||
"test": "jshint lib lib/util scripts bin/node-pre-gyp && mocha -R spec --timeout 500000", | ||
"pretest": "jshint test/build.test.js test/s3_setup.test.js test/versioning.test.js lib lib/util scripts bin/node-pre-gyp", | ||
"test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js", | ||
"update-crosswalk": "node scripts/abi_crosswalk.js" | ||
}, | ||
"version": "0.6.36" | ||
"version": "0.6.39" | ||
} |
@@ -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. | ||
@@ -566,2 +566,3 @@ - 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. | ||
- `arch` matches node's `process.arch` like `x64` or `ia32` unless the user passes the `--target_arch` option to override. | ||
- `libc` matches `require('detect-libc').family` like `glibc` or `musl` unless the user passes the `--target_libc` option to override. | ||
- `configuration` - Either 'Release' or 'Debug' depending on if `--debug` is passed during the build. | ||
@@ -568,0 +569,0 @@ - `module_name` - the `binary.module_name` attribute from `package.json`. |
{ | ||
"name": "fsevents", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Native Access to Mac OS-X FSEvents", | ||
@@ -8,3 +8,3 @@ "main": "fsevents.js", | ||
"nan": "^2.3.0", | ||
"node-pre-gyp": "^0.6.36" | ||
"node-pre-gyp": "^0.6.39" | ||
}, | ||
@@ -11,0 +11,0 @@ "os": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6689206
1140
88779
281
46
Updatednode-pre-gyp@^0.6.39