Socket
Socket
Sign inDemoInstall

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.8 to 2.0.0-beta.0

.eslintrc.js

6

CHANGELOG.md
# Changelog
## v2.0.0-beta.0 2016-01-01
* Replaced jshint with eslint
* Handle message stream errors
* Use bunyan compatible logger interface instead of emitting 'log' events
## v1.3.8 2015-12-29

@@ -4,0 +10,0 @@

15

Gruntfile.js
'use strict';
module.exports = function(grunt) {
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: ['src/*.js', 'test/*.js'],
options: {
jshintrc: '.jshintrc'
}
eslint: {
all: ['lib/*.js', 'test/*.js', 'Gruntfile.js', '.eslintrc.js']
},

@@ -25,7 +22,7 @@

// Load the plugin(s)
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
// Tasks
grunt.registerTask('default', ['jshint', 'mochaTest']);
};
grunt.registerTask('default', ['eslint', 'mochaTest']);
};

6

package.json
{
"name": "smtp-connection",
"version": "1.3.8",
"version": "2.0.0-beta.0",
"description": "Connect to SMTP servers",
"main": "src/smtp-connection.js",
"main": "lib/smtp-connection.js",
"directories": {

@@ -28,3 +28,3 @@ "test": "test"

"grunt": "^0.4.5",
"grunt-contrib-jshint": "^0.11.3",
"grunt-eslint": "^17.3.1",
"grunt-mocha-test": "^0.12.7",

@@ -31,0 +31,0 @@ "mocha": "^2.3.4",

@@ -39,3 +39,3 @@ # smtp-connection

* **options.socketTimeout** how many milliseconds of inactivity to allow
* **options.debug** if true, the connection emits all traffic between client and server as 'log' events
* **options.logger** optional [bunyan](https://github.com/trentm/node-bunyan) compatible logger instance. By default logs to console. If set to `false` then nothing is logged
* **options.lmtp** if true, uses LMTP instead of SMTP to talk to the server. Partial support, does not work well with multiple recipients

@@ -53,3 +53,2 @@ * **options.authMethod** defines preferred authentication method, e.g. 'PLAIN'

* **'end'** when the instance is destroyed
* **'log'** *(data)* emitted for all traffic when debug option is set to true

@@ -56,0 +55,0 @@ ### connect

Sorry, the diff of this file is not supported yet

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