Skip to content

Commit

Permalink
Merge pull request #21 from jaebradley/use-isemail-es5
Browse files Browse the repository at this point in the history
fix(email-validator): use es5 compatible validator
  • Loading branch information
jaebradley authored Mar 15, 2018
2 parents 2bddc5e + ba55d89 commit 7fafb66
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"semantic-release": "^15.0.0"
},
"dependencies": {
"isemail": "^3.0.0"
"isemail-es5": "^3.1.1"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isEmail from 'isemail';
import isEmail from 'isemail-es5';

const requiredEmailPropType = (props, propName, componentName) => {
const value = props[propName];
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isEmail from 'isemail';
import isEmail from 'isemail-es5';

import emailPropType from './index';

Expand Down

0 comments on commit 7fafb66

Please sign in to comment.