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.6.0 to 3.6.1

1

changelog.md

@@ -5,2 +5,3 @@ # Changelog

| ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 3.6.1 | Realised intersection had another potential ref pathing bug. Fixed.
| 3.6.0 | Added support for default & effects (refine). Broke out changelog.md

@@ -7,0 +8,0 @@ | 3.5.0 | Added support for CUID string validation

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,12 +10,5 @@ "use strict";

].filter((x) => !!x);
switch (allOf.length) {
case 2:
// @ts-expect-error
return { allOf };
case 1:
return allOf[0];
default:
return {};
}
// @ts-expect-error
return allOf.length ? { allOf } : undefined;
}
exports.parseIntersectionDef = parseIntersectionDef;
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