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.4.1 to 3.4.2

7

package.json
{
"name": "zod-to-json-schema",
"version": "3.4.1",
"version": "3.4.2",
"description": "Converts Zod schemas to Json Schemas",

@@ -20,3 +20,4 @@ "main": "index.js",

"contributors": [
"Hammad Asif (https://github.com/mrhammadasif)"
"Hammad Asif (https://github.com/mrhammadasif)",
"Noah Rosenzweig (https://github.com/Noah2610)"
],

@@ -29,3 +30,3 @@ "repository": {

"dependencies": {
"zod": "^3.7.1"
"zod": "^3.8.1"
},

@@ -32,0 +33,0 @@ "devDependencies": {

@@ -56,2 +56,3 @@ # Zod to Json Schema

| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 3.4.2 | Fixed broken intersection parser (Thanks [Noah2610](https://github.com/Noah2610)!)
| 3.4.1 | Fixed pathing bug for nullable items.

@@ -58,0 +59,0 @@ | 3.4.0 | Added support for z.lazy() |

@@ -7,4 +7,4 @@ "use strict";

const allOf = [
parseDef_1.parseDef(def.left._def, path, visited),
parseDef_1.parseDef(def.right._def, path, visited),
parseDef_1.parseDef(def.left, path, visited),
parseDef_1.parseDef(def.right, path, visited),
].filter(Boolean);

@@ -11,0 +11,0 @@ return allOf.length === 2 ? { allOf } : allOf.length === 1 ? allOf[0] : {};

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