smtp-connection
Advanced tools
Comparing version 1.3.4 to 1.3.5
# Changelog | ||
## v1.3.5 2015-12-19 | ||
* Validate to and from address to be valid e-mail addresses | ||
## v1.3.2 2015-12-16 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "smtp-connection", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Connect to SMTP servers", | ||
@@ -36,4 +36,4 @@ "main": "src/smtp-connection.js", | ||
"dependencies": { | ||
"isemail": "^2.1.0" | ||
"isemail": "^1.2.0" | ||
} | ||
} |
@@ -565,3 +565,3 @@ 'use strict'; | ||
if (this._envelope.from && !isemail.validate(this._envelope.from)) { | ||
if (this._envelope.from && !isemail(this._envelope.from)) { | ||
return callback(this._formatError('Invalid sender ' + JSON.stringify(this._envelope.from), 'EENVELOPE')); | ||
@@ -571,3 +571,3 @@ } | ||
for (var i = 0, len = this._envelope.to.length; i < len; i++) { | ||
if (!this._envelope.to[i] || !isemail.validate(this._envelope.to[i])) { | ||
if (!this._envelope.to[i] || !isemail(this._envelope.to[i])) { | ||
return callback(this._formatError('Invalid recipient ' + JSON.stringify(this._envelope.to[i]), 'EENVELOPE')); | ||
@@ -574,0 +574,0 @@ } |
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
43356
+ Addedisemail@1.2.0(transitive)
- Removedisemail@2.2.1(transitive)
Updatedisemail@^1.2.0