arri-validate
Advanced tools
Comparing version 0.29.0 to 0.30.0
@@ -1,3 +0,3 @@ | ||
import { A as ASchemaOptions, a as ASchema, b as AArraySchema, c as AScalarSchema, d as AObjectSchema, e as ADiscriminatorSchema, I as InferType, R as ResolveObject, f as AStringEnumSchema, g as AObjectSchemaOptions, h as InferObjectOutput, V as ValidationData, i as ARecordSchema, S as SafeResult, j as coerce, k as errors, l as InferSubType, p as parse, s as safeCoerce, m as safeParse, n as serialize, v as validate, o as SchemaValidator, q as SchemaMetadata, r as SCHEMA_METADATA } from './shared/arri-validate.8b2f4188.js'; | ||
export { H as InferObjectRawType, M as MaybeNullable, B as NumberType, N as NumberTypeValues, P as PartialBy, y as Resolve, u as ValidationError, t as ValueError, C as isAAraySchema, E as isADiscriminatorSchema, G as isAObjectSchema, F as isARecordSchema, z as isAScalarSchema, x as isASchema, D as isAStringEnumSchema, J as isObject, w as isValidationError } from './shared/arri-validate.8b2f4188.js'; | ||
import { A as ASchemaOptions, a as ASchema, b as AArraySchema, c as AScalarSchema, d as AObjectSchema, e as ADiscriminatorSchema, I as InferType, R as ResolveObject, f as AStringEnumSchema, g as AObjectSchemaOptions, h as InferObjectOutput, V as ValidationData, i as ARecordSchema, S as SafeResult, j as coerce, k as errors, l as InferSubType, p as parse, s as safeCoerce, m as safeParse, n as serialize, v as validate, o as SchemaValidator, q as SchemaMetadata, r as SCHEMA_METADATA } from './shared/arri-validate.59fde718.js'; | ||
export { J as InferObjectRawType, M as MaybeNullable, C as NumberType, N as NumberTypeValues, P as PartialBy, z as Resolve, w as ValidationError, u as ValueError, D as isAAraySchema, F as isADiscriminatorSchema, H as isAObjectSchema, G as isARecordSchema, B as isAScalarSchema, y as isASchema, E as isAStringEnumSchema, K as isObject, x as isValidationError, t as sanitizeJson } from './shared/arri-validate.59fde718.js'; | ||
import { Schema } from 'jtd-utils'; | ||
@@ -190,2 +190,3 @@ | ||
declare function string(opts?: ASchemaOptions): AScalarSchema<"string", string>; | ||
declare function serializeSmallString(input: string): string; | ||
@@ -322,2 +323,2 @@ /** | ||
export { type AAdaptedDiscriminatorSchema, type AAdaptedObjectSchema, type AAdaptedRecordSchema, type AAdaptedSchema, type AAdaptedSchemaMetadata, type AAdaptedSchemaValidator, AArraySchema, ADiscriminatorSchema, AObjectSchema, AObjectSchemaOptions, ARecordSchema, AScalarSchema, ASchema, ASchemaOptions, AStringEnumSchema, type CompiledValidator, InferObjectOutput, InferSubType, InferType, ResolveObject, SCHEMA_METADATA, SafeResult, SchemaMetadata, SchemaValidator, type ValidationAdapter, ValidationData, _namespace as a, any, array, boolean, clone, coerce, compile, discriminator, enumerator, errors, extend, float32, float64, getCompiledParser, getCompiledSerializer, createParsingTemplate as getSchemaParsingCode, createSerializationV2Template as getSchemaSerializationCode, createValidationTemplate as getSchemaValidationCode, int16, int16Max, int16Min, int32, int32Max, int32Min, int64, int64Max, int64Min, int8, int8Max, int8Min, isAAdaptedSchema, nullable, number, object, omit, optional, parse, partial, pick, record, safeCoerce, safeParse, serialize, serializeObject, string, stringEnum, timestamp, uint16, uint16Max, uint16Min, uint32, uint32Max, uint32Min, uint64, uint64Max, uint64Min, uint8, uint8Max, uint8Min, validate }; | ||
export { type AAdaptedDiscriminatorSchema, type AAdaptedObjectSchema, type AAdaptedRecordSchema, type AAdaptedSchema, type AAdaptedSchemaMetadata, type AAdaptedSchemaValidator, AArraySchema, ADiscriminatorSchema, AObjectSchema, AObjectSchemaOptions, ARecordSchema, AScalarSchema, ASchema, ASchemaOptions, AStringEnumSchema, type CompiledValidator, InferObjectOutput, InferSubType, InferType, ResolveObject, SCHEMA_METADATA, SafeResult, SchemaMetadata, SchemaValidator, type ValidationAdapter, ValidationData, _namespace as a, any, array, boolean, clone, coerce, compile, discriminator, enumerator, errors, extend, float32, float64, getCompiledParser, getCompiledSerializer, createParsingTemplate as getSchemaParsingCode, createSerializationV2Template as getSchemaSerializationCode, createValidationTemplate as getSchemaValidationCode, int16, int16Max, int16Min, int32, int32Max, int32Min, int64, int64Max, int64Min, int8, int8Max, int8Min, isAAdaptedSchema, nullable, number, object, omit, optional, parse, partial, pick, record, safeCoerce, safeParse, serialize, serializeObject, serializeSmallString, string, stringEnum, timestamp, uint16, uint16Max, uint16Min, uint32, uint32Max, uint32Min, uint64, uint64Max, uint64Min, uint8, uint8Max, uint8Min, validate }; |
@@ -1,2 +0,2 @@ | ||
import { a as ASchema } from './shared/arri-validate.8b2f4188.js'; | ||
import { a as ASchema } from './shared/arri-validate.59fde718.js'; | ||
import 'jtd-utils'; | ||
@@ -8,2 +8,3 @@ | ||
badInputs: any[]; | ||
onlyTestSerialization?: boolean; | ||
}>; | ||
@@ -16,3 +17,7 @@ declare const parsingTestSuites: Record<string, { | ||
}>; | ||
declare const serializationTestSuites: Record<string, { | ||
schema: ASchema; | ||
inputs: any[]; | ||
}>; | ||
export { parsingTestSuites, validationTestSuites }; | ||
export { parsingTestSuites, serializationTestSuites, validationTestSuites }; |
{ | ||
"name": "arri-validate", | ||
"version": "0.29.0", | ||
"version": "0.30.0", | ||
"type": "module", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
"uncrypto": "^0.1.3", | ||
"jtd-utils": "0.29.0" | ||
"jtd-utils": "0.30.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
422340
10083
+ Addedjtd-utils@0.30.0(transitive)
- Removedjtd-utils@0.29.0(transitive)
Updatedjtd-utils@0.30.0