@x-9lab/xlab 2.0.1 → 2.0.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.
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
const _common = require("../components/common");
|
|
11
12
|
const _utils = require("@x-drive/utils");
|
|
12
13
|
const _config = require("../config");
|
|
13
14
|
const serverPackge = require("../../package.json");
|
|
@@ -19,7 +20,7 @@ function _default() {
|
|
|
19
20
|
const SERVER_MARK = `${serverPackge.name}@${serverPackge.version}`;
|
|
20
21
|
// 业务启动时间
|
|
21
22
|
// FIX ME : 服务器不是北京时间的时候这个数据跟实际启动的时间存在时差
|
|
22
|
-
const MARK = `${CLIENT_MARK}
|
|
23
|
+
const MARK = (0, _common.asciiTobase64)(`${CLIENT_MARK};${SERVER_MARK};Startup@${(0, _utils.date)(new Date(), "Y-m-d H:i:s")}`);
|
|
23
24
|
/**
|
|
24
25
|
* 处理函数
|
|
25
26
|
*/ return async function handler(ctx, next) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-9lab/xlab",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "9lab 服务端模块",
|
|
5
5
|
"versionDesc": "watch 退出信号级联与 worker 孤儿防护;移除 combo 中间件残留",
|
|
6
6
|
"scripts": {
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"type": "git",
|
|
49
49
|
"url": "git+https://github.com/x-9lab/xlab.git"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|