pino-logflare
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -19,2 +19,3 @@ "use strict"; | ||
var lodash_1 = __importDefault(require("lodash")); | ||
var lodash_2 = require("lodash"); | ||
function levelToStatus(level) { | ||
@@ -39,3 +40,5 @@ if (level === 10 || level === 20) { | ||
var timestamp = ts; | ||
var logEntry = messages.join(" "); | ||
var objMessages = lodash_1.default.filter(messages, lodash_2.isObject); | ||
var strMessages = lodash_1.default.filter(messages, lodash_2.isString); | ||
var logEntry = strMessages.join(" "); | ||
var defaultMetadata = { | ||
@@ -46,3 +49,4 @@ url: window.document.URL, | ||
}; | ||
var metadata = lodash_1.default.reduce(bindings, function (acc, el) { | ||
var bindingsAndMessages = bindings.concat(objMessages); | ||
var metadata = lodash_1.default.reduce(bindingsAndMessages, function (acc, el) { | ||
return Object.assign(acc, el); | ||
@@ -49,0 +53,0 @@ }, defaultMetadata); |
{ | ||
"name": "pino-logflare", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "A transport for Pino that sends messages to Logflare", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/logflare/pino-logflare", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
25364
343