Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arkitektum/client-logger

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arkitektum/client-logger - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

18

lib/cjs/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc