@platformatic/utils
Advanced tools
Comparing version 2.35.1 to 2.36.1
@@ -12,5 +12,6 @@ 'use strict' | ||
#hadOutput | ||
#caller | ||
constructor (options) { | ||
const { pino, level, ignoreEmpty, ...opts } = options | ||
const { pino, level, ignoreEmpty, caller, ...opts } = options | ||
@@ -21,2 +22,3 @@ super({ ...opts, decodeStrings: false }) | ||
this.#hadOutput = false | ||
this.#caller = caller | ||
} | ||
@@ -36,3 +38,3 @@ | ||
this.#write({ raw }) | ||
this.#write({ raw, caller: this.#caller }) | ||
callback() | ||
@@ -48,4 +50,4 @@ } | ||
function createPinoWritable (pino, level, ignoreEmpty) { | ||
const writable = new PinoWritable({ pino, level, ignoreEmpty }) | ||
function createPinoWritable (pino, level, ignoreEmpty = false, caller = undefined) { | ||
const writable = new PinoWritable({ pino, level, ignoreEmpty, caller }) | ||
writable.write = writable.write.bind(writable) | ||
@@ -52,0 +54,0 @@ return writable |
{ | ||
"name": "@platformatic/utils", | ||
"version": "2.35.1", | ||
"version": "2.36.1", | ||
"description": "Platformatic Utils", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"semver": "^7.6.3", | ||
"undici": "7.2.0" | ||
"undici": "7.2.1" | ||
}, | ||
@@ -37,0 +37,0 @@ "scripts": { |
45358
1130
+ Addedundici@7.2.1(transitive)
- Removedundici@7.2.0(transitive)
Updatedundici@7.2.1