@naisys/hub 3.0.0-beta.7 → 3.0.0-beta.9

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.
@@ -27,7 +27,7 @@ export function createHubAttachmentService(httpsServer, { hubDb }, logService) {
27
27
  else if (pathname.startsWith("/attachments/") &&
28
28
  pathname !== "/attachments/" &&
29
29
  req.method === "GET") {
30
- handleDownload(url, pathname, req, res).catch((err) => {
30
+ handleDownload(pathname, req, res).catch((err) => {
31
31
  logService.error(`[Hub:Attachment] Download error: ${err}`);
32
32
  if (!res.writableEnded) {
33
33
  res.writeHead(500, { "Content-Type": "application/json" });
@@ -176,7 +176,7 @@ export function createHubAttachmentService(httpsServer, { hubDb }, logService) {
176
176
  res.writeHead(200, { "Content-Type": "application/json" });
177
177
  res.end(JSON.stringify({ id: attachmentId }));
178
178
  }
179
- async function handleDownload(url, pathname, req, res) {
179
+ async function handleDownload(pathname, req, res) {
180
180
  const apiKey = extractBearerToken(req.headers.authorization);
181
181
  if (!apiKey) {
182
182
  res.writeHead(401, { "Content-Type": "application/json" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naisys/hub",
3
- "version": "3.0.0-beta.7",
3
+ "version": "3.0.0-beta.9",
4
4
  "description": "NAISYS Hub - Adds persistence and multi-instance coordination to NAISYS",
5
5
  "type": "module",
6
6
  "main": "dist/naisysHub.js",
@@ -29,7 +29,7 @@
29
29
  "!dist/**/*.d.ts.map"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@naisys/supervisor": "3.0.0-beta.7"
32
+ "@naisys/supervisor": "3.0.0-beta.9"
33
33
  },
34
34
  "peerDependenciesMeta": {
35
35
  "@naisys/supervisor": {
@@ -37,24 +37,18 @@
37
37
  }
38
38
  },
39
39
  "dependencies": {
40
- "@naisys/common": "3.0.0-beta.7",
41
- "@naisys/common-node": "3.0.0-beta.7",
42
- "@naisys/hub-database": "3.0.0-beta.7",
43
- "@naisys/hub-protocol": "3.0.0-beta.7",
40
+ "@naisys/common": "3.0.0-beta.9",
41
+ "@naisys/common-node": "3.0.0-beta.9",
42
+ "@naisys/hub-database": "3.0.0-beta.9",
43
+ "@naisys/hub-protocol": "3.0.0-beta.9",
44
44
  "commander": "^14.0.3",
45
45
  "dotenv": "^17.3.1",
46
- "js-yaml": "^4.1.1",
47
46
  "pino": "^10.3.1",
48
47
  "selfsigned": "^5.5.0",
49
- "socket.io": "^4.8.3",
50
- "socket.io-client": "^4.8.3",
51
- "text-table": "^0.2.0",
52
- "zod": "^4.3.6"
48
+ "socket.io": "^4.8.3"
53
49
  },
54
50
  "devDependencies": {
55
- "@types/js-yaml": "^4.0.9",
56
51
  "@types/node": "^25.5.0",
57
- "@types/text-table": "^0.2.5",
58
52
  "tsx": "^4.21.0",
59
53
  "typescript": "^5.9.3"
60
54
  },