@mastra/client-js 0.11.0-alpha.2 → 0.11.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.js CHANGED
@@ -223,7 +223,8 @@ function zodToJsonSchema(zodSchema) {
223
223
  return zodSchema;
224
224
  }
225
225
  if ("toJSONSchema" in z) {
226
- return z.toJSONSchema(zodSchema);
226
+ const fn = "toJSONSchema";
227
+ return z[fn].call(z, zodSchema);
227
228
  }
228
229
  return originalZodToJsonSchema(zodSchema, { $refStrategy: "none" });
229
230
  }