@openclaw/synology-chat 2026.5.31-beta.2 → 2026.5.31-beta.4

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/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as setSynologyRuntime, t as synologyChatPlugin } from "./channel-CKsBuWtg.js";
1
+ import { n as setSynologyRuntime, t as synologyChatPlugin } from "./channel-D8xW77Og.js";
2
2
  import { t as collectSynologyChatSecurityAuditFindings } from "./security-audit-DIsaxIaB.js";
3
3
  export { collectSynologyChatSecurityAuditFindings, setSynologyRuntime, synologyChatPlugin };
@@ -638,7 +638,7 @@ function extractTokenFromHeaders(req) {
638
638
  */
639
639
  function parsePayload(req, body) {
640
640
  const contentType = normalizeLowercaseStringOrEmpty(req.headers["content-type"]);
641
- let bodyFields = {};
641
+ let bodyFields;
642
642
  if (contentType.includes("application/json")) bodyFields = parseJsonBody(body);
643
643
  else if (contentType.includes("application/x-www-form-urlencoded")) bodyFields = parseFormBody(body);
644
644
  else try {
@@ -705,7 +705,7 @@ async function parseWebhookPayloadRequest(params) {
705
705
  respondJson(params.res, bodyResult.statusCode, { error: bodyResult.error });
706
706
  return { ok: false };
707
707
  }
708
- let payload = null;
708
+ let payload;
709
709
  try {
710
710
  payload = parsePayload(params.req, bodyResult.body);
711
711
  } catch (err) {
@@ -855,7 +855,9 @@ async function processAuthorizedSynologyWebhook(params) {
855
855
  commandAuthorized: params.message.commandAuthorized,
856
856
  chatUserId: deliveryUserId
857
857
  });
858
- const timeoutPromise = new Promise((_, reject) => setTimeout(() => reject(/* @__PURE__ */ new Error("Agent response timeout (120s)")), 12e4));
858
+ const timeoutPromise = new Promise((_, reject) => {
859
+ setTimeout(() => reject(/* @__PURE__ */ new Error("Agent response timeout (120s)")), 12e4);
860
+ });
859
861
  const reply = await Promise.race([deliverPromise, timeoutPromise]);
860
862
  if (!reply) return;
861
863
  await sendMessage(params.account.incomingUrl, reply, deliveryUserId, params.account.allowInsecureSsl);
@@ -1,2 +1,2 @@
1
- import { t as synologyChatPlugin } from "./channel-CKsBuWtg.js";
1
+ import { t as synologyChatPlugin } from "./channel-D8xW77Og.js";
2
2
  export { synologyChatPlugin };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/synology-chat",
3
- "version": "2026.5.31-beta.2",
3
+ "version": "2026.5.31-beta.4",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/synology-chat",
9
- "version": "2026.5.31-beta.2",
9
+ "version": "2026.5.31-beta.4",
10
10
  "dependencies": {
11
11
  "zod": "4.4.3"
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/synology-chat",
3
- "version": "2026.5.31-beta.2",
3
+ "version": "2026.5.31-beta.4",
4
4
  "description": "Synology Chat channel plugin for OpenClaw channels and direct messages.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,10 +27,10 @@
27
27
  "minHostVersion": ">=2026.4.10"
28
28
  },
29
29
  "compat": {
30
- "pluginApi": ">=2026.5.31-beta.2"
30
+ "pluginApi": ">=2026.5.31-beta.4"
31
31
  },
32
32
  "build": {
33
- "openclawVersion": "2026.5.31-beta.2"
33
+ "openclawVersion": "2026.5.31-beta.4"
34
34
  },
35
35
  "release": {
36
36
  "publishToClawHub": true,
@@ -51,7 +51,7 @@
51
51
  "README.md"
52
52
  ],
53
53
  "peerDependencies": {
54
- "openclaw": ">=2026.5.31-beta.2"
54
+ "openclaw": ">=2026.5.31-beta.4"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "openclaw": {