chattransfer 2.0.13 → 2.0.15

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.
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" href="/assets/logo-DQUxWwh1.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>ChatTransfer</title>
8
- <script type="module" crossorigin src="/assets/index-BZdEqZiK.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-Bg5fD0DP.css">
8
+ <script type="module" crossorigin src="/assets/index-CCKm3Phr.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-CAVS2mBK.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "chattransfer",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "LAN instant messaging and file transfer tool",
5
5
  "main": "server/index.js",
6
6
  "engines": {
7
- "node": ">=20"
7
+ "node": ">=20.17.0"
8
8
  },
9
9
  "scripts": {
10
10
  "test": "vitest run",
@@ -31,7 +31,7 @@
31
31
  "moment": "^2.27.0",
32
32
  "node-machine-id": "^1.1.12",
33
33
  "qr-image": "^3.2.0",
34
- "sqlite3": "5.1.7",
34
+ "sqlite3": "6.0.1",
35
35
  "socket.io": "^4.8.3",
36
36
  "underscore": "^1.10.2",
37
37
  "urlencode": "^1.1.0"
@@ -359,9 +359,9 @@ class MessageHistoryService {
359
359
  };
360
360
 
361
361
  if (row.file_path) {
362
- const fileName = row.file_name || path.posix.basename(row.file_path);
363
- message.fileUrl = `/files/${encodeURIComponent(fileName)}`;
364
- message.fileName = fileName;
362
+ const physicalFileName = path.posix.basename(row.file_path);
363
+ message.fileUrl = `/files/${encodeURIComponent(physicalFileName)}`;
364
+ message.fileName = row.file_name || physicalFileName;
365
365
  message.fileSize = row.file_size;
366
366
  message.fileType = row.file_mime_type;
367
367
  }