init source

This commit is contained in:
Le Viet
2022-03-07 22:07:57 +07:00
parent e4376f3777
commit 8aba590a8d
11240 changed files with 1012977 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export { Location, Meta, CustomValidator, DynamicMessageCreator, ValidationError, ValidationChain, check, body, cookie, header, param, query, buildCheckFunction, checkSchema, Schema, ValidationSchema, ParamSchema, ValidationParamSchema, oneOf, OneOfCustomMessageBuilder, validationResult, ErrorFormatter, Result, ResultFactory, } from '../src';
+20
View File
@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var src_1 = require("../src");
// middleware/validation-chain-builders
Object.defineProperty(exports, "check", { enumerable: true, get: function () { return src_1.check; } });
Object.defineProperty(exports, "body", { enumerable: true, get: function () { return src_1.body; } });
Object.defineProperty(exports, "cookie", { enumerable: true, get: function () { return src_1.cookie; } });
Object.defineProperty(exports, "header", { enumerable: true, get: function () { return src_1.header; } });
Object.defineProperty(exports, "param", { enumerable: true, get: function () { return src_1.param; } });
Object.defineProperty(exports, "query", { enumerable: true, get: function () { return src_1.query; } });
Object.defineProperty(exports, "buildCheckFunction", { enumerable: true, get: function () { return src_1.buildCheckFunction; } });
// middleware/schema
Object.defineProperty(exports, "checkSchema", { enumerable: true, get: function () { return src_1.checkSchema; } });
// middleware/one-of
Object.defineProperty(exports, "oneOf", { enumerable: true, get: function () { return src_1.oneOf; } });
// validation-result
Object.defineProperty(exports, "validationResult", { enumerable: true, get: function () { return src_1.validationResult; } });
Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return src_1.Result; } });
console.warn('express-validator: requires to express-validator/check are deprecated.' +
'You should just use require("express-validator") instead.');