@syntrologie/runtime-sdk 2.0.1-canary.0 → 2.0.1-canary.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.
@@ -39996,6 +39996,9 @@ var SyntrologieSDK = (() => {
39996
39996
  };
39997
39997
  function getEventName(phEvent) {
39998
39998
  const eventName = phEvent.event;
39999
+ if (typeof eventName !== "string") {
40000
+ return "posthog.unknown";
40001
+ }
39999
40002
  if (POSTHOG_EVENT_MAP[eventName]) {
40000
40003
  return POSTHOG_EVENT_MAP[eventName];
40001
40004
  }
@@ -40007,9 +40010,6 @@ var SyntrologieSDK = (() => {
40007
40010
  if (tagName === "input" || tagName === "textarea") return StandardEvents.UI_INPUT;
40008
40011
  return StandardEvents.UI_CLICK;
40009
40012
  }
40010
- if (typeof eventName !== "string") {
40011
- return "posthog.unknown";
40012
- }
40013
40013
  if (!eventName.startsWith("$")) {
40014
40014
  return `posthog.${eventName}`;
40015
40015
  }