Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 20 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { sanitizePasswords, simpleSanitizer } from './utils/sanitizers'; |
||
2 | |||
3 | function defaultDataSanitizer(data) { |
||
4 | return simpleSanitizer(sanitizePasswords(data)); |
||
5 | } |
||
6 | |||
7 | const defaultLevel = 'info'; |
||
8 | const defaultErrorLevel = 'error'; |
||
9 | |||
10 | const defaultMethodNameFilter = name => name !== 'constructor' && name.indexOf('_') !== 0; |
||
11 | |||
12 | export default { |
||
13 | level : defaultLevel, |
||
14 | errorLevel : defaultErrorLevel, |
||
15 | paramsSanitizer : defaultDataSanitizer, |
||
16 | resultSanitizer : defaultDataSanitizer, |
||
17 | errorSanitizer : simpleSanitizer, |
||
18 | methodNameFilter : defaultMethodNameFilter, |
||
19 | logger : console |
||
20 | }; |
||
21 | |||
22 |