@arkitektum/client-logger
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,5 +18,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -30,3 +35,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var stack = error.stack.toString(); | ||
var matches = __spread(stack.matchAll(stackRegex)); | ||
var matches = __spreadArray([], __read(stack.matchAll(stackRegex)), false); | ||
if (!!matches.length) { | ||
@@ -33,0 +38,0 @@ var matchGroup = (_b = matches === null || matches === void 0 ? void 0 : matches[0]) === null || _b === void 0 ? void 0 : _b.groups; |
@@ -62,4 +62,3 @@ "use strict"; | ||
return logMessages.map(function (logMessage) { | ||
return __assign(__assign({}, logMessage), { appName: appName, | ||
sessionId: sessionId, clientInfo: _this.getClientInfo() }); | ||
return __assign(__assign({}, logMessage), { appName: appName, sessionId: sessionId, clientInfo: _this.getClientInfo() }); | ||
}); | ||
@@ -86,3 +85,3 @@ }; | ||
else { | ||
var sessionId = generators_1.createUUID(); | ||
var sessionId = (0, generators_1.createUUID)(); | ||
sessionStorage["sessionId"] = sessionId; | ||
@@ -100,3 +99,3 @@ return sessionId; | ||
_d.trys.push([0, 2, , 3]); | ||
return [4 /*yield*/, dom_1.addScript()]; | ||
return [4 /*yield*/, (0, dom_1.addScript)()]; | ||
case 1: | ||
@@ -136,3 +135,3 @@ _d.sent(); | ||
return __generator(this, function (_a) { | ||
errorData = functions_1.getErrorDataFromSourceMap(event, source, line, column, consumer); | ||
errorData = (0, functions_1.getErrorDataFromSourceMap)(event, source, line, column, consumer); | ||
logMessages = [errorData]; | ||
@@ -165,3 +164,3 @@ clientLogger.postLogData(logMessages); | ||
consumer = _a; | ||
errorData = functions_1.getErrorDataFromError(error, consumer); | ||
errorData = (0, functions_1.getErrorDataFromError)(error, consumer); | ||
return [2 /*return*/, __assign(__assign({}, logMessageProps), errorData)]; | ||
@@ -168,0 +167,0 @@ } |
{ | ||
"name": "@arkitektum/client-logger", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
363
19245
2