@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.
@@ -1510,14 +1510,7 @@
1510
1510
  e && !Mn(e) && dn("GObj bad instanceof");
1511
1511
  let o = qn(e, t, n, !1);
1512
1512
  const s = l && l & zt.KW_REQUIRED, i = l && l & zt.KW_CREATE, _ = l && l & zt.KW_EXTRACT;
1513
- if (void 0 === o) {
1514
- if (i) {
1515
- let l = String(r);
1516
- return rr(e, t, n, l), l;
1517
- }
1518
- return s && (dn(`path not found: '${n}'`), hn(t)), String(r);
1519
- }
1520
- return _ && zn(e, t, n), Ln(o) ? String(o) : (s && (dn(`${et(e)}: path value MUST BE a string: ${n}`), mn(t)), String(r));
1513
+ return void 0 === o ? i ? (rr(e, t, n, Ln(r) ? r : null), r) : (s && (dn(`path not found: '${n}'`), hn(t)), r) : (_ && zn(e, t, n), Ln(o) ? o : (s && (dn(`${et(e)}: path value MUST BE a string: ${n}`), mn(t)), r));
1521
1514
  }
1522
1515
  function er(e, t, n, r, l) {
1523
1516
  e && !Mn(e) && dn("GObj bad instanceof");