@softeria/ms-365-mcp-server 0.193.1 → 0.193.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.
|
@@ -2679,7 +2679,7 @@ describe("graph-tools", () => {
|
|
|
2679
2679
|
async (_url, init) => {
|
|
2680
2680
|
ranges.push(init.headers["Content-Range"]);
|
|
2681
2681
|
uploaded += init.body.byteLength;
|
|
2682
|
-
return new Response(null, { status:
|
|
2682
|
+
return new Response(null, { status: uploaded === size ? 201 : 200 });
|
|
2683
2683
|
}
|
|
2684
2684
|
)
|
|
2685
2685
|
);
|
|
@@ -91,7 +91,10 @@ async function uploadAttachment(graphClient, upload, source) {
|
|
|
91
91
|
})
|
|
92
92
|
});
|
|
93
93
|
if (!session?.uploadUrl) throw new Error("Upload session returned no uploadUrl");
|
|
94
|
-
await streamToSession(session.uploadUrl, size, source);
|
|
94
|
+
const last = await streamToSession(session.uploadUrl, size, source);
|
|
95
|
+
if (last?.status !== 201) {
|
|
96
|
+
throw new Error(`Attachment upload session did not complete (HTTP ${last?.status ?? "none"})`);
|
|
97
|
+
}
|
|
95
98
|
return {};
|
|
96
99
|
}
|
|
97
100
|
async function uploadToDrive(graphClient, upload, source) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softeria/ms-365-mcp-server",
|
|
3
3
|
"mcpName": "io.github.Softeria/ms-365-mcp-server",
|
|
4
|
-
"version": "0.193.
|
|
4
|
+
"version": "0.193.2",
|
|
5
5
|
"description": " A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|