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

@conform-to/zod

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conform-to/zod - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

12

index.js

@@ -92,3 +92,3 @@ 'use strict';

var keys = ['required', 'minLength', 'maxLength', 'min', 'max', 'step', 'multiple', 'pattern'];
function resolveFieldsetConstarint(schema) {
function resolveFieldsetConstraint(schema) {
if (schema instanceof z__namespace.ZodObject) {

@@ -103,10 +103,10 @@ var result = {};

if (schema instanceof z__namespace.ZodEffects) {
return resolveFieldsetConstarint(schema.innerType());
return resolveFieldsetConstraint(schema.innerType());
} else if (schema instanceof z__namespace.ZodOptional) {
return resolveFieldsetConstarint(schema.unwrap());
return resolveFieldsetConstraint(schema.unwrap());
} else if (schema instanceof z__namespace.ZodIntersection) {
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, resolveFieldsetConstarint(schema._def.left)), resolveFieldsetConstarint(schema._def.right));
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, resolveFieldsetConstraint(schema._def.left)), resolveFieldsetConstraint(schema._def.right));
} else if (schema instanceof z__namespace.ZodUnion || schema instanceof z__namespace.ZodDiscriminatedUnion) {
var options = schema.options;
return options.map(resolveFieldsetConstarint).reduce((prev, next) => {
return options.map(resolveFieldsetConstraint).reduce((prev, next) => {
var list = new Set([...Object.keys(prev), ...Object.keys(next)]);

@@ -137,3 +137,3 @@ var result = {};

}
return resolveFieldsetConstarint(source);
return resolveFieldsetConstraint(source);
}

@@ -140,0 +140,0 @@ function parse(payload, config) {

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "0.7.1",
"version": "0.7.2",
"main": "index.js",

@@ -29,3 +29,3 @@ "module": "index.mjs",

"peerDependencies": {
"@conform-to/dom": "0.7.1",
"@conform-to/dom": "0.7.2",
"zod": "^3.21.0"

@@ -32,0 +32,0 @@ },

Sorry, the diff of this file is not supported yet

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