@upyo/jmap 0.6.0-dev.336 → 0.6.0-dev.340
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -352,14 +352,14 @@ function extractCustomHeaders(message) {
|
|
|
352
352
|
function buildBodyStructure(message, uploadedBlobs) {
|
|
353
353
|
const bodyValues = {};
|
|
354
354
|
const parts = [];
|
|
355
|
-
if ("text" in message.content && message.content.text) {
|
|
355
|
+
if ("text" in message.content && message.content.text !== void 0) {
|
|
356
356
|
bodyValues["text"] = { value: message.content.text };
|
|
357
357
|
parts.push({
|
|
358
358
|
partId: "text",
|
|
359
359
|
type: "text/plain; charset=utf-8"
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
if ("html" in message.content && message.content.html) {
|
|
362
|
+
if ("html" in message.content && message.content.html !== void 0) {
|
|
363
363
|
bodyValues["html"] = { value: message.content.html };
|
|
364
364
|
parts.push({
|
|
365
365
|
partId: "html",
|
package/dist/index.js
CHANGED
|
@@ -329,14 +329,14 @@ function extractCustomHeaders(message) {
|
|
|
329
329
|
function buildBodyStructure(message, uploadedBlobs) {
|
|
330
330
|
const bodyValues = {};
|
|
331
331
|
const parts = [];
|
|
332
|
-
if ("text" in message.content && message.content.text) {
|
|
332
|
+
if ("text" in message.content && message.content.text !== void 0) {
|
|
333
333
|
bodyValues["text"] = { value: message.content.text };
|
|
334
334
|
parts.push({
|
|
335
335
|
partId: "text",
|
|
336
336
|
type: "text/plain; charset=utf-8"
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
if ("html" in message.content && message.content.html) {
|
|
339
|
+
if ("html" in message.content && message.content.html !== void 0) {
|
|
340
340
|
bodyValues["html"] = { value: message.content.html };
|
|
341
341
|
parts.push({
|
|
342
342
|
partId: "html",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upyo/jmap",
|
|
3
|
-
"version": "0.6.0-dev.
|
|
3
|
+
"version": "0.6.0-dev.340",
|
|
4
4
|
"description": "JMAP transport for Upyo email library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@upyo/core": "0.6.0-dev.
|
|
56
|
+
"@upyo/core": "0.6.0-dev.340+6bb5a853"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"jmap-rfc-types": "^0.1.2",
|