@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.
@@ -1997,17 +1997,14 @@ function bl(e, t, n, r) {
1997
1997
  }
1998
1998
  function pl(e, t, n) {
1999
1999
  e && !el(e) && ir("GObj bad instanceof");
2000
- let [r, l] = function(e, t) {
2000
+ const r = e ? $t(e) + ": " : "";
2001
+ let [l, o] = function(e, t) {
2001
2002
  let n = e.lastIndexOf(t);
2002
2003
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
2003
- }(n, "`");
2004
- if (tl(l)) Cr(t, n);
2005
- else {
2006
- let o = bl(e, t, r, !0);
2007
- if (Br(o)) return ir(`${e ? $t(e) + ": " : ""}kw_delete(): cannot delete an item of a list: '${n}'`), -1;
2008
- Cr(o, l);
2009
- }
2010
- return 0;
2004
+ }(n, "`"), i = t;
2005
+ if (tl(o)) o = n;
2006
+ else if (i = bl(e, t, l, !0), void 0 === i) return -1;
2007
+ return Br(i) ? (ir(`${r}kw_delete(): cannot delete an item of a list: '${n}'`), -1) : Yr(i) && Object.prototype.hasOwnProperty.call(i, o) ? (delete i[o], 0) : (ir(`${r}kw_delete(): path not found: '${n}'`), -1);
2011
2008
  }
2012
2009
  function ml(e, t, n, r, l) {
2013
2010
  e && !el(e) && ir("GObj bad instanceof");
@@ -3107,7 +3104,7 @@ function ai(e, t) {
3107
3104
  let l;
3108
3105
  Yr(r) && (l = r.default);
3109
3106
  let o = Ol(null, t, e, l);
3110
- n[e] = o;
3107
+ Lr(n, e, o);
3111
3108
  }), n;
3112
3109
  }
3113
3110
  var ui = [