@midwayjs/core 3.10.0 → 3.10.3
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.
|
@@ -34,7 +34,7 @@ let MidwayDecoratorService = class MidwayDecoratorService {
|
|
|
34
34
|
// loop it, save this order for decorator run
|
|
35
35
|
for (const meta of methodDecoratorMetadataList) {
|
|
36
36
|
const { propertyName, key, metadata, options } = meta;
|
|
37
|
-
if (!options.impl) {
|
|
37
|
+
if (!options || !options.impl) {
|
|
38
38
|
continue;
|
|
39
39
|
}
|
|
40
40
|
// add aspect implementation first
|
|
@@ -65,7 +65,7 @@ let MidwayDecoratorService = class MidwayDecoratorService {
|
|
|
65
65
|
for (const meta of parameterDecoratorMetadata[methodName]) {
|
|
66
66
|
const { propertyName, key, metadata, parameterIndex, options, } = meta;
|
|
67
67
|
let parameterDecoratorHandler;
|
|
68
|
-
if (options.impl) {
|
|
68
|
+
if (options && options.impl) {
|
|
69
69
|
parameterDecoratorHandler =
|
|
70
70
|
this.parameterDecoratorMap.get(key);
|
|
71
71
|
if (!parameterDecoratorHandler) {
|
|
@@ -9,7 +9,7 @@ export declare class MidwayLoggerService extends ServiceFactory<ILogger> {
|
|
|
9
9
|
private loggerFactory;
|
|
10
10
|
private lazyLoggerConfigMap;
|
|
11
11
|
constructor(applicationContext: IMidwayContainer, globalOptions?: {});
|
|
12
|
-
protected init():
|
|
12
|
+
protected init(): void;
|
|
13
13
|
protected createClient(config: any, name?: string): void;
|
|
14
14
|
getName(): string;
|
|
15
15
|
createLogger(name: any, config: any): any;
|
|
@@ -22,10 +22,10 @@ let MidwayLoggerService = class MidwayLoggerService extends serviceFactory_1.Ser
|
|
|
22
22
|
this.globalOptions = globalOptions;
|
|
23
23
|
this.lazyLoggerConfigMap = new Map();
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
init() {
|
|
26
26
|
var _a;
|
|
27
27
|
this.loggerFactory = this.globalOptions['loggerFactory'] || logger_1.loggers;
|
|
28
|
-
|
|
28
|
+
this.initClients(this.configService.getConfiguration('midwayLogger'));
|
|
29
29
|
// alias inject logger
|
|
30
30
|
(_a = this.applicationContext) === null || _a === void 0 ? void 0 : _a.registerObject('logger', this.getLogger('appLogger'));
|
|
31
31
|
}
|
|
@@ -68,7 +68,7 @@ __decorate([
|
|
|
68
68
|
(0, decorator_1.Init)(),
|
|
69
69
|
__metadata("design:type", Function),
|
|
70
70
|
__metadata("design:paramtypes", []),
|
|
71
|
-
__metadata("design:returntype",
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
72
|
], MidwayLoggerService.prototype, "init", null);
|
|
73
73
|
MidwayLoggerService = __decorate([
|
|
74
74
|
(0, decorator_1.Provide)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.3",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=12"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "de41ae38b72167c2a652d6eae5cfd8026c32c214"
|
|
46
46
|
}
|