@yuneta/gobj-js 7.26.4 → 7.26.6

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.
@@ -1753,17 +1753,14 @@ function br(e, t, n, r) {
1753
1753
  }
1754
1754
  function mr(e, t, n) {
1755
1755
  e && !sr(e) && mn("GObj bad instanceof");
1756
- let [r, o] = function(e, t) {
1756
+ const r = e ? Ze(e) + ": " : "";
1757
+ let [o, s] = function(e, t) {
1757
1758
  let n = e.lastIndexOf(t);
1758
1759
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
1759
- }(n, "`");
1760
- if (lr(o)) Wn(t, n);
1761
- else {
1762
- let s = br(e, t, r, !0);
1763
- if (Zn(s)) return mn(`${e ? Ze(e) + ": " : ""}kw_delete(): cannot delete an item of a list: '${n}'`), -1;
1764
- Wn(s, o);
1765
- }
1766
- return 0;
1760
+ }(n, "`"), l = t;
1761
+ if (lr(s)) s = n;
1762
+ else if (l = br(e, t, o, !0), void 0 === l) return -1;
1763
+ return Zn(l) ? (mn(`${r}kw_delete(): cannot delete an item of a list: '${n}'`), -1) : Xn(l) && Object.prototype.hasOwnProperty.call(l, s) ? (delete l[s], 0) : (mn(`${r}kw_delete(): path not found: '${n}'`), -1);
1767
1764
  }
1768
1765
  function hr(e, t, n, r, o) {
1769
1766
  e && !sr(e) && mn("GObj bad instanceof");
@@ -2876,7 +2873,7 @@ exports.GObj = O, exports.SDATA = v, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2876
2873
  let o;
2877
2874
  Xn(r) && (o = r.default);
2878
2875
  let s = jr(null, t, e, o);
2879
- n[e] = s;
2876
+ Kn(n, e, s);
2880
2877
  }), n;
2881
2878
  }, exports.current_timestamp = Zr, exports.data_type_t = h, exports.db_list_persistent_attrs = function(e, t) {
2882
2879
  let n = $r(_o(e), null, !1), r = {};