From 8510982bea0a298e204efebf8622cb2e3eb3e643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 3 Mar 2017 15:53:49 +0100 Subject: [PATCH] Update runtime dependencies - isemail@2 - loopback-phase@3 Skip update of nodemailer because it changed the license to GPL-like one --- common/models/user.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/models/user.js b/common/models/user.js index bcd08705..a51d512a 100644 --- a/common/models/user.js +++ b/common/models/user.js @@ -936,7 +936,7 @@ function emailValidator(err, done) { if (typeof value !== 'string') return err('string'); if (value === '') return; - if (!isEmail(value)) + if (!isEmail.validate(value)) return err('email'); } diff --git a/package.json b/package.json index 2692df9c..1b941ecf 100644 --- a/package.json +++ b/package.json @@ -47,10 +47,10 @@ "ejs": "^2.3.1", "express": "^4.14.0", "inflection": "^1.6.0", - "isemail": "^1.2.0", + "isemail": "^2.2.1", "loopback-connector-remote": "^3.0.0", "loopback-datasource-juggler": "^3.0.0", - "loopback-phase": "^1.2.0", + "loopback-phase": "^3.0.0", "nodemailer": "^2.5.0", "nodemailer-stub-transport": "^1.0.0", "serve-favicon": "^2.2.0",