@lowdefy/logger 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ import { serializer } from '@lowdefy/helpers';
|
|
15
|
+
*/ import { serializer, type } from '@lowdefy/helpers';
|
|
16
16
|
// Map pino numeric levels to level names
|
|
17
17
|
const pinoLevelToName = {
|
|
18
18
|
10: 'debug',
|
|
@@ -29,6 +29,9 @@ function createStdOutLineHandler({ context }) {
|
|
|
29
29
|
try {
|
|
30
30
|
parsed = JSON.parse(line);
|
|
31
31
|
} catch {
|
|
32
|
+
// Not valid JSON — fall through
|
|
33
|
+
}
|
|
34
|
+
if (!type.isObject(parsed)) {
|
|
32
35
|
logger.info(line);
|
|
33
36
|
return;
|
|
34
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/logger",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Lowdefy logging utilities for node, cli, and browser",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dist/*"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@lowdefy/errors": "5.
|
|
41
|
-
"@lowdefy/helpers": "5.
|
|
40
|
+
"@lowdefy/errors": "5.2.0",
|
|
41
|
+
"@lowdefy/helpers": "5.2.0",
|
|
42
42
|
"ora": "7.0.1",
|
|
43
43
|
"pino": "8.16.2"
|
|
44
44
|
},
|