We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5acb3c commit d2402afCopy full SHA for d2402af
src/consola.js
@@ -73,9 +73,7 @@ export default class Consola {
73
}
74
} else {
75
// [obj]
76
- if (typeof arg1 === 'object') {
77
- assignToLogObj(logObj, arg1)
78
- }
+ assignToLogObj(logObj, arg1)
79
80
81
// Log
src/utils.js
@@ -4,6 +4,9 @@ const VALID_LOGOBJ_KEYS = [
4
]
5
6
export function assignToLogObj (logObj, obj) {
7
+ if (typeof obj !== 'object') {
8
+ return
9
+ }
10
for (const key of VALID_LOGOBJ_KEYS) {
11
const val = obj[key]
12
if (typeof val !== 'undefined') {
0 commit comments