@yuneta/gobj-js 7.26.10 → 7.26.11
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/gobj-js.cjs.js +17 -9
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +149 -148
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +17 -9
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +9 -8
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +17 -9
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +151 -150
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +17 -9
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +9 -8
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -2517,16 +2517,17 @@ function lo(e, t, n, r) {
|
|
|
2517
2517
|
if (!l) return ir("jdb_update: topic not found: " + t), null;
|
|
2518
2518
|
if (tl(r.id)) return ir("jdb_update: record without id: " + r), _r(r), null;
|
|
2519
2519
|
if (!Jr(n)) return ir(`jdb_update: path must be a string: ${String(n)}`), null;
|
|
2520
|
-
let o, i = n.split("`"),
|
|
2521
|
-
for (; (o =
|
|
2522
|
-
if (!
|
|
2523
|
-
if (
|
|
2524
|
-
else if (s.id === r.id) Dr(s, r);
|
|
2520
|
+
let o, i, s = n.split("`"), a = l;
|
|
2521
|
+
for (; (o = s.shift()) && !tl(o) && a;) Yr(a) && (a = Ol(null, a, e.hook, null, 0)), a = uo(a, null, o, !1);
|
|
2522
|
+
if (!a || 0 !== s.length) return ir(`jdb_update: path not found in topic '${t}': '${n}'`), null;
|
|
2523
|
+
if (Br(a)) i = a;
|
|
2525
2524
|
else {
|
|
2526
|
-
|
|
2527
|
-
|
|
2525
|
+
if (a.id === r.id) return Dr(a, r), l;
|
|
2526
|
+
if (i = Ol(null, a, e.hook, null, 0), null == i) i = [], Lr(a, e.hook, i);
|
|
2527
|
+
else if (!Br(i)) return ir(`jdb_update: the hook '${e.hook}' of '${n}' is not a list in topic '${t}'`), null;
|
|
2528
2528
|
}
|
|
2529
|
-
|
|
2529
|
+
let u = uo(i, e.hook, r.id, !1);
|
|
2530
|
+
return u ? Dr(u, r) : i.push(r), l;
|
|
2530
2531
|
}
|
|
2531
2532
|
function oo(e, t, n, r) {
|
|
2532
2533
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|