index.js 1.5 KB

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var src_1 = require("../src");
  4. // middleware/validation-chain-builders
  5. Object.defineProperty(exports, "check", { enumerable: true, get: function () { return src_1.check; } });
  6. Object.defineProperty(exports, "body", { enumerable: true, get: function () { return src_1.body; } });
  7. Object.defineProperty(exports, "cookie", { enumerable: true, get: function () { return src_1.cookie; } });
  8. Object.defineProperty(exports, "header", { enumerable: true, get: function () { return src_1.header; } });
  9. Object.defineProperty(exports, "param", { enumerable: true, get: function () { return src_1.param; } });
  10. Object.defineProperty(exports, "query", { enumerable: true, get: function () { return src_1.query; } });
  11. Object.defineProperty(exports, "buildCheckFunction", { enumerable: true, get: function () { return src_1.buildCheckFunction; } });
  12. // middleware/schema
  13. Object.defineProperty(exports, "checkSchema", { enumerable: true, get: function () { return src_1.checkSchema; } });
  14. // middleware/one-of
  15. Object.defineProperty(exports, "oneOf", { enumerable: true, get: function () { return src_1.oneOf; } });
  16. // validation-result
  17. Object.defineProperty(exports, "validationResult", { enumerable: true, get: function () { return src_1.validationResult; } });
  18. Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return src_1.Result; } });
  19. console.warn('express-validator: requires to express-validator/check are deprecated.' +
  20. 'You should just use require("express-validator") instead.');