Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smtp-connection

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-connection - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

4

CHANGELOG.md
# 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 @@

4

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc