@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsnw/srv-utils",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Server-side utilities for Node.js/TypeScript: tsconfig paths, Nest helpers, and config loading.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",