diff options
-rw-r--r-- | node_modules/npm-user-validate/npm-user-validate.js | 6 | ||||
-rw-r--r-- | node_modules/npm-user-validate/package.json | 2 | ||||
-rw-r--r-- | package-lock.json | 14 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 14 insertions, 10 deletions
diff --git a/node_modules/npm-user-validate/npm-user-validate.js b/node_modules/npm-user-validate/npm-user-validate.js index 9250ce33a..ffd8791c7 100644 --- a/node_modules/npm-user-validate/npm-user-validate.js +++ b/node_modules/npm-user-validate/npm-user-validate.js @@ -11,6 +11,7 @@ var requirements = exports.requirements = { }, password: {}, email: { + length: 'Email length must be less then or equal to 254 characters long', valid: 'Email must be an email address' } } @@ -45,7 +46,10 @@ function username (un) { } function email (em) { - if (!em.match(/^.+@.+\..+$/)) { + if (em.length > 254) { + return new Error(requirements.email.length) + } + if (!em.match(/^[^@]+@.+\..+$/)) { return new Error(requirements.email.valid) } diff --git a/node_modules/npm-user-validate/package.json b/node_modules/npm-user-validate/package.json index 0509bab94..ffcf1be7f 100644 --- a/node_modules/npm-user-validate/package.json +++ b/node_modules/npm-user-validate/package.json @@ -1,6 +1,6 @@ { "name": "npm-user-validate", - "version": "1.0.0", + "version": "1.0.1", "description": "User validations for npm", "main": "npm-user-validate.js", "devDependencies": { diff --git a/package-lock.json b/package-lock.json index d099ca8cb..a39d0acd8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,7 +123,7 @@ "npm-pick-manifest": "^6.1.0", "npm-profile": "^5.0.1", "npm-registry-fetch": "^8.1.4", - "npm-user-validate": "~1.0.0", + "npm-user-validate": "^1.0.1", "npmlog": "~4.1.2", "opener": "^1.5.2", "pacote": "^11.1.10", @@ -4114,9 +4114,9 @@ } }, "node_modules/npm-user-validate": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-1.0.0.tgz", - "integrity": "sha1-jOyg9c6gTU6TUZ73LQVXp1Ei6VE=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-1.0.1.tgz", + "integrity": "sha512-uQwcd/tY+h1jnEaze6cdX/LrhWhoBxfSknxentoqmIuStxUExxjWd3ULMLFPiFUrZKbOVMowH6Jq2FRWfmhcEw==", "inBundle": true }, "node_modules/npmlog": { @@ -11294,9 +11294,9 @@ } }, "npm-user-validate": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-1.0.0.tgz", - "integrity": "sha1-jOyg9c6gTU6TUZ73LQVXp1Ei6VE=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-1.0.1.tgz", + "integrity": "sha512-uQwcd/tY+h1jnEaze6cdX/LrhWhoBxfSknxentoqmIuStxUExxjWd3ULMLFPiFUrZKbOVMowH6Jq2FRWfmhcEw==" }, "npmlog": { "version": "4.1.2", diff --git a/package.json b/package.json index 37e7ca312..74b9957c1 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "npm-pick-manifest": "^6.1.0", "npm-profile": "^5.0.1", "npm-registry-fetch": "^8.1.4", - "npm-user-validate": "~1.0.0", + "npm-user-validate": "^1.0.1", "npmlog": "~4.1.2", "opener": "^1.5.2", "pacote": "^11.1.10", |