Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zod-to-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zod-to-json-schema - npm Package Compare versions

Comparing version 3.17.2 to 3.18.0

src/parsers/branded.d.ts

6

package.json
{
"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:

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc