5htp-core 0.6.2-92 → 0.6.2-93
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp-core",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.6.2-
|
|
4
|
+
"version": "0.6.2-93",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp-core.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -197,9 +197,14 @@ export default class Console {
|
|
|
197
197
|
logErrors: string[],
|
|
198
198
|
settings: ISettings<ILogObj>
|
|
199
199
|
) => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
try {
|
|
201
|
+
const logErrorsStr = (logErrors.length > 0 && logArgs.length > 0 ? "\n" : "") + logErrors.join("\n");
|
|
202
|
+
settings.prettyInspectOptions = settings.prettyInspectOptions || {};
|
|
203
|
+
settings.prettyInspectOptions.colors = settings.stylePrettyLogs;
|
|
204
|
+
origLog(logMetaMarkup + formatWithOptions(settings.prettyInspectOptions, ...logArgs) + logErrorsStr);
|
|
205
|
+
} catch (error) {
|
|
206
|
+
origLog("Error formatting log", error);
|
|
207
|
+
}
|
|
203
208
|
},
|
|
204
209
|
}
|
|
205
210
|
});
|