@optionfactory/ful 1.0.11 → 1.0.12

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.
package/dist/ful.mjs CHANGED
@@ -1148,7 +1148,7 @@ class Bindings {
1148
1148
  static flatten(obj, prefix, stops) {
1149
1149
  return Object.keys(obj).reduce((acc, k) => {
1150
1150
  const pre = prefix.length ? prefix + '.' + k : k;
1151
- if (!stops.has(prefix) && typeof obj[k] === 'object' && obj[k] !== null) {
1151
+ if (!stops.has(pre) && typeof obj[k] === 'object' && obj[k] !== null) {
1152
1152
  Object.assign(acc, Bindings.flatten(obj[k], pre, stops));
1153
1153
  } else {
1154
1154
  acc[pre] = obj[k];