@yuneta/gobj-js 7.26.6 → 7.26.7

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,6 +1754,7 @@ function br(e, t, n, r) {
1754
1754
  function mr(e, t, n) {
1755
1755
  e && !sr(e) && mn("GObj bad instanceof");
1756
1756
  const r = e ? Ze(e) + ": " : "";
1757
+ if (!er(n)) return mn(`${r}kw_delete(): path must be a string: ${String(n)}`), -1;
1757
1758
  let [o, s] = function(e, t) {
1758
1759
  let n = e.lastIndexOf(t);
1759
1760
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
@@ -1859,6 +1860,7 @@ function jr(e, t, n, r, o) {
1859
1860
  }
1860
1861
  function Or(e, t, n, r) {
1861
1862
  if (e && !sr(e) && mn("GObj bad instanceof"), !Xn(t)) return mn("kw is not an object"), -1;
1863
+ if (!er(n)) return mn(`${e ? Ze(e) + ": " : ""}kw_set_dict_value(): path must be a string: ${String(n)}`), -1;
1862
1864
  let o = n.split("`"), s = o.length;
1863
1865
  for (let l = 0; l < s; l++) {
1864
1866
  let i = o[l];