@midwayjs/web 3.13.3 → 3.13.4-beta.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/dist/config/config.default.js +2 -1
- package/dist/logger.js +1 -1
- package/package.json +2 -2
- package/LICENSE +0 -21
|
@@ -5,6 +5,7 @@ const mkdirp = require("mkdirp");
|
|
|
5
5
|
const os = require("os");
|
|
6
6
|
const fs = require("fs");
|
|
7
7
|
const loggerModule = require("@midwayjs/logger");
|
|
8
|
+
const core_1 = require("@midwayjs/core");
|
|
8
9
|
exports.default = appInfo => {
|
|
9
10
|
const exports = {};
|
|
10
11
|
exports.rundir = path.join(appInfo.appDir, 'run');
|
|
@@ -43,7 +44,7 @@ exports.default = appInfo => {
|
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
// 修改默认的日志名
|
|
46
|
-
exports.midwayLogger = defaultLoggerConfig;
|
|
47
|
+
exports.midwayLogger = (0, core_1.extend)(true, {}, loggerModule.loggers.getDefaultMidwayLoggerConfig(appInfo)['midwayLogger'], defaultLoggerConfig);
|
|
47
48
|
exports.egg = {
|
|
48
49
|
dumpConfig: true,
|
|
49
50
|
contextLoggerFormat: info => {
|
package/dist/logger.js
CHANGED
|
@@ -87,7 +87,7 @@ class MidwayLoggers extends Map {
|
|
|
87
87
|
let loggerConfig = configService.getConfiguration('midwayLogger');
|
|
88
88
|
// 这里属于 hack 了,cluster 模式下会先走这里,找不到默认值
|
|
89
89
|
// 先合并一遍默认配置
|
|
90
|
-
configService.addObject(logger_1.loggers.getDefaultMidwayLoggerConfig(configService.getAppInfo()));
|
|
90
|
+
configService.addObject(logger_1.loggers.getDefaultMidwayLoggerConfig(configService.getAppInfo()), true);
|
|
91
91
|
loggerConfig = configService.getConfiguration('midwayLogger');
|
|
92
92
|
// 这里利用了 loggers 缓存的特性,提前初始化 logger
|
|
93
93
|
if (loggerConfig) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/web",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.4-beta.2",
|
|
4
4
|
"description": "Midway Web Framework for Egg.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=12"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "a603d2348d6141f8f723901498f03a162a037708"
|
|
64
64
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2013 - Now midwayjs
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|