@maiyunnet/kebab 3.1.15 → 3.1.17

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/README.md CHANGED
@@ -26,6 +26,10 @@ Node 22+
26
26
 
27
27
  Run `npm i @maiyunnet/kebab` to install the latest version. After installation, run `npx kebab init` to initialize, then run `npx kebab` to start the project.
28
28
 
29
+ You can also use pm2 to start the project by running:
30
+
31
+ `pm2 start npx --name "kebab" -- kebab`
32
+
29
33
  ## Library
30
34
 
31
35
  Buffer, Captcha, Consistent, Core, Cron, Crypto, Db (MySQL), Dns (DNSPod, Alibaba Cloud), Fs, Jwt, Kv (Redis), Lan, Net, S3, Scan, Session, Sql, Ssh (Shell, Sftp), Text, Time, Ws, Zip, Zlib.
package/index.d.ts CHANGED
@@ -1,14 +1,11 @@
1
1
  /**
2
2
  * Project: Kebab, User: JianSuoQiYue
3
3
  * Date: 2019-3-30 12:46:41
4
- * Last: 2020-3-8 21:04:24, 2022-07-22 14:20:34, 2023-5-24 01:34:57, 2025-6-13 14:49:27
4
+ * Last: 2020-3-8 21:04:24, 2022-07-22 14:20:34, 2023-5-24 01:34:57, 2025-6-13 14:49:27, 2025-10-1 10:11:54
5
5
  * --- 本文件用来定义每个目录实体地址的常量 ---
6
- * ------------------------
7
- * --- npx tsc-alias -w ---
8
- * ------------------------
9
6
  */
10
7
  /** --- 当前系统版本号 --- */
11
- export declare const VER = "3.1.15";
8
+ export declare const VER = "3.1.17";
12
9
  /** --- 框架根目录,以 / 结尾 --- */
13
10
  export declare const ROOT_PATH: string;
14
11
  export declare const LIB_PATH: string;
package/index.js CHANGED
@@ -2,14 +2,11 @@
2
2
  /**
3
3
  * Project: Kebab, User: JianSuoQiYue
4
4
  * Date: 2019-3-30 12:46:41
5
- * Last: 2020-3-8 21:04:24, 2022-07-22 14:20:34, 2023-5-24 01:34:57, 2025-6-13 14:49:27
5
+ * Last: 2020-3-8 21:04:24, 2022-07-22 14:20:34, 2023-5-24 01:34:57, 2025-6-13 14:49:27, 2025-10-1 10:11:54
6
6
  * --- 本文件用来定义每个目录实体地址的常量 ---
7
- * ------------------------
8
- * --- npx tsc-alias -w ---
9
- * ------------------------
10
7
  */
11
8
  /** --- 当前系统版本号 --- */
12
- export const VER = '3.1.15';
9
+ export const VER = '3.1.17';
13
10
  // --- 服务端用的路径 ---
14
11
  const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
15
12
  /** --- /xxx/xxx --- */
package/lib/net.js CHANGED
@@ -429,7 +429,10 @@ export function getFormData() {
429
429
  return new fd.FormData();
430
430
  }
431
431
  /** --- proxy 要剔除的基础头部 --- */
432
- const proxyContinueHeaders = ['host', 'connection', 'http-version', 'http-code', 'http-url'];
432
+ const proxyContinueHeaders = [
433
+ 'host', 'connection', 'http-version', 'http-code', 'http-url',
434
+ 'transfer-encoding'
435
+ ];
433
436
  /**
434
437
  * --- 剔除不代理的 header ---
435
438
  * @param headers 剔除前的 header
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maiyunnet/kebab",
3
- "version": "3.1.15",
3
+ "version": "3.1.17",
4
4
  "description": "Simple, easy-to-use, and fully-featured Node.js framework that is ready-to-use out of the box.",
5
5
  "type": "module",
6
6
  "keywords": [
package/sys/child.js CHANGED
@@ -586,7 +586,7 @@ function getVhostByHostname(hostname) {
586
586
  }
587
587
  else if (domain.includes('*')) {
588
588
  // --- 通配符匹配 ---
589
- domain = domain.replace(/\./g, '\\.').replace(/\*/, '.+?');
589
+ domain = domain.replace(/\./g, '\\.').replace(/\*/g, '[\\w-]+?');
590
590
  if (new RegExp(`^${domain}$`).test(hostname)) {
591
591
  vSub = vhost;
592
592
  }