node-gyp-build-optional-packages
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -10,3 +10,6 @@ #!/usr/bin/env node | ||
if (err) { | ||
if (verbose()) console.error(stderr) | ||
console.error(stderr) | ||
console.error('The failure above indicates the primary issue with the native builds which are included for all' + | ||
' major platforms. Will now attempt to build the package locally in case this can be resolved by' + | ||
' re-compiling.') | ||
preinstall() | ||
@@ -64,5 +67,2 @@ } | ||
function verbose () { | ||
return hasFlag('--verbose') || process.env.npm_config_loglevel === 'verbose' | ||
} | ||
@@ -69,0 +69,0 @@ // TODO (next major): remove in favor of env.npm_config_* which works since npm |
@@ -34,3 +34,3 @@ var fs = require('fs') | ||
dir = path.resolve(dir || '.') | ||
var packageName | ||
var packageName = '' | ||
try { | ||
@@ -78,3 +78,4 @@ // explanation above | ||
throw new Error('No native build was found for ' + target + '\n loaded from: ' + dir + ' and package: ' + platformPackage + '\n') | ||
throw new Error('No native build was found for ' + target + '\n attempted loading from: ' + dir + ' and package:' + | ||
' ' + platformPackage + '\n') | ||
@@ -81,0 +82,0 @@ function resolve (dir) { |
{ | ||
"name": "node-gyp-build-optional-packages", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Build tool and bindings loader for node-gyp that supports prebuilds", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
13925
275
18