dtrace-provider
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -6,2 +6,5 @@ dtrace-provider - Changes | ||
* 0.8.3: | ||
Install fails with yarn | ||
* 0.8.2: | ||
@@ -8,0 +11,0 @@ Error installing in 64-bit SmartOS zones with 32-bit node |
{ | ||
"name": "dtrace-provider", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Native DTrace providers for node.js applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -155,5 +155,16 @@ # dtrace-provider - Native DTrace providers for Node.js apps. | ||
FreeBSD is supported in principle but is restricted to only 4 working | ||
arguments per probe. | ||
When using Mac OS X, be aware that as of 10.11 (El Capitan), DTrace use | ||
is restricted, and you'll probably want to | ||
[disable SIP](http://internals.exposed/blog/dtrace-vs-sip.html) to | ||
effectively use DTrace. | ||
FreeBSD 10 and 11 are also supported, but you'll need to make sure that | ||
you have the DTrace headers installed in `/usr/src` otherwise libusdt | ||
won't be able to compile. You can | ||
[clone them using SVN](https://www.freebsd.org/doc/handbook/svn.html), | ||
or find the correct `src.txz` | ||
[here](http://ftp.freebsd.org/pub/FreeBSD/releases/) and extract that. | ||
Also note that FreeBSD 10 is restricted to only 4 working arguments per | ||
probe. | ||
Platforms not supporting DTrace (notably, Linux and Windows) may | ||
@@ -165,3 +176,3 @@ install this module without building libusdt, with a stub no-op | ||
GNU Make is required to build libusdt; the build scripts will look for | ||
gmake in PATH first, and then for make. | ||
gmake in `PATH` first, and then for make. | ||
@@ -168,0 +179,0 @@ ## CAVEATS |
@@ -18,24 +18,2 @@ #!/usr/bin/env node | ||
//npm_execpath: '/usr/local/lib/node_modules/npm/bin/npm-cli.js', | ||
var nodegyp = path.join(process.env.npm_execpath, | ||
'..', | ||
'node-gyp-bin', | ||
'node-gyp'); | ||
if (!fs.existsSync(nodegyp)) | ||
nodegyp = path.join(process.execPath, | ||
'..', | ||
'..', | ||
'lib', | ||
'node_modules', | ||
'npm', | ||
'bin', | ||
'node-gyp-bin', | ||
'node-gyp'); | ||
if (!fs.existsSync(nodegyp)) { | ||
console.error('cannot locate npm install'); | ||
return; | ||
} | ||
var spawn = require('child_process').spawn; | ||
@@ -45,4 +23,5 @@ | ||
if (process.env.V) | ||
if (process.env.V) { | ||
stdio = 'inherit'; | ||
} | ||
@@ -54,4 +33,14 @@ var options = { | ||
var child = spawn(nodegyp, ['rebuild'], options); | ||
var child = spawn('node-gyp', [ 'rebuild' ], options); | ||
child.on('error', function (err) { | ||
if (err.code === 'ENOENT') { | ||
console.error('cannot locate node-gyp'); | ||
} else { | ||
console.error(err); | ||
} | ||
process.exit(0); | ||
}); | ||
child.on('close', function(code, signal) { | ||
@@ -58,0 +47,0 @@ if ((code || signal) && process.env.V === undefined) { |
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
112201
206
6
789