mail-time
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -396,3 +396,3 @@ const JoSk = require('josk'); | ||
if (typeof opts.to !== 'string' && (opts.to !== Array || !opts.to.length)) { | ||
if (typeof opts.to !== 'string' && (!(opts.to instanceof Array) || !opts.to.length)) { | ||
throw new Error('[mail-time] `mailOptions.to` is required and must be a string or non-empty Array'); | ||
@@ -399,0 +399,0 @@ } |
{ | ||
"name": "mail-time", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Bulletproof email queue on top of NodeMailer with support of multiple clusters and servers setup", | ||
@@ -49,12 +49,12 @@ "main": "index.js", | ||
"dependencies": { | ||
"deepmerge": "^2.0.1", | ||
"deepmerge": "^2.1.0", | ||
"josk": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^5.0.0", | ||
"mocha": "^5.1.1", | ||
"chai": "^4.1.2", | ||
"nodemailer": "^4.4.1", | ||
"mongodb": "^3.0.1", | ||
"nodemailer": "^4.6.4", | ||
"mongodb": "^3.0.7", | ||
"mail-time": "file://./" | ||
} | ||
} |
@@ -102,3 +102,3 @@ MailTime | ||
- When concatenation is enabled - Same emails wouldn't be sent twice, if for any reason, due to bad logic or application failure emails is sent twice or more times - here is solution to solve this annoying behavior | ||
- Balancing for multiple nodemailer's transports, two modes - `backup` and `balancing`. Most useful feature - allows to reduce the cost for SMTP services and add durability. So, if any of used transports is fails to send an email it will switch to next one | ||
- Balancing for multiple nodemailer's transports, two modes - `backup` and `balancing`. Most useful feature - allows to reduce the cost of SMTP services and add durability. So, if any of used transports are failing to send an email it will switch to next one | ||
- Sending retries for network and other failures | ||
@@ -115,3 +115,7 @@ - Template support with Mustache-like placeholders | ||
```shell | ||
# for node@>=8.9.0 | ||
npm install --save mail-time | ||
# for node@<8.9.0 | ||
npm install --save mail-time@=0.1.7 | ||
``` | ||
@@ -277,2 +281,16 @@ | ||
Testing | ||
====== | ||
```shell | ||
# Before run tests make sure NODE_ENV === development | ||
# Install NPM dependencies | ||
npm install --save-dev | ||
# Before run tests you need to have running MongoDB | ||
MONGO_URL="mongodb://127.0.0.1:27017/testCollectionName" npm test | ||
# Be patient, tests are taking around 2 mins | ||
``` | ||
Support this project: | ||
@@ -279,0 +297,0 @@ ====== |
@@ -16,5 +16,2 @@ if (!process.env.MONGO_URL) { | ||
// TODO: write more better tests | ||
describe('Has MailTime Object', () => { | ||
@@ -21,0 +18,0 @@ it('MailTime is Constructor', () => { |
Sorry, the diff of this file is not supported yet
52607
298
663
Updateddeepmerge@^2.1.0