@arkitektum/client-logger
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -145,6 +145,7 @@ "use strict"; | ||
ClientLogger.prototype.getLogMessageFromError = function (error, logMessageProps) { | ||
var _a, _b; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var consumer, _a, errorData; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
var consumer, _c, errorData; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
@@ -154,10 +155,13 @@ if (!(this.sourceMapJson !== null)) return [3 /*break*/, 2]; | ||
case 1: | ||
_a = _b.sent(); | ||
_c = _d.sent(); | ||
return [3 /*break*/, 3]; | ||
case 2: | ||
_a = null; | ||
_b.label = 3; | ||
_c = null; | ||
_d.label = 3; | ||
case 3: | ||
consumer = _a; | ||
consumer = _c; | ||
errorData = (0, functions_1.getErrorDataFromError)(error, consumer); | ||
if (((_a = errorData === null || errorData === void 0 ? void 0 : errorData.message) === null || _a === void 0 ? void 0 : _a.length) && ((_b = logMessageProps === null || logMessageProps === void 0 ? void 0 : logMessageProps.message) === null || _b === void 0 ? void 0 : _b.length)) { | ||
errorData.message = "".concat(errorData.message, " | ").concat(logMessageProps.message); | ||
} | ||
return [2 /*return*/, __assign(__assign({}, logMessageProps), errorData)]; | ||
@@ -164,0 +168,0 @@ } |
{ | ||
"name": "@arkitektum/client-logger", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "types": "./lib/cjs/types/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23531
382