@tracelog/lib 2.2.0-rc.80.3 → 2.2.0-rc.80.4

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.
@@ -620,11 +620,11 @@ const $t = () => {
620
620
  cooldownPeriod: e.viewport.cooldownPeriod ?? 6e4,
621
621
  maxTrackedElements: e.viewport.maxTrackedElements ?? 100
622
622
  }), e;
623
- }, fe = (s) => {
623
+ }, fe = (s, e = /* @__PURE__ */ new Set()) => {
624
624
  if (s == null)
625
625
  return !0;
626
- const e = typeof s;
627
- return e === "string" || e === "number" || e === "boolean" ? !0 : e === "function" || e === "symbol" || e === "bigint" ? !1 : Array.isArray(s) ? s.every((t) => fe(t)) : e === "object" ? Object.values(s).every((t) => fe(t)) : !1;
626
+ const t = typeof s;
627
+ return t === "string" || t === "number" || t === "boolean" ? !0 : t === "function" || t === "symbol" || t === "bigint" || e.has(s) ? !1 : (e.add(s), Array.isArray(s) ? s.every((r) => fe(r, e)) : t === "object" ? Object.values(s).every((r) => fe(r, e)) : !1);
628
628
  }, Kt = (s) => typeof s != "object" || s === null ? !1 : fe(s), Yt = (s) => typeof s != "string" ? {
629
629
  valid: !1,
630
630
  error: "Event name must be a string"