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 4a657b5 commit 6eb2b55Copy full SHA for 6eb2b55
src/logger/index.ts
@@ -17,7 +17,7 @@ const redactedFormat = format((info) => {
17
info.password = '******';
18
}
19
20
- if (typeof info['email'] !== 'undefined') {
+ if (typeof info['email'] !== 'undefined' && typeof info['email'] === 'string') {
21
const [ name, domain ] = info.email.split('@');
22
info.email = `${name.substring(0, 2)}${'*'.repeat(name.length - 2)}@${'*'.repeat(domain.length - 2)}${domain.substring(domain.length - 2)}`;
23
0 commit comments