@pm2/agent
Advanced tools
Comparing version 0.5.12 to 0.5.13
@@ -75,2 +75,4 @@ /** | ||
ENABLE_CONTEXT_ON_ERROR: useIfDefined(process.env.PM2_AGENT_ENABLE_CONTEXT_ON_ERROR, true), | ||
SUCCESS_EXIT: 0, | ||
@@ -77,0 +79,0 @@ ERROR_EXIT: 1 |
{ | ||
"name": "@pm2/agent", | ||
"version": "0.5.12", | ||
"version": "0.5.13", | ||
"description": "PM2.io Agent Daemon", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -104,3 +104,3 @@ | ||
// attach additional info for exception | ||
if (event === 'process:exception') { | ||
if (event === 'process:exception' && cst.ENABLE_CONTEXT_ON_ERROR === true) { | ||
packet.data.last_logs = this.log_buffer[packet.process.name] | ||
@@ -107,0 +107,0 @@ packet.data = this._stackParser.attachContext(packet.data) |
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
231305
3488
83