@openclaw/synology-chat 2026.5.28 → 2026.5.31-beta.1

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-QhDg_L89.js";
1
+ import { n as setSynologyRuntime, t as synologyChatPlugin } from "./channel-CKsBuWtg.js";
2
2
  import { t as collectSynologyChatSecurityAuditFindings } from "./security-audit-DIsaxIaB.js";
3
3
  export { collectSynologyChatSecurityAuditFindings, setSynologyRuntime, synologyChatPlugin };
@@ -8,7 +8,7 @@ import { composeWarningCollectors, createConditionalWarningCollector, projectAcc
8
8
  import { createEmptyChannelDirectoryAdapter } from "openclaw/plugin-sdk/directory-runtime";
9
9
  import { normalizeLowercaseStringOrEmpty, normalizeStringEntriesLower } from "openclaw/plugin-sdk/string-coerce-runtime";
10
10
  import { DEFAULT_ACCOUNT_ID as DEFAULT_ACCOUNT_ID$1 } from "openclaw/plugin-sdk/account-resolution";
11
- import { parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
11
+ import { finiteSecondsToTimerSafeMilliseconds, parseStrictNonNegativeInteger } from "openclaw/plugin-sdk/number-runtime";
12
12
  import { createResolvedApproverActionAuthAdapter, resolveApprovalApprovers } from "openclaw/plugin-sdk/approval-auth-runtime";
13
13
  import * as http from "node:http";
14
14
  import * as https from "node:https";
@@ -443,8 +443,9 @@ function sanitizeInput(text) {
443
443
  var RateLimiter = class {
444
444
  constructor(limit = 30, windowSeconds = 60, maxTrackedUsers = 5e3) {
445
445
  this.limit = limit;
446
+ const windowMs = finiteSecondsToTimerSafeMilliseconds(windowSeconds) ?? 1;
446
447
  this.limiter = createFixedWindowRateLimiter({
447
- windowMs: Math.max(1, Math.floor(windowSeconds * 1e3)),
448
+ windowMs,
448
449
  maxRequests: Math.max(1, Math.floor(limit)),
449
450
  maxTrackedKeys: Math.max(1, Math.floor(maxTrackedUsers))
450
451
  });
@@ -1,2 +1,2 @@
1
- import { t as synologyChatPlugin } from "./channel-QhDg_L89.js";
1
+ import { t as synologyChatPlugin } from "./channel-CKsBuWtg.js";
2
2
  export { synologyChatPlugin };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/synology-chat",
3
- "version": "2026.5.28",
3
+ "version": "2026.5.31-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/synology-chat",
9
- "version": "2026.5.28",
9
+ "version": "2026.5.31-beta.1",
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.28",
3
+ "version": "2026.5.31-beta.1",
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.28"
30
+ "pluginApi": ">=2026.5.31-beta.1"
31
31
  },
32
32
  "build": {
33
- "openclawVersion": "2026.5.28"
33
+ "openclawVersion": "2026.5.31-beta.1"
34
34
  },
35
35
  "release": {
36
36
  "publishToClawHub": true,
@@ -50,7 +50,7 @@
50
50
  "npm-shrinkwrap.json"
51
51
  ],
52
52
  "peerDependencies": {
53
- "openclaw": ">=2026.5.28"
53
+ "openclaw": ">=2026.5.31-beta.1"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "openclaw": {