Comparing version 3.10.0 to 3.11.0
# Changelog | ||
## 3.11.0 2016-11-03 | ||
* Allow setting additional envelope fields | ||
## 3.10.0 2016-09-05 | ||
@@ -4,0 +8,0 @@ |
@@ -753,2 +753,9 @@ 'use strict'; | ||
var standardFields = ['to', 'cc', 'bcc', 'from']; | ||
Object.keys(envelope).forEach(function (key) { | ||
if (standardFields.indexOf(key) === -1) { | ||
this._envelope[key] = envelope[key]; | ||
} | ||
}.bind(this)); | ||
return this; | ||
@@ -755,0 +762,0 @@ }; |
{ | ||
"name": "buildmail", | ||
"version": "3.10.0", | ||
"version": "3.11.0", | ||
"description": "buildmail is a low level rfc2822 message composer. Define your own mime tree, no magic included.", | ||
@@ -5,0 +5,0 @@ "author": "Andris Reinman <andris@kreata.ee>", |
@@ -355,3 +355,6 @@ /* eslint no-unused-expressions:0 */ | ||
to: 'B Name <b@b.b>, c@c.c', | ||
bcc: 'P P P, <u@u.u>' | ||
bcc: 'P P P, <u@u.u>', | ||
fooField: { | ||
barValue: "foobar" | ||
} | ||
}); | ||
@@ -362,3 +365,6 @@ var envelope = mb.getEnvelope(); | ||
from: 'a@a.a', | ||
to: ['b@b.b', 'c@c.c', 'u@u.u'] | ||
to: ['b@b.b', 'c@c.c', 'u@u.u'], | ||
fooField: { | ||
barValue: "foobar" | ||
} | ||
}); | ||
@@ -365,0 +371,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108924
2282