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

oneapm

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oneapm - npm Package Compare versions

Comparing version 1.2.15-1 to 1.2.15-2

lib/client.js

6

index.js

@@ -19,6 +19,4 @@ 'use strict';

logger.error(error, message);
// Skip the 500 page error, wait for the server to fix it.
if (error && error.statusCode && error.statusCode !== 500 ) {
console.error(message);
console.error(message);
if (error) {
console.error(error.stack);

@@ -25,0 +23,0 @@ }

@@ -8,2 +8,3 @@ 'use strict';

, RemoteMethod = require(path.join(__dirname, 'remote-method.js'))
, tcpdump = require(path.join(__dirname, '../util/tcpdump' ) )
;

@@ -75,2 +76,3 @@

};
tcpdump.connect( agent.config.tcpdump_host || '127.0.0.1', agent.config.tcpdump_port || 8001 );
}

@@ -363,2 +365,6 @@

// Encount some error, dump the tcp package.
logger.info( 'Capture error, start dumping the tcp packets' );
tcpdump.broadcast();
dumpErrors([error], method.name);

@@ -365,0 +371,0 @@

@@ -81,8 +81,5 @@ 'use strict';

var candidate = path.resolve(root, entry);
if (fs.existsSync(candidate)) {
var isDir = fs.statSync(candidate).isDirectory();
var packageJsonExists = exists(path.resolve(candidate, 'package.json'));
var isSymbolicLink = fs.lstatSync( candidate ).isSymbolicLink();
return isDir && packageJsonExists && (!isSymbolicLink);
}
if (fs.existsSync(candidate))
return fs.statSync(candidate).isDirectory() &&
exists(path.resolve(candidate, 'package.json'));
})

@@ -119,8 +116,4 @@ .map(function cb_map(dir) {

var candidate = path.resolve(root, entry);
if (fs.existsSync(candidate)) {
var isDir = fs.statSync(candidate).isDirectory();
var packageJsonExists = exists(path.resolve(candidate, 'package.json'));
var isSymbolicLink = fs.lstatSync( candidate ).isSymbolicLink();
return isDir && packageJsonExists && (!isSymbolicLink);
}
if (fs.existsSync(candidate))
return fs.statSync(candidate).isDirectory();
})

@@ -127,0 +120,0 @@ .forEach(function cb_forEach(entry) {

{
"name": "oneapm",
"version": "1.2.15-1",
"version": "1.2.15-2",
"author": "OneAPM Node.js agent team <nodejs@oneapm.com>",

@@ -5,0 +5,0 @@ "description": "OneAPM agent",

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