-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b958bd7
commit 951c722
Showing
5 changed files
with
245 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ yarn.lock | |
/index.js | ||
validator.js | ||
validator.min.js | ||
|
||
/validator-main.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,241 +1,4 @@ | ||
import toDate from './lib/toDate'; | ||
import toFloat from './lib/toFloat'; | ||
import toInt from './lib/toInt'; | ||
import toBoolean from './lib/toBoolean'; | ||
import equals from './lib/equals'; | ||
import contains from './lib/contains'; | ||
import matches from './lib/matches'; | ||
|
||
import isEmail from './lib/isEmail'; | ||
import isURL from './lib/isURL'; | ||
import isMACAddress from './lib/isMACAddress'; | ||
import isIP from './lib/isIP'; | ||
import isIPRange from './lib/isIPRange'; | ||
import isFQDN from './lib/isFQDN'; | ||
import isDate from './lib/isDate'; | ||
import isTime from './lib/isTime'; | ||
|
||
import isBoolean from './lib/isBoolean'; | ||
import isLocale from './lib/isLocale'; | ||
|
||
import isAlpha, { locales as isAlphaLocales } from './lib/isAlpha'; | ||
import isAlphanumeric, { locales as isAlphanumericLocales } from './lib/isAlphanumeric'; | ||
import isNumeric from './lib/isNumeric'; | ||
import isPassportNumber from './lib/isPassportNumber'; | ||
import isPort from './lib/isPort'; | ||
import isLowercase from './lib/isLowercase'; | ||
import isUppercase from './lib/isUppercase'; | ||
|
||
import isIMEI from './lib/isIMEI'; | ||
|
||
import isAscii from './lib/isAscii'; | ||
import isFullWidth from './lib/isFullWidth'; | ||
import isHalfWidth from './lib/isHalfWidth'; | ||
import isVariableWidth from './lib/isVariableWidth'; | ||
import isMultibyte from './lib/isMultibyte'; | ||
import isSemVer from './lib/isSemVer'; | ||
import isSurrogatePair from './lib/isSurrogatePair'; | ||
|
||
import isInt from './lib/isInt'; | ||
import isFloat, { locales as isFloatLocales } from './lib/isFloat'; | ||
import isDecimal from './lib/isDecimal'; | ||
import isHexadecimal from './lib/isHexadecimal'; | ||
import isOctal from './lib/isOctal'; | ||
import isDivisibleBy from './lib/isDivisibleBy'; | ||
|
||
import isHexColor from './lib/isHexColor'; | ||
import isRgbColor from './lib/isRgbColor'; | ||
import isHSL from './lib/isHSL'; | ||
|
||
import isISRC from './lib/isISRC'; | ||
|
||
import isIBAN, { locales as ibanLocales } from './lib/isIBAN'; | ||
import isBIC from './lib/isBIC'; | ||
|
||
import isMD5 from './lib/isMD5'; | ||
import isHash from './lib/isHash'; | ||
import isJWT from './lib/isJWT'; | ||
|
||
import isJSON from './lib/isJSON'; | ||
import isEmpty from './lib/isEmpty'; | ||
|
||
import isLength from './lib/isLength'; | ||
import isByteLength from './lib/isByteLength'; | ||
|
||
import isUUID from './lib/isUUID'; | ||
import isMongoId from './lib/isMongoId'; | ||
|
||
import isAfter from './lib/isAfter'; | ||
import isBefore from './lib/isBefore'; | ||
|
||
import isIn from './lib/isIn'; | ||
|
||
import isLuhnNumber from './lib/isLuhnNumber'; | ||
import isCreditCard from './lib/isCreditCard'; | ||
import isIdentityCard from './lib/isIdentityCard'; | ||
|
||
import isEAN from './lib/isEAN'; | ||
import isISIN from './lib/isISIN'; | ||
import isISBN from './lib/isISBN'; | ||
import isISSN from './lib/isISSN'; | ||
import isTaxID from './lib/isTaxID'; | ||
|
||
import isMobilePhone, { locales as isMobilePhoneLocales } from './lib/isMobilePhone'; | ||
|
||
import isEthereumAddress from './lib/isEthereumAddress'; | ||
|
||
import isCurrency from './lib/isCurrency'; | ||
|
||
import isBtcAddress from './lib/isBtcAddress'; | ||
|
||
import { isISO6346, isFreightContainerID } from './lib/isISO6346'; | ||
import isISO6391 from './lib/isISO6391'; | ||
import isISO8601 from './lib/isISO8601'; | ||
import isRFC3339 from './lib/isRFC3339'; | ||
import isISO31661Alpha2 from './lib/isISO31661Alpha2'; | ||
import isISO31661Alpha3 from './lib/isISO31661Alpha3'; | ||
import isISO4217 from './lib/isISO4217'; | ||
|
||
import isBase32 from './lib/isBase32'; | ||
import isBase58 from './lib/isBase58'; | ||
import isBase64 from './lib/isBase64'; | ||
import isDataURI from './lib/isDataURI'; | ||
import isMagnetURI from './lib/isMagnetURI'; | ||
import isMailtoURI from './lib/isMailtoURI'; | ||
|
||
import isMimeType from './lib/isMimeType'; | ||
|
||
import isLatLong from './lib/isLatLong'; | ||
import isPostalCode, { locales as isPostalCodeLocales } from './lib/isPostalCode'; | ||
|
||
import ltrim from './lib/ltrim'; | ||
import rtrim from './lib/rtrim'; | ||
import trim from './lib/trim'; | ||
import escape from './lib/escape'; | ||
import unescape from './lib/unescape'; | ||
import stripLow from './lib/stripLow'; | ||
import whitelist from './lib/whitelist'; | ||
import blacklist from './lib/blacklist'; | ||
import isWhitelisted from './lib/isWhitelisted'; | ||
|
||
import normalizeEmail from './lib/normalizeEmail'; | ||
|
||
import isSlug from './lib/isSlug'; | ||
import isLicensePlate from './lib/isLicensePlate'; | ||
import isStrongPassword from './lib/isStrongPassword'; | ||
|
||
import isVAT from './lib/isVAT'; | ||
|
||
const version = '13.11.0'; | ||
|
||
const validator = { | ||
version, | ||
toDate, | ||
toFloat, | ||
toInt, | ||
toBoolean, | ||
equals, | ||
contains, | ||
matches, | ||
isEmail, | ||
isURL, | ||
isMACAddress, | ||
isIP, | ||
isIPRange, | ||
isFQDN, | ||
isBoolean, | ||
isIBAN, | ||
isBIC, | ||
isAlpha, | ||
isAlphaLocales, | ||
isAlphanumeric, | ||
isAlphanumericLocales, | ||
isNumeric, | ||
isPassportNumber, | ||
isPort, | ||
isLowercase, | ||
isUppercase, | ||
isAscii, | ||
isFullWidth, | ||
isHalfWidth, | ||
isVariableWidth, | ||
isMultibyte, | ||
isSemVer, | ||
isSurrogatePair, | ||
isInt, | ||
isIMEI, | ||
isFloat, | ||
isFloatLocales, | ||
isDecimal, | ||
isHexadecimal, | ||
isOctal, | ||
isDivisibleBy, | ||
isHexColor, | ||
isRgbColor, | ||
isHSL, | ||
isISRC, | ||
isMD5, | ||
isHash, | ||
isJWT, | ||
isJSON, | ||
isEmpty, | ||
isLength, | ||
isLocale, | ||
isByteLength, | ||
isUUID, | ||
isMongoId, | ||
isAfter, | ||
isBefore, | ||
isIn, | ||
isLuhnNumber, | ||
isCreditCard, | ||
isIdentityCard, | ||
isEAN, | ||
isISIN, | ||
isISBN, | ||
isISSN, | ||
isMobilePhone, | ||
isMobilePhoneLocales, | ||
isPostalCode, | ||
isPostalCodeLocales, | ||
isEthereumAddress, | ||
isCurrency, | ||
isBtcAddress, | ||
isISO6346, | ||
isFreightContainerID, | ||
isISO6391, | ||
isISO8601, | ||
isRFC3339, | ||
isISO31661Alpha2, | ||
isISO31661Alpha3, | ||
isISO4217, | ||
isBase32, | ||
isBase58, | ||
isBase64, | ||
isDataURI, | ||
isMagnetURI, | ||
isMailtoURI, | ||
isMimeType, | ||
isLatLong, | ||
ltrim, | ||
rtrim, | ||
trim, | ||
escape, | ||
unescape, | ||
stripLow, | ||
whitelist, | ||
blacklist, | ||
isWhitelisted, | ||
normalizeEmail, | ||
toString, | ||
isSlug, | ||
isStrongPassword, | ||
isTaxID, | ||
isDate, | ||
isTime, | ||
isLicensePlate, | ||
isVAT, | ||
ibanLocales, | ||
}; | ||
import * as validator from './validator-main'; | ||
|
||
export * from './validator-main'; | ||
export default validator; |
Oops, something went wrong.