zod-to-json-schema
Advanced tools
Comparing version 3.17.2 to 3.18.0
{ | ||
"name": "zod-to-json-schema", | ||
"version": "3.17.2", | ||
"version": "3.18.0", | ||
"description": "Converts Zod schemas to Json Schemas", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"zod": "^3.17.10" | ||
"zod": "^3.18.0" | ||
}, | ||
@@ -46,5 +46,5 @@ "devDependencies": { | ||
"typescript": "^4.4.3", | ||
"zod": "^3.17.10" | ||
"zod": "^3.18.0" | ||
}, | ||
"types": "index.d.ts" | ||
} |
@@ -31,2 +31,3 @@ "use strict"; | ||
const unknown_1 = require("./parsers/unknown"); | ||
const branded_1 = require("./parsers/branded"); | ||
function parseDef(def, refs) { | ||
@@ -135,2 +136,4 @@ const item = refs.items.find((x) => Object.is(x.def, def)); | ||
return (0, default_1.parseDefaultDef)(def, refs); | ||
case zod_1.ZodFirstPartyTypeKind.ZodBranded: | ||
return (0, branded_1.parseBrandedDef)(def, refs); | ||
case zod_1.ZodFirstPartyTypeKind.ZodFunction: | ||
@@ -137,0 +140,0 @@ case zod_1.ZodFirstPartyTypeKind.ZodVoid: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70114
68
1133