@conform-to/yup
Advanced tools
Comparing version 0.9.1 to 1.0.0-pre.0
@@ -1,4 +0,4 @@ | ||
import { type FieldsetConstraint, type Submission } from '@conform-to/dom'; | ||
import { type Constraint, type Submission } from '@conform-to/dom'; | ||
import * as yup from 'yup'; | ||
export declare function getFieldsetConstraint<Source extends yup.AnyObjectSchema>(source: Source): FieldsetConstraint<yup.InferType<Source>>; | ||
export declare function getFieldsetConstraint<Source extends yup.AnyObjectSchema>(source: Source): Record<string, Constraint>; | ||
export declare function parse<Schema extends yup.AnyObjectSchema>(payload: FormData | URLSearchParams, config: { | ||
@@ -5,0 +5,0 @@ schema: Schema | ((intent: string) => Schema); |
@@ -73,2 +73,3 @@ 'use strict'; | ||
case 'min': | ||
dom.invariant(typeof constraint.min !== 'string', 'min is not a number'); | ||
if (!constraint.min || constraint.min < Number((_test$params6 = _test.params) === null || _test$params6 === void 0 ? void 0 : _test$params6.min)) { | ||
@@ -80,2 +81,3 @@ var _test$params7; | ||
case 'max': | ||
dom.invariant(typeof constraint.max !== 'string', 'max is not a number'); | ||
if (!constraint.max || constraint.max > Number((_test$params8 = _test.params) === null || _test$params8 === void 0 ? void 0 : _test$params8.max)) { | ||
@@ -82,0 +84,0 @@ var _test$params9; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.9.1", | ||
"version": "1.0.0-pre.0", | ||
"main": "index.js", | ||
@@ -29,3 +29,3 @@ "module": "index.mjs", | ||
"peerDependencies": { | ||
"@conform-to/dom": "0.9.1", | ||
"@conform-to/dom": "1.0.0-pre.0", | ||
"yup": ">=0.32.0" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14035
240