Socket
Socket
Sign inDemoInstall

@conform-to/zod

Package Overview
Dependencies
2
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

7

index.js

@@ -29,4 +29,3 @@ 'use strict';

function inferConstraint(schema) {
var def = schema; // @ts-expect-error
var def = schema;
var constraint = {

@@ -135,6 +134,2 @@ required: !def.isOptional()

return value => {
if (typeof value !== 'string' || value === '') {
return;
}
return value === 'on';

@@ -141,0 +136,0 @@ };

@@ -5,4 +5,3 @@ import { parse as parse$1, transform, getName, getFieldElements } from '@conform-to/dom';

function inferConstraint(schema) {
var def = schema; // @ts-expect-error
var def = schema;
var constraint = {

@@ -111,6 +110,2 @@ required: !def.isOptional()

return value => {
if (typeof value !== 'string' || value === '') {
return;
}
return value === 'on';

@@ -117,0 +112,0 @@ };

4

package.json

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.1.0",
"version": "0.1.1",
"main": "index.js",

@@ -18,3 +18,3 @@ "module": "module/index.js",

"peerDependencies": {
"@conform-to/dom": "0.1.0",
"@conform-to/dom": "0.1.1",
"zod": "^3.0.0"

@@ -21,0 +21,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc