@softeria/ms-365-mcp-server 0.170.1 → 0.170.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.
- package/dist/lib/message-signoff.js +16 -7
- package/package.json +1 -1
|
@@ -86,20 +86,29 @@ function signWhenBodyPresent(target, payload, prefix, suffix) {
|
|
|
86
86
|
function signReplyForwardDraft(target, payload, prefix, suffix) {
|
|
87
87
|
if (!isPlainObject(payload)) return payload;
|
|
88
88
|
let signed = payload;
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
for (const key of ["comment", "Comment"]) {
|
|
90
|
+
const comment = signed[key];
|
|
91
|
+
if (typeof comment === "string" && comment.trim() !== "") {
|
|
92
|
+
signed = { ...signed, [key]: signContent(comment, false, prefix, suffix) };
|
|
93
|
+
}
|
|
91
94
|
}
|
|
92
|
-
const message
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
for (const key of ["message", "Message"]) {
|
|
96
|
+
const message = signed[key];
|
|
97
|
+
if (isPlainObject(message) && message.body !== void 0) {
|
|
98
|
+
signed = { ...signed, [key]: signItemBodyContainer(target, message, prefix, suffix) };
|
|
99
|
+
}
|
|
95
100
|
}
|
|
96
101
|
return signed;
|
|
97
102
|
}
|
|
98
103
|
function signSendMail(target, payload, prefix, suffix) {
|
|
99
|
-
|
|
104
|
+
const key = isPlainObject(payload) ? ["message", "Message"].find((k) => isPlainObject(payload[k])) : void 0;
|
|
105
|
+
if (!isPlainObject(payload) || key === void 0) {
|
|
100
106
|
throw new MessageSignoffError(target, "the body has no message object");
|
|
101
107
|
}
|
|
102
|
-
return {
|
|
108
|
+
return {
|
|
109
|
+
...payload,
|
|
110
|
+
[key]: signItemBodyContainer(target, payload[key], prefix, suffix)
|
|
111
|
+
};
|
|
103
112
|
}
|
|
104
113
|
function signGroupThreadReply(target, payload, prefix, suffix) {
|
|
105
114
|
if (!isPlainObject(payload) || !isPlainObject(payload.post)) {
|
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.170.
|
|
4
|
+
"version": "0.170.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",
|