@yuneta/gobj-js 7.22.2 → 7.25.1

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.
@@ -1507,14 +1507,7 @@ function Xn(e, t, n, r, o) {
1507
1507
  e && !Gn(e) && gn("GObj bad instanceof");
1508
1508
  let s = Hn(e, t, n, !1);
1509
1509
  const l = o && o & qt.KW_REQUIRED, i = o && o & qt.KW_CREATE, _ = o && o & qt.KW_EXTRACT;
1510
- if (void 0 === s) {
1511
- if (i) {
1512
- let o = String(r);
1513
- return nr(e, t, n, o), o;
1514
- }
1515
- return l && (gn(`path not found: '${n}'`), mn(t)), String(r);
1516
- }
1517
- return _ && qn(e, t, n), Cn(s) ? String(s) : (l && (gn(`${Ze(e)}: path value MUST BE a string: ${n}`), bn(t)), String(r));
1510
+ return void 0 === s ? i ? (nr(e, t, n, Cn(r) ? r : null), r) : (l && (gn(`path not found: '${n}'`), mn(t)), r) : (_ && qn(e, t, n), Cn(s) ? s : (l && (gn(`${Ze(e)}: path value MUST BE a string: ${n}`), bn(t)), r));
1518
1511
  }
1519
1512
  function Zn(e, t, n, r, o) {
1520
1513
  e && !Gn(e) && gn("GObj bad instanceof");