@nextclaw/server 0.5.8 → 0.5.10

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/ui/server.ts
2
2
  import { Hono as Hono2 } from "hono";
3
+ import { compress } from "hono/compress";
3
4
  import { cors } from "hono/cors";
4
5
  import { serve } from "@hono/node-server";
5
6
  import { WebSocketServer, WebSocket } from "ws";
@@ -1441,6 +1442,7 @@ var DEFAULT_CORS_ORIGINS = (origin) => {
1441
1442
  };
1442
1443
  function startUiServer(options) {
1443
1444
  const app = new Hono2();
1445
+ app.use("/*", compress());
1444
1446
  const origin = options.corsOrigins ?? DEFAULT_CORS_ORIGINS;
1445
1447
  app.use("/api/*", cors({ origin }));
1446
1448
  const clients = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@hono/node-server": "^1.13.3",
18
- "@nextclaw/openclaw-compat": "^0.1.25",
18
+ "@nextclaw/openclaw-compat": "^0.1.26",
19
19
  "hono": "^4.6.2",
20
20
  "ws": "^8.18.0",
21
21
  "@nextclaw/core": "^0.6.32"