We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305d74b commit 39c699eCopy full SHA for 39c699e
network/index.js
@@ -46,15 +46,15 @@ function normalizeConfig (config) {
46
}
47
48
if (Array.isArray(config)) {
49
- return config.map(fixConfig)
+ return config.map(normalizeConfig)
50
51
52
const parsed = {}
53
54
for (let [key, value] of Object.entries(config)) {
55
if (key === 'callbackState') key = 'State'
56
if (key === 'ip') key = 'IP'
57
- parsed[key.charAt(0).toUpperCase() + key.slice(1)] = fixConfig(value)
+ parsed[key.charAt(0).toUpperCase() + key.slice(1)] = normalizeConfig(value)
58
59
60
return parsed
0 commit comments