@posthog/ai 4.3.0 → 4.3.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.
package/lib/index.esm.js CHANGED
@@ -108,7 +108,9 @@ const sendEventToPosthog = async ({
108
108
  tools,
109
109
  captureImmediate = false
110
110
  }) => {
111
- if (!client.capture) return Promise.resolve();
111
+ if (!client.capture) {
112
+ return Promise.resolve();
113
+ }
112
114
  // sanitize input and output for UTF-8 validity
113
115
  const safeInput = sanitizeValues(input);
114
116
  const safeOutput = sanitizeValues(output);