@optionfactory/ful 1.0.10 → 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.iife.js +2 -2
- package/dist/ful.iife.js.map +1 -1
- package/dist/ful.iife.min.js +1 -1
- package/dist/ful.iife.min.js.map +1 -1
- package/dist/ful.min.mjs +1 -1
- package/dist/ful.min.mjs.map +1 -1
- package/dist/ful.mjs +2 -2
- package/dist/ful.mjs.map +1 -1
- package/package.json +1 -1
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(
|
|
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];
|
|
@@ -1246,7 +1246,7 @@ class Bindings {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
|
|
1248
1248
|
static mutateIn(form, values){
|
|
1249
|
-
const names = Array.from(form.
|
|
1249
|
+
const names = Array.from(form.elements)
|
|
1250
1250
|
.map(el => el.getAttribute("name"))
|
|
1251
1251
|
.filter(n => n);
|
|
1252
1252
|
for (const [flattenedKey, value] of Object.entries(Bindings.flatten(values, '', new Set(names)))) {
|