log-segment
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -7,2 +7,3 @@ 'use strict' | ||
const nodemailer = require('nodemailer') | ||
const isHtml = require('is-html') | ||
@@ -489,3 +490,7 @@ // ? Error.stackTraceLimit = Infinity; | ||
const _options = tools.object.clone(email.options) | ||
_options.text = message + '\n' | ||
if (isHtml(message)) { | ||
_options.html = message | ||
} else { | ||
_options.text = message + '\n' | ||
} | ||
@@ -492,0 +497,0 @@ email._transporter.sendMail(_options, (err, info) => { |
{ | ||
"name": "log-segment", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "logger with partition", | ||
@@ -10,2 +10,3 @@ "main": "main.js", | ||
"fs-extra": "^3.x", | ||
"is-html": "^1.1.x", | ||
"nodemailer": "^4.x" | ||
@@ -12,0 +13,0 @@ }, |
24811
582
5
+ Addedis-html@^1.1.x
+ Addedhtml-tags@1.2.0(transitive)
+ Addedis-html@1.1.0(transitive)