New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adonisjs/validator

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/validator - npm Package Compare versions

Comparing version 13.0.2-0 to 13.0.2-1

build/index.d.ts.map

1

build/index.d.ts

@@ -5,1 +5,2 @@ export { rules } from './src/rules/index.js';

export { ValidationException } from './src/validation_exception/index.js';
//# sourceMappingURL=index.d.ts.map

@@ -8,1 +8,2 @@ import '@adonisjs/bodyparser/bodyparser_middleware';

}
//# sourceMappingURL=request.d.ts.map

@@ -16,1 +16,2 @@ export declare class CompilerBuffer {

}
//# sourceMappingURL=index.d.ts.map

@@ -29,1 +29,2 @@ import type { ParsedRule, SchemaArray, SchemaObject, SchemaLiteral, ValidationField, ParsedSchemaTree, CompilerOutput } from '../types.js';

}
//# sourceMappingURL=index.d.ts.map

@@ -23,1 +23,2 @@ import { Compiler } from '../index.js';

}
//# sourceMappingURL=array.d.ts.map

@@ -25,1 +25,2 @@ import { Compiler } from '../index.js';

}
//# sourceMappingURL=literal.d.ts.map

@@ -19,1 +19,2 @@ import { Compiler } from '../index.js';

}
//# sourceMappingURL=object.d.ts.map

@@ -17,1 +17,2 @@ import { ApiErrorNode, MessagesBagContract, ErrorReporterContract } from '../types.js';

}
//# sourceMappingURL=api.d.ts.map
export { ApiErrorReporter } from './api.js';
export { VanillaErrorReporter } from './vanilla.js';
export { JsonApiErrorReporter } from './json_api.js';
//# sourceMappingURL=index.d.ts.map

@@ -17,1 +17,2 @@ import { JsonApiErrorNode, MessagesBagContract, ErrorReporterContract } from '../types.js';

}
//# sourceMappingURL=json_api.d.ts.map

@@ -13,1 +13,2 @@ import { VanillaErrorNode, MessagesBagContract, ErrorReporterContract } from '../types.js';

}
//# sourceMappingURL=vanilla.d.ts.map

@@ -9,1 +9,2 @@ import { MessagesBagContract, CustomMessages } from '../types.js';

}
//# sourceMappingURL=index.d.ts.map

@@ -5,1 +5,2 @@ import { Rules, Rule } from '../types.js';

export { rules };
//# sourceMappingURL=index.d.ts.map
import { Schema } from '../types.js';
export declare const schema: Schema;
//# sourceMappingURL=index.d.ts.map

@@ -553,1 +553,2 @@ import validatorJs from 'validator';

export {};
//# sourceMappingURL=types.d.ts.map

@@ -12,1 +12,2 @@ import type { Rule, ParsedRule, SchemaArray, SchemaObject, SchemaLiteral, ParsedSchemaTree, NodeType, NodeSubType } from './types.js';

};
//# sourceMappingURL=utils.d.ts.map

@@ -11,1 +11,2 @@ import { Exception } from '@poppinss/utils';

}
//# sourceMappingURL=index.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=distinct.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/field.js';
export declare const afterField: SyncValidation<CompileReturnType>;
//# sourceMappingURL=after_field.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/field.js';
export declare const afterOrEqualToField: SyncValidation<CompileReturnType>;
//# sourceMappingURL=after_or_equal_to_field.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/offset.js';
export declare const afterOrEqual: SyncValidation<CompileReturnType>;
//# sourceMappingURL=after_or_equal.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/offset.js';
export declare const after: SyncValidation<CompileReturnType>;
//# sourceMappingURL=after.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/field.js';
export declare const beforeField: SyncValidation<CompileReturnType>;
//# sourceMappingURL=before_field.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/field.js';
export declare const beforeOrEqualToField: SyncValidation<CompileReturnType>;
//# sourceMappingURL=before_or_equal_to_field.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/offset.js';
export declare const beforeOrEqual: SyncValidation<CompileReturnType>;
//# sourceMappingURL=before_or_equal.d.ts.map
import { SyncValidation } from '../../types.js';
import { CompileReturnType } from './helpers/offset.js';
export declare const before: SyncValidation<CompileReturnType>;
//# sourceMappingURL=before.d.ts.map

@@ -11,1 +11,2 @@ import { ValidationRuntimeOptions } from '../../../types.js';

export declare function validate(ruleName: string, errorMessage: string, value: any, { field, operator, format }: CompileReturnType, { root, tip, errorReporter, pointer, arrayExpressionPointer }: ValidationRuntimeOptions): void;
//# sourceMappingURL=field.d.ts.map

@@ -15,1 +15,2 @@ import { ValidationRuntimeOptions, DurationUnits } from '../../../types.js';

export declare function validate(ruleName: string, errorMessage: string, value: any, compiledOptions: CompileReturnType, { errorReporter, pointer, arrayExpressionPointer, refs }: ValidationRuntimeOptions): void;
//# sourceMappingURL=offset.d.ts.map
import { DateTime } from 'luxon';
export declare function toLuxon(value: any, format: string | undefined): DateTime | undefined;
//# sourceMappingURL=to_luxon.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const confirmed: SyncValidation;
//# sourceMappingURL=confirmed.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const nullable: SyncValidation;
//# sourceMappingURL=nullable.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_exists_all.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_exists_any.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_exists.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_not_exists_all.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_not_exists_any.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=required_if_not_exists.d.ts.map

@@ -42,1 +42,2 @@ import { SyncValidation } from '../../types.js';

export {};
//# sourceMappingURL=required_when.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const required: SyncValidation;
//# sourceMappingURL=required.d.ts.map

93

build/src/validations/index.d.ts
declare const validations: {
distinct: import("../types.js").SyncValidation<{
field: string;
}, import("../types.js").NodeSubType>;
after: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType, import("../types.js").NodeSubType>;
afterOrEqual: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType, import("../types.js").NodeSubType>;
afterField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType, import("../types.js").NodeSubType>;
afterOrEqualToField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType, import("../types.js").NodeSubType>;
before: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType, import("../types.js").NodeSubType>;
beforeOrEqual: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType, import("../types.js").NodeSubType>;
beforeField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType, import("../types.js").NodeSubType>;
beforeOrEqualToField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType, import("../types.js").NodeSubType>;
confirmed: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
required: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
nullable: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
}>;
after: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType>;
afterOrEqual: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType>;
afterField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType>;
afterOrEqualToField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType>;
before: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType>;
beforeOrEqual: import("../types.js").SyncValidation<import("./date/helpers/offset.js").CompileReturnType>;
beforeField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType>;
beforeOrEqualToField: import("../types.js").SyncValidation<import("./date/helpers/field.js").CompileReturnType>;
confirmed: import("../types.js").SyncValidation;
required: import("../types.js").SyncValidation;
nullable: import("../types.js").SyncValidation;
requiredIfExists: import("../types.js").SyncValidation<{
field: string;
}, import("../types.js").NodeSubType>;
}>;
requiredIfExistsAll: import("../types.js").SyncValidation<{
fields: string[];
}, import("../types.js").NodeSubType>;
}>;
requiredIfExistsAny: import("../types.js").SyncValidation<{
fields: string[];
}, import("../types.js").NodeSubType>;
}>;
requiredIfNotExists: import("../types.js").SyncValidation<{
field: string;
}, import("../types.js").NodeSubType>;
}>;
requiredIfNotExistsAll: import("../types.js").SyncValidation<{
fields: string[];
}, import("../types.js").NodeSubType>;
}>;
requiredIfNotExistsAny: import("../types.js").SyncValidation<{
fields: string[];
}, import("../types.js").NodeSubType>;
}>;
requiredWhen: import("../types.js").SyncValidation<{

@@ -39,3 +39,3 @@ operator: "in" | "notIn" | ">" | "<" | ">=" | "<=" | "=" | "!=";

ref?: string | undefined;
}, import("../types.js").NodeSubType>;
}>;
notIn: import("../types.js").SyncValidation<{

@@ -45,44 +45,44 @@ values?: (string | number)[] | undefined;

subtype: "string" | "number" | "array" | "date";
}, import("../types.js").NodeSubType>;
unsigned: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
}>;
unsigned: import("../types.js").SyncValidation;
range: import("../types.js").SyncValidation<{
start: number;
stop: number;
}, import("../types.js").NodeSubType>;
array: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
boolean: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
}>;
array: import("../types.js").SyncValidation;
boolean: import("../types.js").SyncValidation;
date: import("../types.js").SyncValidation<{
format?: string | undefined;
}, import("../types.js").NodeSubType>;
}>;
enum: import("../types.js").SyncValidation<{
choices?: any[] | undefined;
ref?: string | undefined;
}, import("../types.js").NodeSubType>;
}>;
enumSet: import("../types.js").SyncValidation<{
choices?: any[] | undefined;
ref?: string | undefined;
}, import("../types.js").NodeSubType>;
file: import("../types.js").SyncValidation<Partial<import("@adonisjs/bodyparser/types").FileValidationOptions>, import("../types.js").NodeSubType>;
number: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
object: import("../types.js").SyncValidation<unknown, import("../types.js").NodeSubType>;
}>;
file: import("../types.js").SyncValidation<Partial<import("@adonisjs/bodyparser/types").FileValidationOptions>>;
number: import("../types.js").SyncValidation;
object: import("../types.js").SyncValidation;
string: import("../types.js").SyncValidation<{
escape: boolean;
trim: boolean;
}, import("../types.js").NodeSubType>;
}>;
alpha: import("../types.js").SyncValidation<{
pattern: string;
}, import("../types.js").NodeSubType>;
}>;
alphaNum: import("../types.js").SyncValidation<{
pattern: string;
}, import("../types.js").NodeSubType>;
}>;
regex: import("../types.js").SyncValidation<{
pattern: string;
flags: string;
}, import("../types.js").NodeSubType>;
escape: import("../types.js").SyncValidation<undefined, import("../types.js").NodeSubType>;
trim: import("../types.js").SyncValidation<undefined, import("../types.js").NodeSubType>;
}>;
escape: import("../types.js").SyncValidation<undefined>;
trim: import("../types.js").SyncValidation<undefined>;
email: import("../types.js").SyncValidation<import("validator/lib/isEmail.js").IsEmailOptions & {
sanitize?: import("validator").default.NormalizeEmailOptions | undefined;
}, import("../types.js").NodeSubType>;
normalizeEmail: import("../types.js").SyncValidation<import("validator").default.NormalizeEmailOptions, import("../types.js").NodeSubType>;
}>;
normalizeEmail: import("../types.js").SyncValidation<import("validator").default.NormalizeEmailOptions>;
url: import("../types.js").SyncValidation<{

@@ -94,27 +94,28 @@ sanitizationOptions: {

validationOptions: import("validator/lib/isURL.js").IsURLOptions;
}, import("../types.js").NodeSubType>;
normalizeUrl: import("../types.js").SyncValidation<import("../types.js").UrlNormalizationOptions, import("../types.js").NodeSubType>;
}>;
normalizeUrl: import("../types.js").SyncValidation<import("../types.js").UrlNormalizationOptions>;
ip: import("../types.js").SyncValidation<{
version?: 4 | 6 | undefined;
}, import("../types.js").NodeSubType>;
}>;
uuid: import("../types.js").SyncValidation<{
version?: import("validator").default.UUIDVersion | undefined;
}, import("../types.js").NodeSubType>;
}>;
mobile: import("../types.js").SyncValidation<{
strict: boolean;
locale?: import("validator").default.MobilePhoneLocale[] | undefined;
}, import("../types.js").NodeSubType>;
}>;
maxLength: import("../types.js").SyncValidation<{
maxLength: number;
subtype: import("../types.js").NodeSubType;
}, import("../types.js").NodeSubType>;
}>;
minLength: import("../types.js").SyncValidation<{
minLength: number;
subtype: import("../types.js").NodeSubType;
}, import("../types.js").NodeSubType>;
}>;
equalTo: import("../types.js").SyncValidation<{
fieldValue?: string | undefined;
ref?: string | undefined;
}, import("../types.js").NodeSubType>;
}>;
};
export default validations;
//# sourceMappingURL=index.d.ts.map

@@ -9,1 +9,2 @@ import { SyncValidation } from '../../types.js';

export {};
//# sourceMappingURL=not_in.d.ts.map

@@ -6,1 +6,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=range.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const unsigned: SyncValidation;
//# sourceMappingURL=unsigned.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const array: SyncValidation;
//# sourceMappingURL=array.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const boolean: SyncValidation;
//# sourceMappingURL=boolean.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=date.d.ts.map

@@ -8,1 +8,2 @@ import { SyncValidation } from '../../types.js';

export {};
//# sourceMappingURL=enum_set.d.ts.map

@@ -8,1 +8,2 @@ import { SyncValidation } from '../../types.js';

export {};
//# sourceMappingURL=enum.d.ts.map
import type { FileValidationOptions } from '@adonisjs/bodyparser/types';
import { SyncValidation } from '../../types.js';
export declare const file: SyncValidation<Partial<FileValidationOptions>>;
//# sourceMappingURL=file.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const number: SyncValidation;
//# sourceMappingURL=number.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const object: SyncValidation;
//# sourceMappingURL=object.d.ts.map

@@ -6,1 +6,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=string.d.ts.map

@@ -6,1 +6,2 @@ import { SyncValidation, NodeSubType } from '../../types.js';

}>;
//# sourceMappingURL=max_length.d.ts.map

@@ -6,1 +6,2 @@ import { SyncValidation, NodeSubType } from '../../types.js';

}>;
//# sourceMappingURL=min_length.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=alpha_num.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=alpha.d.ts.map

@@ -8,1 +8,2 @@ import validatorJs from 'validator';

export {};
//# sourceMappingURL=email.d.ts.map

@@ -8,1 +8,2 @@ import { SyncValidation } from '../../types.js';

export {};
//# sourceMappingURL=equal_to.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const escape: SyncValidation<undefined>;
//# sourceMappingURL=escape.d.ts.map

@@ -5,1 +5,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=ip.d.ts.map

@@ -7,1 +7,2 @@ import validatorJs from 'validator';

}>;
//# sourceMappingURL=mobile.d.ts.map
import validatorJs from 'validator';
import { SyncValidation } from '../../types.js';
export declare const normalizeEmail: SyncValidation<validatorJs.default.NormalizeEmailOptions>;
//# sourceMappingURL=normalize_email.d.ts.map
import { UrlNormalizationOptions, SyncValidation } from '../../types.js';
export declare const normalizeUrl: SyncValidation<UrlNormalizationOptions>;
//# sourceMappingURL=normalize_url.d.ts.map

@@ -6,1 +6,2 @@ import { SyncValidation } from '../../types.js';

}>;
//# sourceMappingURL=regex.d.ts.map
import { SyncValidation } from '../../types.js';
export declare const trim: SyncValidation<undefined>;
//# sourceMappingURL=trim.d.ts.map

@@ -12,1 +12,2 @@ import validatorJs from 'validator';

export {};
//# sourceMappingURL=url.d.ts.map

@@ -6,1 +6,2 @@ import validatorJs from 'validator';

}>;
//# sourceMappingURL=uuid.d.ts.map

@@ -15,1 +15,2 @@ import { DateTime } from 'luxon';

export declare function getRequestReporter(request: Request): ErrorReporterConstructorContract;
//# sourceMappingURL=helpers.d.ts.map

@@ -30,1 +30,2 @@ import { NodeType, ParsedRule, NodeSubType, ValidateFn, SchemaRef, ApiErrorNode, JsonApiErrorNode, VanillaErrorNode, RequestNegotiator, ValidationContract, ValidatorResolvedConfig, ErrorReporterConstructorContract, DefaultMessagesCallback } from '../types.js';

};
//# sourceMappingURL=index.d.ts.map
# The MIT License
Copyright (c) 2023 AdonisJS Framework
Copyright (c) 2023 Harminder Virk

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

{
"name": "@adonisjs/validator",
"version": "13.0.2-0",
"version": "13.0.2-1",
"description": "Validator for adonis framework",

@@ -8,4 +8,7 @@ "main": "build/index.js",

"files": [
"src",
"index.ts",
"build/src",
"build/index.d.ts",
"build/index.d.ts.map",
"build/index.js"

@@ -34,10 +37,10 @@ ],

"devDependencies": {
"@adonisjs/application": "^7.1.2-0",
"@adonisjs/bodyparser": "^9.3.2-0",
"@adonisjs/encryption": "^5.1.2-0",
"@adonisjs/events": "^8.4.9-0",
"@adonisjs/fold": "^9.9.3-0",
"@adonisjs/http-server": "^6.8.2-0",
"@adonisjs/logger": "^5.4.2-0",
"@commitlint/cli": "^17.4.4",
"@adonisjs/application": "^7.1.2-3",
"@adonisjs/bodyparser": "^9.3.2-4",
"@adonisjs/encryption": "^5.1.2-1",
"@adonisjs/events": "^8.4.9-2",
"@adonisjs/fold": "^9.9.3-4",
"@adonisjs/http-server": "^6.8.2-5",
"@adonisjs/logger": "^5.4.2-1",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",

@@ -48,5 +51,5 @@ "@japa/assert": "^1.4.1",

"@japa/spec-reporter": "^1.3.3",
"@swc/core": "^1.3.37",
"@swc/core": "^1.3.42",
"@types/benchmark": "^2.1.2",
"@types/node": "^18.14.6",
"@types/node": "^18.15.10",
"benchmark": "^2.1.4",

@@ -56,22 +59,22 @@ "c8": "^7.13.0",

"del-cli": "^5.0.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-adonis": "^3.0.3",
"eslint-plugin-prettier": "^4.2.1",
"execa": "^7.0.0",
"github-label-sync": "^2.2.0",
"execa": "^7.1.1",
"github-label-sync": "^2.3.1",
"husky": "^8.0.3",
"joi": "^17.8.3",
"joi": "^17.9.1",
"kleur": "^4.1.5",
"np": "^7.6.3",
"prettier": "^2.8.4",
"np": "^7.6.4",
"prettier": "^2.8.7",
"ts-node": "^10.9.1",
"typescript": "^4.9.5",
"zod": "^3.20.6"
"typescript": "^5.0.2",
"zod": "^3.21.4"
},
"dependencies": {
"@poppinss/utils": "^6.5.0-0",
"@types/luxon": "^3.0.1",
"@types/validator": "^13.7.13",
"luxon": "^3.0.3",
"@poppinss/utils": "^6.5.0-2",
"@types/luxon": "^3.2.0",
"@types/validator": "^13.7.14",
"luxon": "^3.3.0",
"normalize-url": "^8.0.0",

@@ -82,3 +85,3 @@ "tmp-cache": "^1.1.0",

"peerDependencies": {
"@adonisjs/bodyparser": "^9.3.2-0"
"@adonisjs/bodyparser": "^9.3.2-4"
},

@@ -85,0 +88,0 @@ "keywords": [

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