logagent-js
Advanced tools
Comparing version 1.1.56 to 1.1.57
@@ -208,10 +208,13 @@ #!/bin/sh | ||
if (data) { | ||
parseLine(data.message, data.app || 'undefined', function (e, d) { | ||
if (d) { | ||
Object.keys(d).forEach(function (key) { | ||
data[key] = d[key] | ||
}) | ||
} | ||
if (process.env.ENABLE_MESSAGE_PARSER !== 'true') { | ||
getLoggerForToken(token, 'heroku')(err, data) | ||
}) | ||
} else { | ||
parseLine(data.message, data.app || 'undefined', function (e, d) { | ||
if (d) { | ||
data.message=d.message | ||
data.parsed_message = d | ||
} | ||
getLoggerForToken(token, 'heroku')(err, data) | ||
}) | ||
} | ||
} | ||
@@ -271,10 +274,13 @@ }) | ||
if (data) { | ||
parseLine(data.message, 'undefined', function (e, d) { | ||
if (d) { | ||
Object.keys(d).forEach(function (key) { | ||
data[key] = d[key] | ||
}) | ||
} | ||
if (process.env.ENABLE_MESSAGE_PARSER !== 'true') { | ||
getLoggerForToken(token, 'cloudfoundry')(err, data) | ||
}) | ||
} else { | ||
parseLine(data.message, data.app || 'undefined', function (e, d) { | ||
if (d) { | ||
data.message=d.message | ||
data.parsed_message = d | ||
} | ||
getLoggerForToken(token, 'cloudfoundry')(err, data) | ||
}) | ||
} | ||
} | ||
@@ -281,0 +287,0 @@ }) |
{ | ||
"name": "logagent-js", | ||
"version": "1.1.56", | ||
"version": "1.1.57", | ||
"description": "Smart log parser written in Node", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
1088381
3680
30