123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- 'use strict';
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- var _toDate = require('./lib/toDate');
- var _toDate2 = _interopRequireDefault(_toDate);
- var _toFloat = require('./lib/toFloat');
- var _toFloat2 = _interopRequireDefault(_toFloat);
- var _toInt = require('./lib/toInt');
- var _toInt2 = _interopRequireDefault(_toInt);
- var _toBoolean = require('./lib/toBoolean');
- var _toBoolean2 = _interopRequireDefault(_toBoolean);
- var _equals = require('./lib/equals');
- var _equals2 = _interopRequireDefault(_equals);
- var _contains = require('./lib/contains');
- var _contains2 = _interopRequireDefault(_contains);
- var _matches = require('./lib/matches');
- var _matches2 = _interopRequireDefault(_matches);
- var _isEmail = require('./lib/isEmail');
- var _isEmail2 = _interopRequireDefault(_isEmail);
- var _isURL = require('./lib/isURL');
- var _isURL2 = _interopRequireDefault(_isURL);
- var _isMACAddress = require('./lib/isMACAddress');
- var _isMACAddress2 = _interopRequireDefault(_isMACAddress);
- var _isIP = require('./lib/isIP');
- var _isIP2 = _interopRequireDefault(_isIP);
- var _isFQDN = require('./lib/isFQDN');
- var _isFQDN2 = _interopRequireDefault(_isFQDN);
- var _isBoolean = require('./lib/isBoolean');
- var _isBoolean2 = _interopRequireDefault(_isBoolean);
- var _isAlpha = require('./lib/isAlpha');
- var _isAlpha2 = _interopRequireDefault(_isAlpha);
- var _isAlphanumeric = require('./lib/isAlphanumeric');
- var _isAlphanumeric2 = _interopRequireDefault(_isAlphanumeric);
- var _isNumeric = require('./lib/isNumeric');
- var _isNumeric2 = _interopRequireDefault(_isNumeric);
- var _isLowercase = require('./lib/isLowercase');
- var _isLowercase2 = _interopRequireDefault(_isLowercase);
- var _isUppercase = require('./lib/isUppercase');
- var _isUppercase2 = _interopRequireDefault(_isUppercase);
- var _isAscii = require('./lib/isAscii');
- var _isAscii2 = _interopRequireDefault(_isAscii);
- var _isFullWidth = require('./lib/isFullWidth');
- var _isFullWidth2 = _interopRequireDefault(_isFullWidth);
- var _isHalfWidth = require('./lib/isHalfWidth');
- var _isHalfWidth2 = _interopRequireDefault(_isHalfWidth);
- var _isVariableWidth = require('./lib/isVariableWidth');
- var _isVariableWidth2 = _interopRequireDefault(_isVariableWidth);
- var _isMultibyte = require('./lib/isMultibyte');
- var _isMultibyte2 = _interopRequireDefault(_isMultibyte);
- var _isSurrogatePair = require('./lib/isSurrogatePair');
- var _isSurrogatePair2 = _interopRequireDefault(_isSurrogatePair);
- var _isInt = require('./lib/isInt');
- var _isInt2 = _interopRequireDefault(_isInt);
- var _isFloat = require('./lib/isFloat');
- var _isFloat2 = _interopRequireDefault(_isFloat);
- var _isDecimal = require('./lib/isDecimal');
- var _isDecimal2 = _interopRequireDefault(_isDecimal);
- var _isHexadecimal = require('./lib/isHexadecimal');
- var _isHexadecimal2 = _interopRequireDefault(_isHexadecimal);
- var _isDivisibleBy = require('./lib/isDivisibleBy');
- var _isDivisibleBy2 = _interopRequireDefault(_isDivisibleBy);
- var _isHexColor = require('./lib/isHexColor');
- var _isHexColor2 = _interopRequireDefault(_isHexColor);
- var _isMD = require('./lib/isMD5');
- var _isMD2 = _interopRequireDefault(_isMD);
- var _isJSON = require('./lib/isJSON');
- var _isJSON2 = _interopRequireDefault(_isJSON);
- var _isNull = require('./lib/isNull');
- var _isNull2 = _interopRequireDefault(_isNull);
- var _isLength = require('./lib/isLength');
- var _isLength2 = _interopRequireDefault(_isLength);
- var _isByteLength = require('./lib/isByteLength');
- var _isByteLength2 = _interopRequireDefault(_isByteLength);
- var _isUUID = require('./lib/isUUID');
- var _isUUID2 = _interopRequireDefault(_isUUID);
- var _isMongoId = require('./lib/isMongoId');
- var _isMongoId2 = _interopRequireDefault(_isMongoId);
- var _isDate = require('./lib/isDate');
- var _isDate2 = _interopRequireDefault(_isDate);
- var _isAfter = require('./lib/isAfter');
- var _isAfter2 = _interopRequireDefault(_isAfter);
- var _isBefore = require('./lib/isBefore');
- var _isBefore2 = _interopRequireDefault(_isBefore);
- var _isIn = require('./lib/isIn');
- var _isIn2 = _interopRequireDefault(_isIn);
- var _isCreditCard = require('./lib/isCreditCard');
- var _isCreditCard2 = _interopRequireDefault(_isCreditCard);
- var _isISIN = require('./lib/isISIN');
- var _isISIN2 = _interopRequireDefault(_isISIN);
- var _isISBN = require('./lib/isISBN');
- var _isISBN2 = _interopRequireDefault(_isISBN);
- var _isMobilePhone = require('./lib/isMobilePhone');
- var _isMobilePhone2 = _interopRequireDefault(_isMobilePhone);
- var _isCurrency = require('./lib/isCurrency');
- var _isCurrency2 = _interopRequireDefault(_isCurrency);
- var _isISO = require('./lib/isISO8601');
- var _isISO2 = _interopRequireDefault(_isISO);
- var _isBase = require('./lib/isBase64');
- var _isBase2 = _interopRequireDefault(_isBase);
- var _isDataURI = require('./lib/isDataURI');
- var _isDataURI2 = _interopRequireDefault(_isDataURI);
- var _ltrim = require('./lib/ltrim');
- var _ltrim2 = _interopRequireDefault(_ltrim);
- var _rtrim = require('./lib/rtrim');
- var _rtrim2 = _interopRequireDefault(_rtrim);
- var _trim = require('./lib/trim');
- var _trim2 = _interopRequireDefault(_trim);
- var _escape = require('./lib/escape');
- var _escape2 = _interopRequireDefault(_escape);
- var _unescape = require('./lib/unescape');
- var _unescape2 = _interopRequireDefault(_unescape);
- var _stripLow = require('./lib/stripLow');
- var _stripLow2 = _interopRequireDefault(_stripLow);
- var _whitelist = require('./lib/whitelist');
- var _whitelist2 = _interopRequireDefault(_whitelist);
- var _blacklist = require('./lib/blacklist');
- var _blacklist2 = _interopRequireDefault(_blacklist);
- var _isWhitelisted = require('./lib/isWhitelisted');
- var _isWhitelisted2 = _interopRequireDefault(_isWhitelisted);
- var _normalizeEmail = require('./lib/normalizeEmail');
- var _normalizeEmail2 = _interopRequireDefault(_normalizeEmail);
- var _toString = require('./lib/util/toString');
- var _toString2 = _interopRequireDefault(_toString);
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- var version = '5.7.0';
- var validator = {
- version: version,
- toDate: _toDate2.default,
- toFloat: _toFloat2.default, toInt: _toInt2.default,
- toBoolean: _toBoolean2.default,
- equals: _equals2.default, contains: _contains2.default, matches: _matches2.default,
- isEmail: _isEmail2.default, isURL: _isURL2.default, isMACAddress: _isMACAddress2.default, isIP: _isIP2.default, isFQDN: _isFQDN2.default,
- isBoolean: _isBoolean2.default,
- isAlpha: _isAlpha2.default, isAlphanumeric: _isAlphanumeric2.default, isNumeric: _isNumeric2.default, isLowercase: _isLowercase2.default, isUppercase: _isUppercase2.default,
- isAscii: _isAscii2.default, isFullWidth: _isFullWidth2.default, isHalfWidth: _isHalfWidth2.default, isVariableWidth: _isVariableWidth2.default,
- isMultibyte: _isMultibyte2.default, isSurrogatePair: _isSurrogatePair2.default,
- isInt: _isInt2.default, isFloat: _isFloat2.default, isDecimal: _isDecimal2.default, isHexadecimal: _isHexadecimal2.default, isDivisibleBy: _isDivisibleBy2.default,
- isHexColor: _isHexColor2.default,
- isMD5: _isMD2.default,
- isJSON: _isJSON2.default,
- isNull: _isNull2.default,
- isLength: _isLength2.default, isByteLength: _isByteLength2.default,
- isUUID: _isUUID2.default, isMongoId: _isMongoId2.default,
- isDate: _isDate2.default, isAfter: _isAfter2.default, isBefore: _isBefore2.default,
- isIn: _isIn2.default,
- isCreditCard: _isCreditCard2.default,
- isISIN: _isISIN2.default, isISBN: _isISBN2.default,
- isMobilePhone: _isMobilePhone2.default,
- isCurrency: _isCurrency2.default,
- isISO8601: _isISO2.default,
- isBase64: _isBase2.default, isDataURI: _isDataURI2.default,
- ltrim: _ltrim2.default, rtrim: _rtrim2.default, trim: _trim2.default,
- escape: _escape2.default, unescape: _unescape2.default, stripLow: _stripLow2.default,
- whitelist: _whitelist2.default, blacklist: _blacklist2.default,
- isWhitelisted: _isWhitelisted2.default,
- normalizeEmail: _normalizeEmail2.default,
- toString: _toString2.default
- };
- exports.default = validator;
- module.exports = exports['default'];
|