pixl-mail 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/mail.js +1 -0
  2. package/package.json +1 -1
package/mail.js CHANGED
@@ -106,6 +106,7 @@ module.exports = class Mailer {
106
106
 
107
107
  ['trace', 'debug', 'info', 'warn', 'error', 'fatal'].forEach( function(level) {
108
108
  self.options.logger[level] = function(entry, message, ...args) {
109
+ if (!entry) entry = {};
109
110
  message = util.format(message, ...args);
110
111
  self.logDebug(9, message, entry);
111
112
  log.push([ message, { date: Tools.timeNow(), level, ...entry } ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-mail",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A very simple class for sending e-mail via SMTP.",
5
5
  "author": "Joseph Huckaby <jhuckaby@gmail.com>",
6
6
  "homepage": "https://github.com/jhuckaby/pixl-mail",