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

newrelic

Package Overview
Dependencies
Maintainers
1
Versions
383
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

newrelic - npm Package Compare versions

Comparing version 0.9.6-70 to 0.9.6-72

41

lib/environment.js

@@ -44,10 +44,10 @@ 'use strict';

.filter(function (entry) {
var candidate = path.join(root, entry);
var candidate = path.resolve(root, entry);
return fs.statSync(candidate).isDirectory() &&
exists(path.join(candidate, 'package.json'));
exists(path.resolve(candidate, 'package.json'));
})
.map(function (dir) {
var pck = path.join(root, dir, 'package.json');
var pck = path.resolve(root, dir, 'package.json');
var version = require(pck).version || '<unknown>';
return [dir, require(pck).version];
return [dir, version];
});

@@ -70,7 +70,7 @@ }

.filter(function (entry) {
var candidate = path.join(root, entry);
var candidate = path.resolve(root, entry);
return fs.statSync(candidate).isDirectory();
})
.forEach(function (entry) {
var candidate = path.join(root, entry, 'node_modules');
var candidate = path.resolve(root, entry, 'node_modules');
if (exists(candidate)) {

@@ -100,3 +100,3 @@ children = children.concat(listPackages(candidate));

while (candidate) {
var root = path.join(candidate, 'node_modules');
var root = path.resolve(candidate, 'node_modules');
packages = packages.concat(listPackages(root));

@@ -149,3 +149,3 @@ dependencies = dependencies.concat(listDependencies(root));

if (prefix) {
var root = path.join(prefix, 'lib', 'node_modules');
var root = path.resolve(prefix, 'lib', 'node_modules');
return getPackages(root);

@@ -219,10 +219,19 @@ }

, all = getGlobalPackages()
, home = getPackages(path.join(process.env.HOME, '.node_modules'))
, homeOld = getPackages(path.join(process.env.HOME, '.node_libraries'))
, home
, homeOld
, other = {packages : [], dependencies : []}
;
if (process.platform === 'win32') {
home = getPackages(path.resolve(process.env.USERDIR, '.node_modules'));
homeOld = getPackages(path.resolve(process.env.USERDIR, '.node_libraries'));
}
else {
home = getPackages(path.resolve(process.env.HOME, '.node_modules'));
homeOld = getPackages(path.resolve(process.env.HOME, '.node_libraries'));
}
if (process.env.NODE_PATH) {
var paths;
if (os.type() === 'Windows') { // why. WHY.
if (process.platform === 'win32') { // why. WHY.
paths = process.env.NODE_PATH.split(';');

@@ -235,2 +244,3 @@ }

paths.forEach(function (nodePath) {
if (nodePath[0] !== '/') nodePath = path.resolve(process.cwd(), nodePath);
var nextSet = getPackages(nodePath);

@@ -264,6 +274,7 @@ other.packages = other.packages.concat(nextSet.packages);

addSetting('Processors', os.cpus().length);
addSetting('OS', os.type());
addSetting('OS version', os.release());
addSetting('Architecture', process.arch);
addSetting('Processors', os.cpus().length);
addSetting('OS', os.type());
addSetting('OS version', os.release());
addSetting('Node.js version', process.version);
addSetting('Architecture', process.arch);

@@ -270,0 +281,0 @@ remapConfigSettings();

{
"name": "newrelic",
"version": "0.9.6-70",
"version": "0.9.6-72",
"author": "New Relic Node.js agent team <nodejs@newrelic.com>",

@@ -5,0 +5,0 @@ "contributors": [

@@ -47,2 +47,38 @@ 'use strict';

it("should know the Node.js version", function () {
should.exist(find(settings, 'Node.js version'));
});
it("should know whether npm was installed with Node.js", function () {
should.exist(find(settings, 'npm installed?'));
});
it("should know whether WAF was installed with Node.js", function () {
should.exist(find(settings, 'WAF build system installed?'));
});
it("should know whether OpenSSL support was compiled into Node.js", function () {
should.exist(find(settings, 'OpenSSL support?'));
});
it("should know whether OpenSSL was dynamically linked in", function () {
should.exist(find(settings, 'Dynamically linked to OpenSSL?'));
});
it("should know whether V8 was dynamically linked in", function () {
should.exist(find(settings, 'Dynamically linked to V8?'));
});
it("should know whether Zlib was dynamically linked in", function () {
should.exist(find(settings, 'Dynamically linked to Zlib?'));
});
it("should know whether DTrace support was configured", function () {
should.exist(find(settings, 'DTrace support?'));
});
it("should know whether Event Tracing for Windows was configured", function () {
should.exist(find(settings, 'Event Tracing for Windows (ETW) support?'));
});
it("should have built a flattened package list", function () {

@@ -49,0 +85,0 @@ expect(find(settings, 'Packages').length).above(5);

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