anchor-validation
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _isemail = require('isemail'); | ||
var _isemail2 = _interopRequireDefault(_isemail); | ||
var _getAge = require('./get-age'); | ||
@@ -81,5 +85,3 @@ | ||
var error = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; | ||
var emailRegex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i; | ||
return value && !emailRegex.test(value) ? error : undefined; | ||
return !_isemail2.default.validate(value) ? error : undefined; | ||
}; | ||
@@ -86,0 +88,0 @@ |
{ | ||
"name": "anchor-validation", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "anchor-validation for anchor-ui kit", | ||
@@ -32,14 +32,14 @@ "main": "index.js", | ||
"devDependencies": { | ||
"babel-cli": "^6.23.0", | ||
"babel-preset-env": "^1.2.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^3.17.0", | ||
"eslint-config-airbnb": "^14.1.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^4.0.0", | ||
"eslint-plugin-mocha": "^4.8.0", | ||
"eslint-plugin-react": "^6.10.0", | ||
"mocha": "^3.2.0", | ||
"nyc": "^10.1.2", | ||
"sinon": "^1.17.7" | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.15.0", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-mocha": "^4.11.0", | ||
"eslint-plugin-react": "^7.5.1", | ||
"mocha": "^4.1.0", | ||
"nyc": "^11.4.1", | ||
"sinon": "^4.1.4" | ||
}, | ||
@@ -52,4 +52,5 @@ "babel": { | ||
"dependencies": { | ||
"moment": "^2.18.1" | ||
"isemail": "^3.0.0", | ||
"moment": "^2.20.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7191
111
2
+ Addedisemail@^3.0.0
+ Addedisemail@3.2.0(transitive)
+ Addedpunycode@2.3.1(transitive)
Updatedmoment@^2.20.1