@maiyunnet/kebab 3.1.13 → 3.1.14
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 +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/sys/route.js +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ------------------------
|
|
10
10
|
*/
|
|
11
11
|
/** --- 当前系统版本号 --- */
|
|
12
|
-
export const VER = '3.1.
|
|
12
|
+
export const VER = '3.1.14';
|
|
13
13
|
// --- 服务端用的路径 ---
|
|
14
14
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
15
15
|
/** --- /xxx/xxx --- */
|
package/package.json
CHANGED
package/sys/route.js
CHANGED
|
@@ -223,7 +223,7 @@ export async function run(data) {
|
|
|
223
223
|
let rtn;
|
|
224
224
|
if (data.socket && data.req instanceof http.IncomingMessage) {
|
|
225
225
|
// --- socket 模式,判断真实控制器文件是否存在 ---
|
|
226
|
-
const filePath = config.const.wsPath +
|
|
226
|
+
const filePath = config.const.wsPath + pathLeft + '.js';
|
|
227
227
|
if (!await lFs.isFile(filePath)) {
|
|
228
228
|
// --- 指定的控制器不存在 ---
|
|
229
229
|
data.socket?.destroy();
|