@yuneta/gobj-js 7.26.7 → 7.26.8
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 +15 -2
- package/dist/gobj-js.cjs.js.map +1 -1
- package/dist/gobj-js.cjs.min.js +79 -73
- package/dist/gobj-js.cjs.min.js.map +1 -1
- package/dist/gobj-js.es.js +15 -2
- package/dist/gobj-js.es.js.map +1 -1
- package/dist/gobj-js.es.min.js +8 -2
- package/dist/gobj-js.es.min.js.map +1 -1
- package/dist/gobj-js.iife.js +15 -2
- package/dist/gobj-js.iife.js.map +1 -1
- package/dist/gobj-js.iife.min.js +8 -2
- package/dist/gobj-js.iife.min.js.map +1 -1
- package/dist/gobj-js.umd.js +15 -2
- package/dist/gobj-js.umd.js.map +1 -1
- package/dist/gobj-js.umd.min.js +8 -2
- package/dist/gobj-js.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/gobj-js.es.min.js
CHANGED
|
@@ -2155,8 +2155,12 @@ function Nl(e, t, n, r) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
function wl(e, t, n, r, l) {
|
|
2157
2157
|
if (e && !el(e) && ir("GObj bad instanceof"), !Yr(t)) return ir("kw is not an object"), -1;
|
|
2158
|
-
let o =
|
|
2159
|
-
|
|
2158
|
+
let o = bl(e, t, n, !1);
|
|
2159
|
+
if (void 0 === o) {
|
|
2160
|
+
if (!Jr(n)) return -1;
|
|
2161
|
+
if (o = {}, Nl(e, t, n, o) < 0) return -1;
|
|
2162
|
+
}
|
|
2163
|
+
return Yr(o) ? (gl(o, r, l), 0) : (ir(`subdict is not an object: '${n}'`), -1);
|
|
2160
2164
|
}
|
|
2161
2165
|
function jl(e, n, r) {
|
|
2162
2166
|
let l = "", o = !1;
|
|
@@ -2499,6 +2503,7 @@ function lo(e, t, n, r) {
|
|
|
2499
2503
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2500
2504
|
if (!l) return ir("jdb_update: topic not found: " + t), null;
|
|
2501
2505
|
if (tl(r.id)) return ir("jdb_update: record without id: " + r), _r(r), null;
|
|
2506
|
+
if (!Jr(n)) return ir(`jdb_update: path must be a string: ${String(n)}`), null;
|
|
2502
2507
|
let o, i = n.split("`"), s = l;
|
|
2503
2508
|
for (; (o = i.shift()) && !tl(o) && s;) Yr(s) && (s = Ol(null, s, e.hook, [], 1)), s = uo(s, null, o, !1);
|
|
2504
2509
|
if (0 === i.length && s) if (Br(s)) s.push(r);
|
|
@@ -2513,6 +2518,7 @@ function oo(e, t, n, r) {
|
|
|
2513
2518
|
let l = Ol(null, Ol(null, e, "topics", null, 0), t, null, 0);
|
|
2514
2519
|
if (!l) return ir("jdb_delete: topic not found: " + t), null;
|
|
2515
2520
|
if (tl(r.id)) return ir("jdb_delete: record without id: " + r), _r(r), null;
|
|
2521
|
+
if (!Jr(n)) return ir(`jdb_delete: path must be a string: ${String(n)}`), null;
|
|
2516
2522
|
let o, i = n.split("`"), s = l;
|
|
2517
2523
|
for (; (o = i.shift()) && !tl(o) && s;) Yr(s) && (s = Ol(null, s, e.hook, null, 0)), s = uo(s, null, o, !1);
|
|
2518
2524
|
if (0 === i.length && s) if (Br(s)) {
|