loglevel-mixin
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -154,10 +154,11 @@ /* jslint node: true, esnext: true */ | ||
return Object.assign(logevent, args); | ||
} else if (arg instanceof Error) { | ||
if (arg.stack) { | ||
} else { | ||
if (arg instanceof Error && arg.stack) { | ||
logevent.stack = arg.stack.split(/\n/).map(l => l.trim()); | ||
} else if (arg.error instanceof Error && arg.error.stack) { | ||
logevent.stack = arg.error.stack.split(/\n/).map(l => l.trim()); | ||
} | ||
return Object.assign(logevent, arg, args); | ||
} else { | ||
return Object.assign(logevent, arg, args); | ||
} | ||
}; |
@@ -42,3 +42,3 @@ { | ||
}, | ||
"version": "1.3.1" | ||
"version": "1.4.0" | ||
} |
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
17363