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

@vinejs/vine

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vinejs/vine - npm Package Compare versions

Comparing version 1.8.0 to 2.0.0-0

build/chunk-KBLJH3U7.js

1

build/factories/field.d.ts

@@ -16,2 +16,3 @@ import { ErrorReporterContract } from '@vinejs/compiler/types';

wildCardPath: string;
getFieldPath(): string;
isDefined: boolean;

@@ -18,0 +19,0 @@ isValid: true;

5

build/factories/main.js

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

helpers
} from "../chunk-TVEIURSI.js";
} from "../chunk-KBLJH3U7.js";
import "../chunk-CSAU5B4Q.js";

@@ -21,2 +21,5 @@

wildCardPath: fieldName,
getFieldPath() {
return fieldName;
},
isDefined: helpers.exists(value),

@@ -23,0 +26,0 @@ isValid: true,

@@ -22,3 +22,3 @@ import {

vine_default
} from "./chunk-YC5YDPDW.js";
} from "./chunk-WEFEL2YW.js";
import "./chunk-LKAXJ6BU.js";

@@ -29,3 +29,3 @@ import {

main_exports
} from "./chunk-TVEIURSI.js";
} from "./chunk-KBLJH3U7.js";
import "./chunk-CSAU5B4Q.js";

@@ -32,0 +32,0 @@ export {

@@ -6,3 +6,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineAccepted extends BaseLiteralType<true, true> {
export declare class VineAccepted extends BaseLiteralType<'on' | '1' | 'yes' | 'true' | true | 1, true, true> {
/**

@@ -9,0 +9,0 @@ * Default collection of accepted rules

@@ -6,3 +6,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineAny extends BaseLiteralType<any, any> {
export declare class VineAny extends BaseLiteralType<any, any, any> {
constructor(options?: Partial<FieldOptions>, validations?: Validation<any>[]);

@@ -9,0 +9,0 @@ /**

import { RefsStore, ArrayNode } from '@vinejs/compiler/types';
import { BaseType } from '../base/main.js';
import { OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE } from '../../symbols.js';
import type { FieldOptions, ParserOptions, SchemaTypes, Validation } from '../../types.js';

@@ -9,3 +9,3 @@ /**

*/
export declare class VineArray<Schema extends SchemaTypes> extends BaseType<Schema[typeof OTYPE][], Schema[typeof COTYPE][]> {
export declare class VineArray<Schema extends SchemaTypes> extends BaseType<Schema[typeof ITYPE][], Schema[typeof OTYPE][], Schema[typeof COTYPE][]> {
#private;

@@ -12,0 +12,0 @@ /**

import Macroable from '@poppinss/macroable';
import type { LiteralNode, RefsStore } from '@vinejs/compiler/types';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { OTYPE, COTYPE, PARSE, ITYPE } from '../../symbols.js';
import type { Parser, Validation, RuleBuilder, Transformer, FieldContext, FieldOptions, ParserOptions, ConstructableSchema, ComparisonOperators, ArrayComparisonOperators, NumericComparisonOperators } from '../../types.js';

@@ -8,3 +8,3 @@ /**

*/
declare abstract class BaseModifiersType<Output, CamelCaseOutput> extends Macroable implements ConstructableSchema<Output, CamelCaseOutput> {
declare abstract class BaseModifiersType<Input, Output, CamelCaseOutput> extends Macroable implements ConstructableSchema<Input, Output, CamelCaseOutput> {
/**

@@ -20,2 +20,6 @@ * Each subtype should implement the compile method that returns

/**
* Define the input type of the schema
*/
[ITYPE]: Input;
/**
* The output value of the field. The property points to a type only

@@ -48,3 +52,3 @@ * and not the real value.

*/
declare class NullableModifier<Schema extends BaseModifiersType<any, any>> extends BaseModifiersType<Schema[typeof OTYPE] | null, Schema[typeof COTYPE] | null> {
declare class NullableModifier<Schema extends BaseModifiersType<any, any, any>> extends BaseModifiersType<Schema[typeof ITYPE] | null, Schema[typeof OTYPE] | null, Schema[typeof COTYPE] | null> {
#private;

@@ -65,3 +69,3 @@ constructor(parent: Schema);

*/
declare class OptionalModifier<Schema extends BaseModifiersType<any, any>> extends BaseModifiersType<Schema[typeof OTYPE] | undefined, Schema[typeof COTYPE] | undefined> {
declare class OptionalModifier<Schema extends BaseModifiersType<any, any, any>> extends BaseModifiersType<Schema[typeof ITYPE] | undefined | null, Schema[typeof OTYPE] | undefined, Schema[typeof COTYPE] | undefined> {
#private;

@@ -136,3 +140,3 @@ /**

*/
declare class TransformModifier<Schema extends BaseModifiersType<any, any>, Output> extends BaseModifiersType<Output, Output> {
declare class TransformModifier<Schema extends BaseModifiersType<any, any, any>, Output> extends BaseModifiersType<Schema[typeof ITYPE], Output, Output> {
#private;

@@ -160,3 +164,3 @@ /**

*/
export declare abstract class BaseLiteralType<Output, CamelCaseOutput> extends BaseModifiersType<Output, CamelCaseOutput> {
export declare abstract class BaseLiteralType<Input, Output, CamelCaseOutput> extends BaseModifiersType<Input, Output, CamelCaseOutput> {
/**

@@ -163,0 +167,0 @@ * The child class must implement the clone method

import type { CompilerNodes, RefsStore } from '@vinejs/compiler/types';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { Parser, Validation, RuleBuilder, FieldOptions, ParserOptions, ConstructableSchema } from '../../types.js';

@@ -8,3 +8,3 @@ import Macroable from '@poppinss/macroable';

*/
export declare abstract class BaseModifiersType<Output, CamelCaseOutput> extends Macroable implements ConstructableSchema<Output, CamelCaseOutput> {
export declare abstract class BaseModifiersType<Input, Output, CamelCaseOutput> extends Macroable implements ConstructableSchema<Input, Output, CamelCaseOutput> {
/**

@@ -20,2 +20,6 @@ * Each subtype should implement the compile method that returns

/**
* Define the input type of the schema
*/
[ITYPE]: Input;
/**
* The output value of the field. The property points to a type only

@@ -43,3 +47,3 @@ * and not the real value.

*/
declare class NullableModifier<Schema extends BaseModifiersType<any, any>> extends BaseModifiersType<Schema[typeof OTYPE] | null, Schema[typeof COTYPE] | null> {
declare class NullableModifier<Schema extends BaseModifiersType<any, any, any>> extends BaseModifiersType<Schema[typeof ITYPE] | null, Schema[typeof OTYPE] | null, Schema[typeof COTYPE] | null> {
#private;

@@ -60,3 +64,3 @@ constructor(parent: Schema);

*/
declare class OptionalModifier<Schema extends BaseModifiersType<any, any>> extends BaseModifiersType<Schema[typeof OTYPE] | undefined, Schema[typeof COTYPE] | undefined> {
declare class OptionalModifier<Schema extends BaseModifiersType<any, any, any>> extends BaseModifiersType<Schema[typeof ITYPE] | undefined | null, Schema[typeof OTYPE] | undefined, Schema[typeof COTYPE] | undefined> {
#private;

@@ -78,3 +82,3 @@ constructor(parent: Schema);

*/
export declare abstract class BaseType<Output, CamelCaseOutput> extends BaseModifiersType<Output, CamelCaseOutput> {
export declare abstract class BaseType<Input, Output, CamelCaseOutput> extends BaseModifiersType<Input, Output, CamelCaseOutput> {
/**

@@ -81,0 +85,0 @@ * Field options

@@ -7,3 +7,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineBoolean extends BaseLiteralType<boolean, boolean> {
export declare class VineBoolean extends BaseLiteralType<boolean | string | number, boolean, boolean> {
/**

@@ -10,0 +10,0 @@ * Default collection of boolean rules

import Macroable from '@poppinss/macroable';
import { VineAny } from './any/main.js';
import { VineEnum } from './enum/main.js';
import { VineDate } from './date/main.js';
import { union } from './union/builder.js';

@@ -18,5 +19,4 @@ import { VineTuple } from './tuple/main.js';

import { VineUnionOfTypes } from './union_of_types/main.js';
import { OTYPE, COTYPE } from '../symbols.js';
import { ITYPE, OTYPE, COTYPE } from '../symbols.js';
import type { DateFieldOptions, EnumLike, FieldContext, SchemaTypes } from '../types.js';
import { VineDate } from './date/main.js';
/**

@@ -68,3 +68,3 @@ * Schema builder exposes methods to construct a Vine schema. You may

*/
object<Properties extends Record<string, SchemaTypes>>(properties: Properties): VineObject<Properties, { [K in keyof Properties]: Properties[K][typeof OTYPE]; }, { [K_1 in keyof Properties as CamelCase<K_1 & string>]: Properties[K_1][typeof COTYPE]; }>;
object<Properties extends Record<string, SchemaTypes>>(properties: Properties): VineObject<Properties, { [K in keyof Properties]: Properties[K][typeof ITYPE]; }, { [K_1 in keyof Properties]: Properties[K_1][typeof OTYPE]; }, { [K_2 in keyof Properties as CamelCase<K_2 & string>]: Properties[K_2][typeof COTYPE]; }>;
/**

@@ -78,3 +78,3 @@ * Define an array field and validate its children elements.

*/
tuple<Schema extends SchemaTypes[]>(schemas: [...Schema]): VineTuple<Schema, { [K in keyof Schema]: Schema[K][typeof OTYPE]; }, { [K_1 in keyof Schema]: Schema[K_1][typeof COTYPE]; }>;
tuple<Schema extends SchemaTypes[]>(schemas: [...Schema]): VineTuple<Schema, { [K in keyof Schema]: Schema[K][typeof ITYPE]; }, { [K_1 in keyof Schema]: Schema[K_1][typeof OTYPE]; }, { [K_2 in keyof Schema]: Schema[K_2][typeof COTYPE]; }>;
/**

@@ -81,0 +81,0 @@ * Define an object field with key-value pair. The keys in

@@ -8,3 +8,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineDate extends BaseLiteralType<Date, Date> {
export declare class VineDate extends BaseLiteralType<string | number, Date, Date> {
/**

@@ -11,0 +11,0 @@ * Available VineDate rules

@@ -7,3 +7,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineEnum<const Values extends readonly unknown[]> extends BaseLiteralType<Values[number], Values[number]> {
export declare class VineEnum<const Values extends readonly unknown[]> extends BaseLiteralType<Values[number], Values[number], Values[number]> {
#private;

@@ -10,0 +10,0 @@ /**

@@ -10,3 +10,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineNativeEnum<Values extends EnumLike> extends BaseLiteralType<Values[keyof Values], Values[keyof Values]> {
export declare class VineNativeEnum<Values extends EnumLike> extends BaseLiteralType<Values[keyof Values], Values[keyof Values], Values[keyof Values]> {
#private;

@@ -13,0 +13,0 @@ /**

@@ -6,3 +6,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineLiteral<Value> extends BaseLiteralType<Value, Value> {
export declare class VineLiteral<Value> extends BaseLiteralType<Value, Value, Value> {
#private;

@@ -14,5 +14,9 @@ /**

equals: (options: {
expectedValue: any;
expectedValue: any; /**
* Default collection of literal rules
*/
}) => Validation<{
expectedValue: any;
expectedValue: any; /**
* Default collection of literal rules
*/
}>;

@@ -19,0 +23,0 @@ };

@@ -7,3 +7,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineNumber extends BaseLiteralType<number, number> {
export declare class VineNumber extends BaseLiteralType<string | number, number, number> {
protected options: FieldOptions & {

@@ -10,0 +10,0 @@ strict?: boolean;

import type { ConditionalFn, ObjectGroupNode, RefsStore } from '@vinejs/compiler/types';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { OTYPE, COTYPE, PARSE, ITYPE } from '../../symbols.js';
import type { ParserOptions, SchemaTypes } from '../../types.js';

@@ -8,4 +8,5 @@ /**

*/
export declare class GroupConditional<Properties extends Record<string, SchemaTypes>, Output, CamelCaseOutput> {
export declare class GroupConditional<Properties extends Record<string, SchemaTypes>, Input, Output, CamelCaseOutput> {
#private;
[ITYPE]: Input;
[OTYPE]: Output;

@@ -12,0 +13,0 @@ [COTYPE]: CamelCaseOutput;

import { ObjectGroup } from './group.js';
import { OTYPE, COTYPE } from '../../symbols.js';
import { CamelCase } from '../camelcase_types.js';
import { GroupConditional } from './conditional.js';
import { OTYPE, COTYPE, ITYPE } from '../../symbols.js';
import type { FieldContext, SchemaTypes } from '../../types.js';

@@ -10,7 +10,7 @@ /**

*/
export declare function group<Conditional extends GroupConditional<any, any, any>>(conditionals: Conditional[]): ObjectGroup<Conditional>;
export declare function group<Conditional extends GroupConditional<any, any, any, any>>(conditionals: Conditional[]): ObjectGroup<Conditional>;
export declare namespace group {
var _a: <Properties extends Record<string, SchemaTypes>>(conditon: (value: Record<string, unknown>, field: FieldContext) => any, properties: Properties) => GroupConditional<Properties, { [K in keyof Properties]: Properties[K][typeof OTYPE]; }, { [K_1 in keyof Properties as CamelCase<K_1 & string>]: Properties[K_1][typeof COTYPE]; }>;
var _b: <Properties extends Record<string, SchemaTypes>>(properties: Properties) => GroupConditional<Properties, { [K in keyof Properties]: Properties[K][typeof OTYPE]; }, { [K_1 in keyof Properties as CamelCase<K_1 & string>]: Properties[K_1][typeof COTYPE]; }>;
var _a: <Properties extends Record<string, SchemaTypes>>(conditon: (value: Record<string, unknown>, field: FieldContext) => any, properties: Properties) => GroupConditional<Properties, { [K in keyof Properties]: Properties[K][typeof ITYPE]; }, { [K_1 in keyof Properties]: Properties[K_1][typeof OTYPE]; }, { [K_2 in keyof Properties as CamelCase<K_2 & string>]: Properties[K_2][typeof COTYPE]; }>;
var _b: <Properties extends Record<string, SchemaTypes>>(properties: Properties) => GroupConditional<Properties, { [K in keyof Properties]: Properties[K][typeof ITYPE]; }, { [K_1 in keyof Properties]: Properties[K_1][typeof OTYPE]; }, { [K_2 in keyof Properties as CamelCase<K_2 & string>]: Properties[K_2][typeof COTYPE]; }>;
export { _a as if, _b as else };
}
import { ObjectGroupNode, RefsStore } from '@vinejs/compiler/types';
import { GroupConditional } from './conditional.js';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { ParserOptions, UnionNoMatchCallback } from '../../types.js';

@@ -10,4 +10,5 @@ /**

*/
export declare class ObjectGroup<Conditional extends GroupConditional<any, any, any>> {
export declare class ObjectGroup<Conditional extends GroupConditional<any, any, any, any>> {
#private;
[ITYPE]: Conditional[typeof ITYPE];
[OTYPE]: Conditional[typeof OTYPE];

@@ -14,0 +15,0 @@ [COTYPE]: Conditional[typeof COTYPE];

import type { ObjectNode, RefsStore } from '@vinejs/compiler/types';
import { ObjectGroup } from './group.js';
import { GroupConditional } from './conditional.js';
import { BaseModifiersType, BaseType } from '../base/main.js';
import { OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE } from '../../symbols.js';
import { BaseType, BaseModifiersType } from '../base/main.js';
import { OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE, ITYPE } from '../../symbols.js';
import type { Validation, SchemaTypes, FieldOptions, ParserOptions } from '../../types.js';

@@ -10,3 +10,3 @@ /**

*/
export declare class VineCamelCaseObject<Schema extends VineObject<any, any, any>> extends BaseModifiersType<Schema[typeof COTYPE], Schema[typeof COTYPE]> {
export declare class VineCamelCaseObject<Schema extends VineObject<any, any, any, any>> extends BaseModifiersType<Schema[typeof ITYPE], Schema[typeof COTYPE], Schema[typeof COTYPE]> {
#private;

@@ -36,3 +36,3 @@ /**

*/
export declare class VineObject<Properties extends Record<string, SchemaTypes>, Output, CamelCaseOutput> extends BaseType<Output, CamelCaseOutput> {
export declare class VineObject<Properties extends Record<string, SchemaTypes>, Input, Output, CamelCaseOutput> extends BaseType<Input, Output, CamelCaseOutput> {
#private;

@@ -58,4 +58,6 @@ /**

*/
allowUnknownProperties<Value>(): VineObject<Properties, Output & {
allowUnknownProperties<Value>(): VineObject<Properties, Input & {
[K: string]: Value;
}, Output & {
[K: string]: Value;
}, CamelCaseOutput & {

@@ -68,3 +70,3 @@ [K: string]: Value;

*/
merge<Group extends ObjectGroup<GroupConditional<any, any, any>>>(group: Group): VineObject<Properties, Output & Group[typeof OTYPE], CamelCaseOutput & Group[typeof COTYPE]>;
merge<Group extends ObjectGroup<GroupConditional<any, any, any, any>>>(group: Group): VineObject<Properties, Input & Group[typeof ITYPE], Output & Group[typeof OTYPE], CamelCaseOutput & Group[typeof COTYPE]>;
/**

@@ -71,0 +73,0 @@ * Clone object

import { RefsStore, RecordNode } from '@vinejs/compiler/types';
import { BaseType } from '../base/main.js';
import { OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE, UNIQUE_NAME, IS_OF_TYPE } from '../../symbols.js';
import type { FieldOptions, ParserOptions, SchemaTypes, Validation } from '../../types.js';

@@ -11,2 +11,4 @@ import { validateKeysRule } from './rules.js';

export declare class VineRecord<Schema extends SchemaTypes> extends BaseType<{
[K: string]: Schema[typeof ITYPE];
}, {
[K: string]: Schema[typeof OTYPE];

@@ -13,0 +15,0 @@ }, {

@@ -8,3 +8,3 @@ import { BaseLiteralType } from '../base/literal.js';

*/
export declare class VineString extends BaseLiteralType<string, string> {
export declare class VineString extends BaseLiteralType<string, string, string> {
static rules: {

@@ -71,5 +71,5 @@ in: (options: {

ipAddress: (options?: {
version: 4 | 6;
version: 6 | 4;
} | undefined) => Validation<{
version: 4 | 6;
version: 6 | 4;
} | undefined>;

@@ -76,0 +76,0 @@ creditCard: (options?: import("../../types.js").CreditCardOptions | ((field: FieldContext) => void | import("../../types.js").CreditCardOptions | undefined) | undefined) => Validation<import("../../types.js").CreditCardOptions | ((field: FieldContext) => void | import("../../types.js").CreditCardOptions | undefined) | undefined>;

@@ -9,3 +9,3 @@ import { RefsStore, TupleNode } from '@vinejs/compiler/types';

*/
export declare class VineTuple<Schema extends SchemaTypes[], Output extends any[], CamelCaseOutput extends any[]> extends BaseType<Output, CamelCaseOutput> {
export declare class VineTuple<Schema extends SchemaTypes[], Input extends any[], Output extends any[], CamelCaseOutput extends any[]> extends BaseType<Input, Output, CamelCaseOutput> {
#private;

@@ -26,2 +26,5 @@ /**

allowUnknownProperties<Value>(): VineTuple<Schema, [
...Input,
...Value[]
], [
...Output,

@@ -28,0 +31,0 @@ ...Value[]

import type { RefsStore, UnionNode } from '@vinejs/compiler/types';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { SchemaTypes, ParserOptions, ConstructableSchema, UnionNoMatchCallback } from '../../types.js';

@@ -8,4 +8,5 @@ /**

*/
export declare class VineUnionOfTypes<Schema extends SchemaTypes> implements ConstructableSchema<Schema[typeof OTYPE], Schema[typeof COTYPE]> {
export declare class VineUnionOfTypes<Schema extends SchemaTypes> implements ConstructableSchema<Schema[typeof ITYPE], Schema[typeof OTYPE], Schema[typeof COTYPE]> {
#private;
[ITYPE]: Schema[typeof ITYPE];
[OTYPE]: Schema[typeof OTYPE];

@@ -12,0 +13,0 @@ [COTYPE]: Schema[typeof COTYPE];

import { ConditionalFn, RefsStore, UnionNode } from '@vinejs/compiler/types';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import { ITYPE, OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { ParserOptions, SchemaTypes } from '../../types.js';

@@ -10,2 +10,3 @@ /**

#private;
[ITYPE]: Schema[typeof ITYPE];
[OTYPE]: Schema[typeof OTYPE];

@@ -12,0 +13,0 @@ [COTYPE]: Schema[typeof COTYPE];

import { RefsStore, UnionNode } from '@vinejs/compiler/types';
import { UnionConditional } from './conditional.js';
import { OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { ConstructableSchema, ParserOptions, SchemaTypes, UnionNoMatchCallback } from '../../types.js';
import { ITYPE, OTYPE, COTYPE, PARSE } from '../../symbols.js';
import type { SchemaTypes, ParserOptions, ConstructableSchema, UnionNoMatchCallback } from '../../types.js';
/**

@@ -9,4 +9,5 @@ * Vine union represents a union data type. A union is a collection

*/
export declare class VineUnion<Conditional extends UnionConditional<SchemaTypes>> implements ConstructableSchema<Conditional[typeof OTYPE], Conditional[typeof COTYPE]> {
export declare class VineUnion<Conditional extends UnionConditional<SchemaTypes>> implements ConstructableSchema<Conditional[typeof ITYPE], Conditional[typeof OTYPE], Conditional[typeof COTYPE]> {
#private;
[ITYPE]: Conditional[typeof ITYPE];
[OTYPE]: Conditional[typeof OTYPE];

@@ -13,0 +14,0 @@ [COTYPE]: Conditional[typeof COTYPE];

@@ -15,2 +15,6 @@ /**

/**
* The symbol for the opaque input type
*/
export declare const ITYPE: unique symbol;
/**
* The symbol for the opaque type

@@ -17,0 +21,0 @@ */

@@ -11,3 +11,3 @@ import type dayjs from 'dayjs';

import type { ValidationError } from './errors/validation_error.js';
import type { OTYPE, COTYPE, PARSE, VALIDATION, UNIQUE_NAME, IS_OF_TYPE } from './symbols.js';
import type { OTYPE, COTYPE, PARSE, VALIDATION, UNIQUE_NAME, IS_OF_TYPE, ITYPE } from './symbols.js';
/**

@@ -83,3 +83,4 @@ * Options accepted by the mobile number validation

*/
export interface ConstructableSchema<Output, CamelCaseOutput> {
export interface ConstructableSchema<Inputs, Output, CamelCaseOutput> {
[ITYPE]: Inputs;
[OTYPE]: Output;

@@ -95,3 +96,3 @@ [COTYPE]: CamelCaseOutput;

}
export type SchemaTypes = ConstructableSchema<any, any>;
export type SchemaTypes = ConstructableSchema<any, any, any>;
/**

@@ -218,2 +219,5 @@ * Representation of a function that performs validation.

}> = Schema[typeof OTYPE];
export type InferInput<Schema extends {
[ITYPE]: any;
}> = Schema[typeof ITYPE];
/**

@@ -220,0 +224,0 @@ * Comparison operators supported by requiredWhen

import type { MessagesProviderContact } from '@vinejs/compiler/types';
import { OTYPE } from '../symbols.js';
import { ITYPE, OTYPE } from '../symbols.js';
import type { Infer, SchemaTypes, MetaDataValidator, ValidationOptions, ErrorReporterContract } from '../types.js';

@@ -13,2 +13,3 @@ /**

*/
[ITYPE]: Schema[typeof ITYPE];
[OTYPE]: Schema[typeof OTYPE];

@@ -15,0 +16,0 @@ /**

{
"name": "@vinejs/vine",
"description": "Form data validation library for Node.js",
"version": "1.8.0",
"version": "2.0.0-0",
"engines": {

@@ -43,3 +43,3 @@ "node": ">=18.16.0"

"@adonisjs/tsconfig": "^1.3.0",
"@commitlint/cli": "^19.0.3",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.0.3",

@@ -49,5 +49,5 @@ "@japa/assert": "^2.1.0",

"@japa/runner": "^3.1.1",
"@swc/core": "^1.4.6",
"@swc/core": "^1.4.11",
"@types/dlv": "^1.1.4",
"@types/node": "^20.11.25",
"@types/node": "^20.11.30",
"ajv": "^8.12.0",

@@ -61,7 +61,7 @@ "benchmark": "^2.1.4",

"joi": "^17.9.2",
"np": "^10.0.0",
"np": "^10.0.2",
"prettier": "^3.2.5",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.4.2",
"typescript": "^5.4.3",
"valibot": "^0.30.0",

@@ -72,5 +72,5 @@ "yup": "^1.4.0",

"dependencies": {
"@poppinss/macroable": "^1.0.1",
"@poppinss/macroable": "^1.0.2",
"@types/validator": "^13.11.9",
"@vinejs/compiler": "^2.4.1",
"@vinejs/compiler": "^2.5.0",
"camelcase": "^8.0.0",

@@ -77,0 +77,0 @@ "dayjs": "^1.11.10",

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