@maiyunnet/kebab 7.4.1 → 7.4.2
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/ctr.js +5 -0
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '7.4.
|
|
9
|
+
export const VER = '7.4.2';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/package.json
CHANGED
package/sys/ctr.js
CHANGED
|
@@ -84,6 +84,11 @@ export class Ctr {
|
|
|
84
84
|
if (!this._timer) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
+
if (this._res.headersSent) {
|
|
88
|
+
// --- 已经开始输出的,不能设置 timeout ---
|
|
89
|
+
lCore.debug('[CTR][TIMEOUT][SET] headersSent is true, can not set timeout');
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
87
92
|
this._timer.timeout = num;
|
|
88
93
|
clearTimeout(this._timer.timer);
|
|
89
94
|
this._timer.timer = setTimeout(this._timer.callback, num);
|