@upyo/jmap 0.6.0-dev.311 → 0.6.0-dev.312
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 +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -773,7 +773,7 @@ var JmapTransport = class {
|
|
|
773
773
|
const uploadedBlobs = /* @__PURE__ */ new Map();
|
|
774
774
|
for (const attachment of attachments) {
|
|
775
775
|
signal?.throwIfAborted();
|
|
776
|
-
const content = await attachment.content;
|
|
776
|
+
const content = await (0, __upyo_core.readAttachmentContent)(attachment.content, signal);
|
|
777
777
|
const arrayBuffer = content.buffer.slice(content.byteOffset, content.byteOffset + content.byteLength);
|
|
778
778
|
const blob = new Blob([arrayBuffer], { type: attachment.contentType });
|
|
779
779
|
const result = await uploadBlob(this.config, session.uploadUrl, accountId, blob, signal);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { combineSignals, createFailedReceipt, parseRetryAfter } from "@upyo/core";
|
|
1
|
+
import { combineSignals, createFailedReceipt, parseRetryAfter, readAttachmentContent } from "@upyo/core";
|
|
2
2
|
|
|
3
3
|
//#region src/errors.ts
|
|
4
4
|
/**
|
|
@@ -750,7 +750,7 @@ var JmapTransport = class {
|
|
|
750
750
|
const uploadedBlobs = /* @__PURE__ */ new Map();
|
|
751
751
|
for (const attachment of attachments) {
|
|
752
752
|
signal?.throwIfAborted();
|
|
753
|
-
const content = await attachment.content;
|
|
753
|
+
const content = await readAttachmentContent(attachment.content, signal);
|
|
754
754
|
const arrayBuffer = content.buffer.slice(content.byteOffset, content.byteOffset + content.byteLength);
|
|
755
755
|
const blob = new Blob([arrayBuffer], { type: attachment.contentType });
|
|
756
756
|
const result = await uploadBlob(this.config, session.uploadUrl, accountId, blob, signal);
|
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.312",
|
|
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.312+646e2370"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"jmap-rfc-types": "^0.1.2",
|