@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.
@@ -1757,6 +1757,7 @@
1757
1757
  function hr(e, t, n) {
1758
1758
  e && !sr(e) && hn("GObj bad instanceof");
1759
1759
  const r = e ? et(e) + ": " : "";
1760
+ if (!tr(n)) return hn(`${r}kw_delete(): path must be a string: ${String(n)}`), -1;
1760
1761
  let [l, o] = function(e, t) {
1761
1762
  let n = e.lastIndexOf(t);
1762
1763
  return -1 === n ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
@@ -1862,6 +1863,7 @@
1862
1863
  }
1863
1864
  function Sr(e, t, n, r) {
1864
1865
  if (e && !sr(e) && hn("GObj bad instanceof"), !Zn(t)) return hn("kw is not an object"), -1;
1866
+ if (!tr(n)) return hn(`${e ? et(e) + ": " : ""}kw_set_dict_value(): path must be a string: ${String(n)}`), -1;
1865
1867
  let l = n.split("`"), o = l.length;
1866
1868
  for (let s = 0; s < o; s++) {
1867
1869
  let i = l[s];