New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emailjs

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emailjs - npm Package Compare versions

Comparing version

to
0.3.3

16

package.json
{
"name": "emailjs",
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server",
"version": "0.3.2",
"version": "0.3.3",
"author": "eleith",
"contributors":["izuzak", "Hiverness", "mscdex"],
"contributors":["izuzak", "Hiverness", "mscdex", "jimmybergman"],
"repository":

@@ -12,2 +12,10 @@ {

},
"dependencies":
{
"moment" : ">= 1.7.0"
},
"optionalDependencies":
{
"bufferjs": "=1.1.0"
},
"devDependencies":

@@ -21,6 +29,2 @@ {

},
"optionalDependencies":
{
"bufferjs": "*"
},
"engine": ["node >= 0.6"],

@@ -27,0 +31,0 @@ "main": "email",

@@ -1,2 +0,2 @@

# emailjs (v0.3.2) [![Build Status](https://secure.travis-ci.org/eleith/emailjs.png)](http://travis-ci.org/eleith/emailjs)
# emailjs (v0.3.3) [![Build Status](https://secure.travis-ci.org/eleith/emailjs.png)](http://travis-ci.org/eleith/emailjs)

@@ -3,0 +3,0 @@ send emails, html and attachments (files, streams and strings) from node.js to any smtp server

@@ -6,2 +6,3 @@ var stream = require('stream');

var path = require('path');
var moment = require('moment');
var CRLF = "\r\n";

@@ -35,3 +36,7 @@ var MIMECHUNK = 76; // MIME standard wants 76 char chunks when sending out.

this.alternative = null;
this.header = {"message-id":"<" + (new Date()).getTime() + "." + (counter++) + "." + process.pid + "@" + os.hostname() +">"};
var now = new Date();
this.header = {
"message-id":"<" + now.getTime() + "." + (counter++) + "." + process.pid + "@" + os.hostname() +">",
"date":moment().format("ddd, DD MMM YYYY HH:mm:ss ZZ")
};
this.content = "text/plain; charset=utf-8";

@@ -38,0 +43,0 @@