diff --git a/package-lock.json b/package-lock.json index d0a30e5..e8b48ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5654,10 +5654,10 @@ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, - "isemail": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.0.0.tgz", - "integrity": "sha512-rz0ng/c+fX+zACpLgDB8fnUQ845WSU06f4hlhk4K8TJxmR6f5hyvitu9a9JdMD7aq/P4E0XdG1uaab2OiXgHlA==", + "isemail-es5": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isemail-es5/-/isemail-es5-3.1.1.tgz", + "integrity": "sha512-ocfNWbNWikQhoEeKS6ArfVouyXHGmjsZzKEX6aCtKcI4ltasAWgMDqcOPE62QMXqmPSV+sYXtY4vsHEgmoazzw==", "requires": { "punycode": "2.1.0" }, diff --git a/package.json b/package.json index 3f0a425..48d9368 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,6 @@ "semantic-release": "^15.0.0" }, "dependencies": { - "isemail": "^3.0.0" + "isemail-es5": "^3.1.1" } } diff --git a/src/index.js b/src/index.js index bd57f40..56f6565 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import isEmail from 'isemail'; +import isEmail from 'isemail-es5'; const requiredEmailPropType = (props, propName, componentName) => { const value = props[propName]; diff --git a/src/index.test.js b/src/index.test.js index 0f4326b..5e02ccd 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -1,4 +1,4 @@ -import isEmail from 'isemail'; +import isEmail from 'isemail-es5'; import emailPropType from './index';