Comparing version 1.2.15-1 to 1.2.15-2
@@ -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", |
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
340129
73
9170
156
11