@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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +39 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/utils/zod-to-json-schema.ts +3 -2
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
|
-
|
|
226
|
+
const fn = "toJSONSchema";
|
|
227
|
+
return z[fn].call(z, zodSchema);
|
|
227
228
|
}
|
|
228
229
|
return originalZodToJsonSchema(zodSchema, { $refStrategy: "none" });
|
|
229
230
|
}
|