@jsnw/srv-utils 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,10 +139,12 @@ class ConfigLoader {
|
|
|
139
139
|
else {
|
|
140
140
|
if (typeof node[field] === 'string' && /^\s*\$[A-Z0-9_]+$/.test(node[field]))
|
|
141
141
|
node[field] = process.env?.[node[field].trim().slice(1)] ?? '';
|
|
142
|
-
if (typeof node[field] === 'object' && !Array.isArray(node[field]))
|
|
143
|
-
nodesToVisit.push(node[field]);
|
|
144
142
|
}
|
|
145
143
|
}
|
|
144
|
+
for (const k of Object.keys(node)) {
|
|
145
|
+
if (Object.hasOwn(node, k) && typeof node[k] === 'object' && !Array.isArray(node[k]))
|
|
146
|
+
nodesToVisit.push(node[k]);
|
|
147
|
+
}
|
|
146
148
|
}
|
|
147
149
|
return [yaml, errors];
|
|
148
150
|
}
|
package/package.json
CHANGED