@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.
@@ -1754,17 +1754,14 @@ var gobjJs = function(e) {
1754
1754
  }
1755
1755
  function hr(e, t, n) {
1756
1756
  e && !sr(e) && hn("GObj bad instanceof");
1757
- let [r, l] = function(e, t) {
1757
+ const r = e ? et(e) + ": " : "";
1758
+ let [l, o] = function(e, t) {
1758
1759
  let n = e.lastIndexOf(t);
1759
1760
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
1760
- }(n, "`");
1761
- if (ir(l)) Kn(t, n);
1762
- else {
1763
- let o = mr(e, t, r, !0);
1764
- if (er(o)) return hn(`${e ? et(e) + ": " : ""}kw_delete(): cannot delete an item of a list: '${n}'`), -1;
1765
- Kn(o, l);
1766
- }
1767
- return 0;
1761
+ }(n, "`"), s = t;
1762
+ if (ir(o)) o = n;
1763
+ else if (s = mr(e, t, l, !0), void 0 === s) return -1;
1764
+ return er(s) ? (hn(`${r}kw_delete(): cannot delete an item of a list: '${n}'`), -1) : Zn(s) && Object.prototype.hasOwnProperty.call(s, o) ? (delete s[o], 0) : (hn(`${r}kw_delete(): path not found: '${n}'`), -1);
1768
1765
  }
1769
1766
  function yr(e, t, n, r, l) {
1770
1767
  e && !sr(e) && hn("GObj bad instanceof");
@@ -2877,7 +2874,7 @@ var gobjJs = function(e) {
2877
2874
  let l;
2878
2875
  Zn(r) && (l = r.default);
2879
2876
  let o = Or(null, t, e, l);
2880
- n[e] = o;
2877
+ Yn(n, e, o);
2881
2878
  }), n;
2882
2879
  }, e.current_timestamp = el, e.data_type_t = y, e.db_list_persistent_attrs = function(e, t) {
2883
2880
  let n = kr(al(e), null, !1), r = {};