emailjs-mime-builder
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -68,4 +68,2 @@ 'use strict'; | ||
// console.log(addresses) | ||
// console.log(uniqueList) | ||
var values = [];[].concat(addresses).forEach(function (address) { | ||
@@ -167,5 +165,3 @@ if (address.address) { | ||
default: | ||
value = (value || '').toString().replace(/\r?\n|\r/g, ' '); | ||
// mimeWordsEncode only encodes if needed, otherwise the original string is returned | ||
return (0, _emailjsMimeCodec.mimeWordsEncode)(value, 'Q'); | ||
return (0, _emailjsMimeCodec.mimeWordsEncode)((value || '').toString().replace(/\r?\n|\r/g, ' '), 'B'); | ||
} | ||
@@ -237,2 +233,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy5qcyJdLCJuYW1lcyI6WyJpc1BsYWluVGV4dCIsImNvbnZlcnRBZGRyZXNzZXMiLCJwYXJzZUFkZHJlc3NlcyIsImVuY29kZUhlYWRlclZhbHVlIiwibm9ybWFsaXplSGVhZGVyS2V5IiwiZ2VuZXJhdGVCb3VuZGFyeSIsImVzY2FwZUhlYWRlckFyZ3VtZW50IiwiYnVpbGRIZWFkZXJWYWx1ZSIsImVuY29kZUFkZHJlc3NOYW1lIiwibmFtZSIsInRlc3QiLCJyZXBsYWNlIiwidmFsdWUiLCJhZGRyZXNzZXMiLCJ1bmlxdWVMaXN0IiwidmFsdWVzIiwiY29uY2F0IiwiZm9yRWFjaCIsImFkZHJlc3MiLCJ1c2VyIiwiZG9tYWluIiwic3Vic3RyIiwicHVzaCIsImluZGV4T2YiLCJncm91cCIsImxlbmd0aCIsInRyaW0iLCJqb2luIiwibWFwIiwia2V5IiwiY2hhckF0IiwiYXBwbHkiLCJlbG0iLCJzdHIiLCJzcGxpdCIsInRvU3RyaW5nIiwidG9Mb3dlckNhc2UiLCJjIiwidG9VcHBlckNhc2UiLCJub2RlSWQiLCJiYXNlQm91bmRhcnkiLCJ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BzbyBubyBuZWVkIHRvIHVzZSBlbmNsb3NpbmcgcXVvdGVzXG4gICAgICAgIC8vIGluIGZhY3QgdXNpbmcgcXVvdGVzIG1pZ2h0IGVuZCB1cCB3aXRoIGludmFsaWQgZmlsZW5hbWVzIGluIHNvbWUgY2xpZW50c1xuICAgICAgICBwYXJhbXNBcnJheS5wdXNoKGVuY29kZWRQYXJhbS5rZXkgKyAnPScgKyBlbmNvZGVkUGFyYW0udmFsdWUpXG4gICAgICB9KVxuICAgIH0gZWxzZSB7XG4gICAgICBwYXJhbXNBcnJheS5wdXNoKHBhcmFtICsgJz0nICsgZXNjYXBlSGVhZGVyQXJndW1lbnQoc3RydWN0dXJlZC5wYXJhbXNbcGFyYW1dKSlcbiAgICB9XG4gIH0pXG5cbiAgcmV0dXJuIHN0cnVjdHVyZWQudmFsdWUgKyAocGFyYW1zQXJyYXkubGVuZ3RoID8gJzsgJyArIHBhcmFtc0FycmF5LmpvaW4oJzsgJykgOiAnJylcbn1cbiJdfQ== |
{ | ||
"name": "emailjs-mime-builder", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"homepage": "https://github.com/emailjs/emailjs-mime-builder", | ||
@@ -26,3 +26,3 @@ "description": "emailjs-mime-builder is a low level rfc2822 message composer. Define your own mime tree, no magic included.", | ||
"emailjs-addressparser": "^2.0.2", | ||
"emailjs-mime-codec": "^2.0.3", | ||
"emailjs-mime-codec": "^2.0.5", | ||
"emailjs-mime-types": "^1.0.0", | ||
@@ -29,0 +29,0 @@ "punycode": "^2.1.0", |
@@ -273,24 +273,8 @@ /* eslint-disable no-unused-expressions */ | ||
.setHeader({ | ||
subject: 'jõgeval istus kägu metsas' | ||
subject: 'Привет и до свидания' | ||
}).build() | ||
expect(/^Subject: =\?UTF-8\?Q\?j=C3=B5geval\?= istus =\?UTF-8\?Q\?k=C3=A4gu\?= metsas$/m.test(msg)).to.be.true | ||
expect(msg).to.contain('Subject: =?UTF-8?B?0J/RgNC40LLQtdGCINC4INC00L4g0YHQstC40LTQsNC90LjRjw==?=') | ||
}) | ||
it('should have unicode subject with strange characters', function () { | ||
const msg = new Mimebuilder('text/plain') | ||
.setHeader({ | ||
subject: 'ˆ¸ÁÌÓıÏˇÁÛ^¸\\ÁıˆÌÁÛØ^\\˜Û˝™ˇıÓ¸^\\˜fi^\\·\\˜Ø^£˜#fi^\\£fi^\\£fi^\\' | ||
}).build() | ||
expect(msg.match(/\bSubject: [^\r]*\r\n( [^\r]*\r\n)*/)[0]).to.equal( | ||
'Subject: =?UTF-8?Q?=CB=86=C2=B8=C3=81=C3=8C=C3=93=C4=B1=C3=8F=CB=87?=\r\n' + | ||
' =?UTF-8?Q?=C3=81=C3=9B=5E=C2=B8=5C=C3=81=C4=B1=CB=86=C3=8C?=\r\n' + | ||
' =?UTF-8?Q?=C3=81=C3=9B=C3=98=5E=5C=CB=9C=C3=9B=CB=9D=E2=84=A2?=\r\n' + | ||
' =?UTF-8?Q?=CB=87=C4=B1=C3=93=C2=B8=5E=5C=CB=9C=EF=AC=81=5E=5C?=\r\n' + | ||
' =?UTF-8?Q?=C2=B7=5C=CB=9C=C3=98=5E=C2=A3=CB=9C=23=EF=AC=81=5E?=\r\n' + | ||
' =?UTF-8?Q?=5C=C2=A3=EF=AC=81=5E=5C=C2=A3=EF=AC=81=5E=5C?=\r\n' | ||
) | ||
}) | ||
it('should setContent (arraybuffer)', function () { | ||
@@ -297,0 +281,0 @@ const arr = new Uint8Array(256) |
@@ -135,3 +135,3 @@ /* eslint-disable no-unused-expressions */ | ||
it('should encode non ascii characters', function () { | ||
expect(encodeHeaderValue('x-my', 'test jõgeva value')).to.equal('test =?UTF-8?Q?j=C3=B5geva?= value') | ||
expect(encodeHeaderValue('x-my', 'test jõgeva value')).to.equal('test =?UTF-8?B?asO1Z2V2YQ==?= value') | ||
}) | ||
@@ -138,0 +138,0 @@ |
@@ -48,4 +48,2 @@ /* eslint-disable node/no-deprecated-api */ | ||
export function convertAddresses (addresses = [], uniqueList = []) { | ||
// console.log(addresses) | ||
// console.log(uniqueList) | ||
var values = [] | ||
@@ -143,5 +141,3 @@ | ||
default: | ||
value = (value || '').toString().replace(/\r?\n|\r/g, ' ') | ||
// mimeWordsEncode only encodes if needed, otherwise the original string is returned | ||
return mimeWordsEncode(value, 'Q') | ||
return mimeWordsEncode((value || '').toString().replace(/\r?\n|\r/g, ' '), 'B') | ||
} | ||
@@ -148,0 +144,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
128119
1915
Updatedemailjs-mime-codec@^2.0.5