Comparing version 0.2.9 to 0.3.0
{ | ||
"name": "emailjs", | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments (files, streams and strings) from node.js to any smtp server", | ||
"version": "0.2.9", | ||
"author": "eleith", | ||
"version": "0.3.0", | ||
"author": "eleith", | ||
"contributors":["izuzak", "Hiverness", "mscdex"], | ||
"repository": | ||
"repository": | ||
{ | ||
@@ -14,17 +14,18 @@ "type": "git", | ||
{ | ||
"mocha": ">= 1.0.3", | ||
"chai": ">= 1.0.3", | ||
"simplesmtp" : ">= 0.1.18", | ||
"mailparser" : ">= 0.2.26" | ||
"mocha": ">= 1.2.2", | ||
"chai": ">= 1.1.0", | ||
"simplesmtp": ">= 0.1.18", | ||
"mailparser": "0.2.27", | ||
"iconv": "1.1.3" | ||
}, | ||
"dependencies": | ||
"optionalDependencies": | ||
{ | ||
"buffertools" : ">= 1.0.8" | ||
"bufferjs": "*" | ||
}, | ||
"engine": ["node >= 0.6.15"], | ||
"main": "email", | ||
"engine": ["node >= 0.6"], | ||
"main": "email", | ||
"scripts": | ||
{ | ||
"test": "mocha -R spec -t 5000 test/*.js" | ||
"test": "mocha -R spec -t 5000" | ||
} | ||
} |
@@ -1,3 +0,4 @@ | ||
# emailjs (v0.2.9) | ||
# emailjs (v0.3.0) [![Build Status](https://secure.travis-ci.org/eleith/emailjs.png)](http://travis-ci.org/eleith/emailjs) | ||
send emails, html and attachments (files, streams and strings) from node.js to any smtp server | ||
@@ -4,0 +5,0 @@ |
@@ -5,3 +5,2 @@ var stream = require('stream'); | ||
var os = require('os'); | ||
var buffertools= require('buffertools'); | ||
var path = require('path'); | ||
@@ -15,2 +14,8 @@ var CRLF = "\r\n"; | ||
// support for nodejs without Buffer.concat native function | ||
if(!Buffer.concat) | ||
{ | ||
require("bufferjs/concat"); | ||
} | ||
var generate_boundary = function() | ||
@@ -137,3 +142,4 @@ { | ||
{ | ||
if(!path.existsSync(attachment.path)) | ||
// migrating path->fs for existsSync) | ||
if(!(fs.existsSync || path.existsSync)(attachment.path)) | ||
failed.push(attachment.path + " does not exist"); | ||
@@ -349,3 +355,3 @@ } | ||
{ | ||
var buffer2 = buffertools.concat(previous, buffer); | ||
var buffer2 = Buffer.concat([previous, buffer]); | ||
previous = null; // free up the buffer | ||
@@ -352,0 +358,0 @@ buffer = null; // free up the buffer |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
156
1
55552
5
11
1601
+ Addedbufferjs@3.0.1(transitive)
- Removedbuffertools@>= 1.0.8
- Removedbuffertools@2.1.6(transitive)