@lzwme/sserver 0.0.10 → 0.0.11

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 任侠
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018 任侠
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.MD CHANGED
@@ -93,6 +93,8 @@ module.exports = {
93
93
 
94
94
  开启后可通过 `http://<本机IP>:<port>/localsend` 访问,实现同网段设备间的文件快速传输(支持多文件上传/下载、实时进度、二维码扫码访问、扫码直连下载、文件预览与排序等):
95
95
 
96
+ 下载时按文件大小自动分流:**大于 50MB 的文件**交由浏览器原生下载(流式写盘,内存占用恒定,不会因为大文件撑爆浏览器内存),**小文件**仍在页面内显示实时进度与速度;批量下载为串行执行,避免多个大文件同时占用内存。
97
+
96
98
  ```bash
97
99
  # 命令行方式开启
98
100
  ss --localsend
@@ -117,6 +119,13 @@ module.exports = {
117
119
  };
118
120
  ```
119
121
 
122
+ 中文文件名上传后显示乱码时(多见于旧版本上传的文件),可用以下命令批量修复存储目录中的乱码文件名:
123
+
124
+ ```bash
125
+ # 修复存储目录中的乱码文件名(默认使用配置中的目录,也可用 --localsend-dir 指定)
126
+ ss fix-localsend-names
127
+ ```
128
+
120
129
  ## 开发
121
130
 
122
131
  本地二次开发:
package/bin/sserver.js CHANGED
File without changes
package/dist/cli.js CHANGED
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const node_fs_1 = require("node:fs");
4
+ const node_os_1 = require("node:os");
4
5
  const node_path_1 = require("node:path");
5
6
  const commander_1 = require("commander");
6
7
  const console_log_colors_1 = require("console-log-colors");
7
8
  const config_1 = require("./config");
8
9
  const get_logger_1 = require("./get-logger");
10
+ const localsend_1 = require("./localsend");
9
11
  const static_server_1 = require("./static-server");
10
12
  const pkg = require('../package.json');
11
13
  commander_1.program
@@ -66,4 +68,21 @@ commander_1.program
66
68
  (0, node_fs_1.writeFileSync)(confFile, (0, node_fs_1.readFileSync)(tplFile));
67
69
  get_logger_1.logger.info('已生成配置文件:', console_log_colors_1.color.greenBright(confFile));
68
70
  });
71
+ commander_1.program
72
+ .command('fix-localsend-names')
73
+ .description('修复 localsend 存储目录中因编码问题产生的乱码文件名')
74
+ .option('--localsend-dir <dir>', 'localsend 文件存储目录。默认使用配置中的目录')
75
+ .action(async (opts) => {
76
+ const config = await (0, config_1.getConfig)(false, opts.localsendDir ? { localsend: { enabled: true, dir: opts.localsendDir } } : {});
77
+ const ls = typeof config.localsend === 'object' && config.localsend ? config.localsend : {};
78
+ const dir = opts.localsendDir || ls.dir || process.env.SS_LOCALSEND_DIR || (0, node_path_1.resolve)((0, node_os_1.homedir)(), '.static-server/localsend');
79
+ const renamed = (0, localsend_1.repairLocalsendNames)(dir);
80
+ if (!renamed.length) {
81
+ get_logger_1.logger.info('未发现乱码文件名。目录:', console_log_colors_1.color.cyanBright(dir));
82
+ return;
83
+ }
84
+ for (const [from, to] of renamed)
85
+ get_logger_1.logger.info(`已重命名:${console_log_colors_1.color.yellow(from)} → ${console_log_colors_1.color.greenBright(to)}`);
86
+ get_logger_1.logger.info(`共修复 ${console_log_colors_1.color.cyanBright(renamed.length)} 个文件名。目录:`, console_log_colors_1.color.cyanBright(dir));
87
+ });
69
88
  commander_1.program.parse(process.argv);
@@ -29,22 +29,21 @@
29
29
  </div>
30
30
  <div class="text-left sm:text-right">
31
31
  <div class="text-xs text-slate-500">本机访问地址</div>
32
- <div id="pageUrl" class="text-emerald-400 font-mono text-xs sm:text-sm break-all"></div>
32
+ <div id="pageUrl" class="text-emerald-400 font-mono text-xs sm:text-sm break-all cursor-point"></div>
33
33
  </div>
34
34
  </header>
35
35
 
36
36
  <section class="grid md:grid-cols-[auto_1fr] gap-5 sm:gap-6 items-start mb-6 sm:mb-8">
37
- <div id="pageQrCard" class="bg-slate-900 border border-slate-700 rounded-2xl p-3 sm:p-4 flex flex-col items-center gap-3 w-full sm:w-fit mx-auto md:mx-0 cursor-pointer hover:border-emerald-500/50 transition-colors group">
37
+ <div id="pageQrCard" class="bg-slate-900 border border-slate-700 rounded-2xl p-2 sm:p-3 flex flex-col items-center gap-3 w-full sm:w-fit mx-auto md:mx-0 cursor-pointer hover:border-emerald-500/50 transition-colors group">
38
38
  <div class="text-xs text-slate-400 group-hover:text-emerald-400 transition-colors">手机扫码访问页面(点击放大)</div>
39
- <div id="pageQr" class="bg-white p-2 rounded-lg w-40 sm:w-36 flex items-center justify-center"></div>
40
- <button id="openPageBtn" class="text-xs text-slate-400 hover:text-white transition">在新窗口打开页面</button>
39
+ <div id="pageQr" class="bg-white p-1 rounded-lg w-40 sm:w-32 flex items-center justify-center"></div>
41
40
  </div>
42
41
 
43
42
  <div>
44
- <div id="dropZone" class="border-2 border-dashed border-slate-600 hover:border-emerald-400 rounded-2xl p-6 sm:p-8 text-center transition cursor-pointer select-none">
45
- <div class="text-3xl sm:text-4xl mb-2">📤</div>
43
+ <div id="dropZone" class="border-2 border-dashed border-slate-600 hover:border-emerald-400 rounded-2xl p-6 sm:p-10 text-center transition cursor-pointer select-none">
44
+ <div class="text-3xl sm:text-4xl mb-3">📤</div>
46
45
  <p class="font-medium text-sm sm:text-base text-slate-200">点击选择或拖拽文件到此处上传</p>
47
- <p class="text-[11px] sm:text-xs text-slate-500 mt-1">支持多文件同时上传 · 文件保存在本机 · 实时显示传输进度</p>
46
+ <p class="text-[11px] sm:text-xs text-slate-500 mt-2">支持多文件同时上传 · 文件保存在本机 · 实时显示传输进度</p>
48
47
  <input id="fileInput" type="file" multiple />
49
48
  </div>
50
49
  <div id="uploadList" class="mt-4 space-y-2"></div>
@@ -308,18 +307,50 @@
308
307
  xhr.send(fd);
309
308
  }
310
309
 
311
- function downloadFile(name) {
310
+ // 下载策略:文件大于 BLOB_LIMIT 时直接交给浏览器原生下载(流式写盘,不占用浏览器内存,
311
+ // 避免大文件把内存撑爆导致下载失败);小文件用 XHR 读成 blob,以便显示实时进度与速度
312
+ var BLOB_LIMIT = 50 * 1024 * 1024; // 50MB
313
+
314
+ function fileSizeOf(name) {
315
+ for (var i = 0; i < fileItems.length; i++) {
316
+ if (fileItems[i].name === name) return fileItems[i].size || 0;
317
+ }
318
+ return 0;
319
+ }
320
+
321
+ // 原生下载:由浏览器直接下载 URL,不经过 XHR,内存占用恒定
322
+ function nativeDownload(name) {
323
+ var a = document.createElement('a');
324
+ a.href = API + '/download/' + encodeURIComponent(name);
325
+ a.download = name;
326
+ a.style.display = 'none';
327
+ document.body.appendChild(a);
328
+ a.click();
329
+ setTimeout(function () { a.remove(); }, 0);
330
+ }
331
+
332
+ // 小文件下载:XHR + blob,可显示进度
333
+ function xhrDownload(name, onDone) {
312
334
  var url = API + '/download/' + encodeURIComponent(name);
313
335
  var xhr = new XMLHttpRequest();
314
336
  xhr.open('GET', url);
315
337
  xhr.responseType = 'blob';
338
+ var lastLoaded = 0;
339
+ var lastTime = Date.now();
316
340
  xhr.onprogress = function (e) {
317
- if (e.lengthComputable && e.total) {
318
- toast('下载中 ' + name + ' ' + Math.round(e.loaded / e.total * 100) + '%');
341
+ if (!e.lengthComputable || !e.total) return;
342
+ var pct = Math.round(e.loaded / e.total * 100);
343
+ var now = Date.now();
344
+ var dt = (now - lastTime) / 1000;
345
+ if (dt > 0.3) {
346
+ var speed = fmtSize((e.loaded - lastLoaded) / dt) + '/s';
347
+ lastLoaded = e.loaded;
348
+ lastTime = now;
349
+ toast('下载中 ' + name + ' ' + pct + '% · ' + speed);
319
350
  }
320
351
  };
321
352
  xhr.onload = function () {
322
- if (xhr.status !== 200) { toast('下载失败:' + name, 'err'); return; }
353
+ if (xhr.status !== 200) { toast('下载失败:' + name, 'err'); if (onDone) onDone(false); return; }
323
354
  var blob = xhr.response;
324
355
  var a = document.createElement('a');
325
356
  a.href = URL.createObjectURL(blob);
@@ -328,11 +359,22 @@
328
359
  a.click();
329
360
  setTimeout(function () { URL.revokeObjectURL(a.href); a.remove(); }, 5000);
330
361
  toast('下载完成:' + name, 'ok');
362
+ if (onDone) onDone(true);
331
363
  };
332
- xhr.onerror = function () { toast('下载失败:' + name, 'err'); };
364
+ xhr.onerror = function () { toast('下载失败:' + name, 'err'); if (onDone) onDone(false); };
333
365
  xhr.send();
334
366
  }
335
367
 
368
+ function downloadFile(name) {
369
+ var size = fileSizeOf(name);
370
+ if (size > BLOB_LIMIT) {
371
+ nativeDownload(name);
372
+ toast('已转交浏览器下载:' + name + '(' + fmtSize(size) + ')', 'ok');
373
+ return;
374
+ }
375
+ xhrDownload(name);
376
+ }
377
+
336
378
  var imgExts = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'svg', 'bmp', 'ico'];
337
379
  var textExts = ['txt', 'md', 'json', 'js', 'ts', 'html', 'css', 'xml', 'log', 'csv', 'yml', 'yaml', 'ini', 'conf'];
338
380
  function previewFile(name) {
@@ -393,7 +435,7 @@
393
435
  if (e.dataTransfer && e.dataTransfer.files.length) uploadFiles(e.dataTransfer.files);
394
436
  });
395
437
  $('fileInput').addEventListener('change', function (e) { uploadFiles(e.target.files); e.target.value = ''; });
396
- $('openPageBtn').addEventListener('click', function () { window.open(pageUrl, '_blank'); });
438
+ $('pageUrl').addEventListener('click', function () { window.open(pageUrl, '_blank'); });
397
439
  $('pageQrCard').addEventListener('click', function (e) {
398
440
  if (e.target.closest('button')) return; // 不拦截 openPageBtn
399
441
  showQr(pageUrl, '手机扫码访问页面');
@@ -442,11 +484,19 @@
442
484
  if (!names.length) return;
443
485
  toast('开始批量下载 ' + names.length + ' 个文件');
444
486
  var i = 0;
487
+ // 严格串行:上一个文件下载完成(或原生下载已发起)后再下载下一个,
488
+ // 避免多个 blob 同时驻留内存导致大文件批量下载失败
445
489
  function next() {
446
490
  if (i >= names.length) { toast('批量下载完成(共 ' + names.length + ' 个)', 'ok'); return; }
447
- downloadFile(names[i]);
491
+ var name = names[i];
448
492
  i += 1;
449
- setTimeout(next, 800);
493
+ if (fileSizeOf(name) > BLOB_LIMIT) {
494
+ nativeDownload(name);
495
+ // 间隔发起,避免浏览器把连续下载判定为批量自动下载而拦截
496
+ setTimeout(next, 1500);
497
+ return;
498
+ }
499
+ xhrDownload(name, function () { setTimeout(next, 300); });
450
500
  }
451
501
  next();
452
502
  });
@@ -1,2 +1,19 @@
1
1
  import type { Express } from 'express';
2
+ /**
3
+ * 修复 multipart 上传的文件名乱码。
4
+ *
5
+ * 浏览器(WHATWG 规范)会把文件名的 UTF-8 原始字节直接写进 Content-Disposition 的 filename 参数,
6
+ * 而 busboy 默认按 latin1(defParamCharset='latin1')解码该参数,中文文件名就会变成乱码
7
+ * (如 `中文.txt` → `中文.txt`)。
8
+ *
9
+ * 这里保留原始字节(latin1 与字节一一对应,可无损还原),再按 utf-8 / gb18030 依次尝试严格解码:
10
+ * - UTF-8 是浏览器的标准行为;
11
+ * - gb18030 兼容部分国产客户端 / 老程序用 GBK 发送文件名的情况。
12
+ */
13
+ export declare function decodeUploadName(raw?: unknown): string;
14
+ /**
15
+ * 修复历史上已上传的乱码文件名(把 UTF-8 字节误存成 latin1 字符导致的乱码)。
16
+ * 返回被重命名的 [旧名, 新名] 列表。
17
+ */
18
+ export declare function repairLocalsendNames(dir: string): [string, string][];
2
19
  export declare function initLocalsend(app: Express): Promise<void>;
package/dist/localsend.js CHANGED
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.decodeUploadName = decodeUploadName;
7
+ exports.repairLocalsendNames = repairLocalsendNames;
6
8
  exports.initLocalsend = initLocalsend;
7
9
  /*
8
10
  * LocalSend 局域网文件传输服务端模块
@@ -33,6 +35,70 @@ function safeName(name) {
33
35
  return '';
34
36
  return n;
35
37
  }
38
+ /** 严格解码字节,编码不匹配时返回 null */
39
+ function decodeStrict(bytes, encoding) {
40
+ try {
41
+ return new TextDecoder(encoding, { fatal: true }).decode(bytes);
42
+ }
43
+ catch {
44
+ return null;
45
+ }
46
+ }
47
+ /**
48
+ * 修复 multipart 上传的文件名乱码。
49
+ *
50
+ * 浏览器(WHATWG 规范)会把文件名的 UTF-8 原始字节直接写进 Content-Disposition 的 filename 参数,
51
+ * 而 busboy 默认按 latin1(defParamCharset='latin1')解码该参数,中文文件名就会变成乱码
52
+ * (如 `中文.txt` → `中文.txt`)。
53
+ *
54
+ * 这里保留原始字节(latin1 与字节一一对应,可无损还原),再按 utf-8 / gb18030 依次尝试严格解码:
55
+ * - UTF-8 是浏览器的标准行为;
56
+ * - gb18030 兼容部分国产客户端 / 老程序用 GBK 发送文件名的情况。
57
+ */
58
+ function decodeUploadName(raw) {
59
+ const name = String(raw || '');
60
+ if (!name)
61
+ return '';
62
+ // 含有 latin1 之外的字符,说明文件名已被正确解码过(如 RFC2231 的 filename*),直接使用
63
+ if ([...name].some((c) => c.charCodeAt(0) > 255))
64
+ return name;
65
+ const bytes = Buffer.from(name, 'latin1');
66
+ for (const encoding of ['utf-8', 'gb18030']) {
67
+ const decoded = decodeStrict(bytes, encoding);
68
+ if (decoded !== null && decoded !== name)
69
+ return decoded;
70
+ }
71
+ return name;
72
+ }
73
+ /**
74
+ * 修复历史上已上传的乱码文件名(把 UTF-8 字节误存成 latin1 字符导致的乱码)。
75
+ * 返回被重命名的 [旧名, 新名] 列表。
76
+ */
77
+ function repairLocalsendNames(dir) {
78
+ const renamed = [];
79
+ if (!(0, node_fs_1.existsSync)(dir))
80
+ return renamed;
81
+ for (const name of (0, node_fs_1.readdirSync)(dir)) {
82
+ const full = (0, node_path_1.join)(dir, name);
83
+ if (!(0, node_fs_1.statSync)(full).isFile())
84
+ continue;
85
+ if ([...name].some((c) => c.charCodeAt(0) > 255))
86
+ continue; // 已是正常文件名
87
+ const decoded = decodeStrict(Buffer.from(name, 'latin1'), 'utf-8');
88
+ if (decoded === null || decoded === name)
89
+ continue; // 非乱码
90
+ // 目标名已存在时按 _1/_2 追加后缀,避免覆盖同名文件
91
+ const target = uniqueName(dir, decoded);
92
+ try {
93
+ (0, node_fs_1.renameSync)(full, (0, node_path_1.join)(dir, target));
94
+ renamed.push([name, target]);
95
+ }
96
+ catch (err) {
97
+ get_logger_1.logger.error('[localsend 修复文件名]', err);
98
+ }
99
+ }
100
+ return renamed;
101
+ }
36
102
  /** 同名文件自动追加 _1/_2 后缀 */
37
103
  function uniqueName(targetDir, name) {
38
104
  const ext = (0, node_path_1.extname)(name);
@@ -91,6 +157,9 @@ async function initLocalsend(app) {
91
157
  const upload = (0, multer_1.default)({
92
158
  dest: dir,
93
159
  limits: { fileSize: maxSize, files: 200 },
160
+ // 显式声明按 latin1 读取 Content-Disposition 参数,保留文件名的原始字节,
161
+ // 再由 decodeUploadName 按 utf-8 / gb18030 解码,避免中文文件名乱码
162
+ defParamCharset: 'latin1',
94
163
  });
95
164
  app.post('/localsend/api/upload', upload.array('files'), (req, res) => {
96
165
  const files = (req.files || []);
@@ -98,7 +167,7 @@ async function initLocalsend(app) {
98
167
  const errors = [];
99
168
  for (const f of files) {
100
169
  try {
101
- const name = uniqueName(dir, safeName(f.originalname) || `file_${Date.now()}`);
170
+ const name = uniqueName(dir, safeName(decodeUploadName(f.originalname)) || `file_${Date.now()}`);
102
171
  (0, node_fs_1.renameSync)(f.path, (0, node_path_1.join)(dir, name));
103
172
  results.push({ name, size: f.size });
104
173
  }
@@ -34,6 +34,28 @@ async function findPhpFile(pathname, rootDir) {
34
34
  function formatArgs(args) {
35
35
  return Object.entries(args).map(([key, value]) => `${key.startsWith('-') ? key : `-${key}`} ${value}`);
36
36
  }
37
+ /**
38
+ * 解析请求地址。
39
+ *
40
+ * 使用 WHATWG URL API 替代已弃用的 `url.parse()`(Node 22+ 会打印 DEP0169 弃用警告,
41
+ * 而该中间件挂在 '/' 上,每个请求都会经过一次)。
42
+ *
43
+ * 返回解码后的路径与原始查询串:
44
+ * - 路径解码后可直接用于文件系统查找(与 express 静态资源的行为一致);
45
+ * - 查询串保留原始形态(不做 '+' 转换),与 CGI 的 QUERY_STRING 语义一致。
46
+ */
47
+ function parseRequestUrl(req) {
48
+ const base = `http://${req.headers.host || 'localhost'}`;
49
+ const parsed = new node_url_1.URL(req.url, base);
50
+ let pathname = parsed.pathname;
51
+ try {
52
+ pathname = decodeURIComponent(pathname);
53
+ }
54
+ catch {
55
+ // 非法的百分号编码(如文件名中本身含有 '%')时保持原值,避免解析失败
56
+ }
57
+ return { pathname, query: parsed.search ? parsed.search.slice(1) : '' };
58
+ }
37
59
  function runPhpCgi(req, response, url, filepath, phpConfig, rootDir) {
38
60
  const pathname = url.pathname || req.url;
39
61
  const pathinfo = pathname.includes('.php') ? `${pathname.split('.php')[0]}.php` : pathname;
@@ -172,7 +194,7 @@ function createPhpMiddleware(rootDir, phpConfig = {}) {
172
194
  return async function phpMiddleware(req, res, next) {
173
195
  // stop stream until child-process is opened
174
196
  req.pause();
175
- const url = (0, node_url_1.parse)(req.url);
197
+ const url = parseRequestUrl(req);
176
198
  const filepath = await findPhpFile(url.pathname || req.path, rootDir);
177
199
  if (filepath && (filepath.includes('.php') || phpConfig.onlyPhpFile === false)) {
178
200
  get_logger_1.logger.info('[php][exec]', fe_utils_1.color.green(req.path), '=>', fe_utils_1.color.yellow(filepath));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzwme/sserver",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "一个基于 Node.js 的简易静态服务器,用于辅助开发调试随启随用",
5
5
  "main": "dist/index.js",
6
6
  "type": "commonjs",
@@ -48,20 +48,20 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@lzwme/fe-utils": "^1.9.2",
51
- "commander": "^15.0.0",
51
+ "commander": "^15.1.0",
52
52
  "console-log-colors": "^0.5.0",
53
- "express": "^5.2.1",
54
- "http-proxy-middleware": "^4.2.0",
55
- "multer": "^2.2.0",
56
- "node-forge": "^1.4.0",
53
+ "express": "^5.3.0",
54
+ "http-proxy-middleware": "^4.2.2",
55
+ "multer": "^2.5.0",
56
+ "node-forge": "^1.4.3",
57
57
  "serve-index": "^1.9.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@biomejs/biome": "^2.5.6",
60
+ "@biomejs/biome": "^2.6.8",
61
61
  "@lzwme/fed-lint-helper": "^2.6.6",
62
62
  "@types/express": "^5.0.6",
63
- "@types/multer": "^2.2.0",
64
- "@types/node": "^26.1.2",
63
+ "@types/multer": "^2.3.0",
64
+ "@types/node": "^26.6.6",
65
65
  "@types/node-forge": "^1.3.14",
66
66
  "husky": "^9.1.7",
67
67
  "standard-version": "^9.5.0",