@maiyunnet/kebab 3.1.16 → 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/index.d.ts +2 -5
- package/index.js +2 -5
- package/package.json +1 -1
- package/sys/child.js +1 -1
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.
|
|
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.
|
|
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/package.json
CHANGED
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(/\*/g, '
|
|
589
|
+
domain = domain.replace(/\./g, '\\.').replace(/\*/g, '[\\w-]+?');
|
|
590
590
|
if (new RegExp(`^${domain}$`).test(hostname)) {
|
|
591
591
|
vSub = vhost;
|
|
592
592
|
}
|