@expandorg/validation
Advanced tools
Comparing version 0.2.7 to 0.2.8
{ | ||
"name": "@expandorg/validation", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "Expand UI validation library", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "52adc558bf22f55907b409dc701904277d3e4a1f" | ||
"gitHead": "b1a8e162484dd9fe6edf18d580d0b61a82a022a9" | ||
} |
// @flow | ||
import isEmail from 'validator/lib/isEmail'; | ||
import isNumeric from 'validator/lib/isNumeric'; | ||
import isURL from 'validator/lib/isURL'; | ||
@@ -8,2 +9,3 @@ export const rules = { | ||
isEmail: (value: any) => typeof value !== 'undefined' && isEmail(value), | ||
isUrl: (value: any) => typeof value !== 'undefined' && isURL(value), | ||
isTrue: (value: any) => value === true, | ||
@@ -10,0 +12,0 @@ isNumber: (value: any) => |
19974
86