@posthog/ai 8.23.1 → 8.24.0

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/dist/index.mjs CHANGED
@@ -603,7 +603,7 @@ function sanitizeValues(obj) {
603
603
  }
604
604
  //#endregion
605
605
  //#region package.json
606
- var version = "8.23.1";
606
+ var version = "8.24.0";
607
607
  //#endregion
608
608
  //#region src/serializeError.ts
609
609
  const DEFAULT_MAX_DEPTH = 3;
@@ -1786,7 +1786,7 @@ var Prompts = class {
1786
1786
  */
1787
1787
  compile(prompt, variables) {
1788
1788
  return prompt.replace(/\{\{([\w.-]+)\}\}/g, (match, variableName) => {
1789
- if (variableName in variables) return String(variables[variableName]);
1789
+ if (Object.prototype.hasOwnProperty.call(variables, variableName)) return String(variables[variableName]);
1790
1790
  return match;
1791
1791
  });
1792
1792
  }