@futdevpro/fsm-dynamo 1.11.9 → 1.11.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/build/_collections/utils/log.util.js +2 -2
- package/build/_collections/utils/log.util.spec.js +1 -1
- package/{futdevpro-fsm-dynamo-01.11.9.tgz → futdevpro-fsm-dynamo-01.11.10.tgz} +0 -0
- package/package.json +1 -1
- package/src/_collections/utils/log.util.spec.ts +1 -1
- package/src/_collections/utils/log.util.ts +2 -2
|
@@ -111,10 +111,10 @@ class DyFM_Log {
|
|
|
111
111
|
*/
|
|
112
112
|
static info(message, ...optionalParams) {
|
|
113
113
|
if (0 < optionalParams.length) {
|
|
114
|
-
console.info(`${log_style_enum_1.DyFM_LogStyle.
|
|
114
|
+
console.info(`${log_style_enum_1.DyFM_LogStyle.cyan}${message}`, ...optionalParams, log_style_enum_1.DyFM_LogStyle.reset);
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
console.info(`${log_style_enum_1.DyFM_LogStyle.
|
|
117
|
+
console.info(`${log_style_enum_1.DyFM_LogStyle.cyan}${message}${log_style_enum_1.DyFM_LogStyle.reset}`);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
// ez azért nem egy sima "static readonly log = console.log;",
|
|
@@ -39,7 +39,7 @@ describe('| DyFM_Log', () => {
|
|
|
39
39
|
});
|
|
40
40
|
it('| should log info message with styles', () => {
|
|
41
41
|
log_util_1.DyFM_Log.info('Info message');
|
|
42
|
-
expect(console.info).toHaveBeenCalledWith(`${log_style_enum_1.DyFM_LogStyle.
|
|
42
|
+
expect(console.info).toHaveBeenCalledWith(`${log_style_enum_1.DyFM_LogStyle.cyan}Info message${log_style_enum_1.DyFM_LogStyle.reset}`);
|
|
43
43
|
});
|
|
44
44
|
it('| should log message without styles using log', () => {
|
|
45
45
|
log_util_1.DyFM_Log.log('Log message');
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.11.
|
|
3
|
+
"version": "01.11.10",
|
|
4
4
|
"description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
|
|
5
5
|
"DyBu_settings": {
|
|
6
6
|
"packageType": "full-stack-package",
|
|
@@ -48,7 +48,7 @@ describe('| DyFM_Log', () => {
|
|
|
48
48
|
|
|
49
49
|
it('| should log info message with styles', () => {
|
|
50
50
|
DyFM_Log.info('Info message');
|
|
51
|
-
expect(console.info).toHaveBeenCalledWith(`${DyFM_LogStyle.
|
|
51
|
+
expect(console.info).toHaveBeenCalledWith(`${DyFM_LogStyle.cyan}Info message${DyFM_LogStyle.reset}`);
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
it('| should log message without styles using log', () => {
|
|
@@ -133,11 +133,11 @@ export class DyFM_Log {
|
|
|
133
133
|
static info(message: string, ...optionalParams: any[]): void {
|
|
134
134
|
if (0 < optionalParams.length) {
|
|
135
135
|
console.info(
|
|
136
|
-
`${DyFM_LogStyle.
|
|
136
|
+
`${DyFM_LogStyle.cyan}${message}`,
|
|
137
137
|
...optionalParams, DyFM_LogStyle.reset
|
|
138
138
|
);
|
|
139
139
|
} else {
|
|
140
|
-
console.info(`${DyFM_LogStyle.
|
|
140
|
+
console.info(`${DyFM_LogStyle.cyan}${message}${DyFM_LogStyle.reset}`);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|