moost 0.5.8 → 0.5.10
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/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -55,6 +55,7 @@ function getMoostMate() {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
const sharedMoostInfact = getNewMoostInfact();
|
|
58
|
+
const INFACT_BANNER = `${'[2m' + '[35m'}infact`;
|
|
58
59
|
let loggingOptions = {
|
|
59
60
|
newInstance: 'SINGLETON',
|
|
60
61
|
warn: true,
|
|
@@ -82,13 +83,13 @@ function getNewMoostInfact() {
|
|
|
82
83
|
scopeId: meta?.injectable === 'FOR_EVENT' ? eventCore.useEventId().getId() : undefined,
|
|
83
84
|
};
|
|
84
85
|
},
|
|
85
|
-
resolveParam({ paramMeta,
|
|
86
|
+
resolveParam({ paramMeta, customData, classConstructor, index }) {
|
|
86
87
|
if (paramMeta && customData?.pipes) {
|
|
87
88
|
return runPipes(customData.pipes, undefined, {
|
|
88
89
|
paramMeta,
|
|
89
90
|
type: classConstructor,
|
|
90
91
|
key: 'constructor',
|
|
91
|
-
classMeta:
|
|
92
|
+
classMeta: getMoostMate().read(classConstructor),
|
|
92
93
|
index,
|
|
93
94
|
targetMeta: paramMeta,
|
|
94
95
|
}, 'PARAM');
|
|
@@ -137,10 +138,10 @@ function getNewMoostInfact() {
|
|
|
137
138
|
}
|
|
138
139
|
let logger;
|
|
139
140
|
try {
|
|
140
|
-
logger = event === 'error' ? getDefaultLogger(
|
|
141
|
+
logger = event === 'error' ? getDefaultLogger(INFACT_BANNER) : eventCore.useEventLogger(INFACT_BANNER);
|
|
141
142
|
}
|
|
142
143
|
catch (error) {
|
|
143
|
-
logger = getDefaultLogger(
|
|
144
|
+
logger = getDefaultLogger(INFACT_BANNER);
|
|
144
145
|
}
|
|
145
146
|
const instance = `${'[4m'}${targetClass.name}${'[24m'}`;
|
|
146
147
|
switch (event) {
|
package/dist/index.mjs
CHANGED
|
@@ -57,6 +57,7 @@ function getMoostMate() {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
const sharedMoostInfact = getNewMoostInfact();
|
|
60
|
+
const INFACT_BANNER = `${'[2m' + '[35m'}infact`;
|
|
60
61
|
let loggingOptions = {
|
|
61
62
|
newInstance: 'SINGLETON',
|
|
62
63
|
warn: true,
|
|
@@ -84,13 +85,13 @@ function getNewMoostInfact() {
|
|
|
84
85
|
scopeId: meta?.injectable === 'FOR_EVENT' ? useEventId().getId() : undefined,
|
|
85
86
|
};
|
|
86
87
|
},
|
|
87
|
-
resolveParam({ paramMeta,
|
|
88
|
+
resolveParam({ paramMeta, customData, classConstructor, index }) {
|
|
88
89
|
if (paramMeta && customData?.pipes) {
|
|
89
90
|
return runPipes(customData.pipes, undefined, {
|
|
90
91
|
paramMeta,
|
|
91
92
|
type: classConstructor,
|
|
92
93
|
key: 'constructor',
|
|
93
|
-
classMeta:
|
|
94
|
+
classMeta: getMoostMate().read(classConstructor),
|
|
94
95
|
index,
|
|
95
96
|
targetMeta: paramMeta,
|
|
96
97
|
}, 'PARAM');
|
|
@@ -139,10 +140,10 @@ function getNewMoostInfact() {
|
|
|
139
140
|
}
|
|
140
141
|
let logger;
|
|
141
142
|
try {
|
|
142
|
-
logger = event === 'error' ? getDefaultLogger(
|
|
143
|
+
logger = event === 'error' ? getDefaultLogger(INFACT_BANNER) : useEventLogger(INFACT_BANNER);
|
|
143
144
|
}
|
|
144
145
|
catch (error) {
|
|
145
|
-
logger = getDefaultLogger(
|
|
146
|
+
logger = getDefaultLogger(INFACT_BANNER);
|
|
146
147
|
}
|
|
147
148
|
const instance = `${'[4m'}${targetClass.name}${'[24m'}`;
|
|
148
149
|
switch (event) {
|