@coralogix/browser 3.7.0 → 3.7.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 3.7.1 (2026-04-26)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - Support error logging for non-JSON-serializable error properties
6
+
1
7
  ## 3.7.0 (2026-04-19)
2
8
 
3
9
  ### 🚀 Features
package/index.esm2.js CHANGED
@@ -555,7 +555,12 @@ var CoralogixErrorInstrumentation = (function (_super) {
555
555
  var _this = _super.call(this, ERROR_INSTRUMENTATION_NAME, ERROR_INSTRUMENTATION_VERSION, config) || this;
556
556
  _this.parseErrorObject = function (obj) {
557
557
  var _a;
558
- return (_a = obj === null || obj === void 0 ? void 0 : obj.message) !== null && _a !== void 0 ? _a : JSON.stringify(obj, getCircularReplacer());
558
+ try {
559
+ return (_a = obj === null || obj === void 0 ? void 0 : obj.message) !== null && _a !== void 0 ? _a : JSON.stringify(obj, getCircularReplacer());
560
+ }
561
+ catch (_b) {
562
+ return obj === null || obj === void 0 ? void 0 : obj.toString();
563
+ }
559
564
  };
560
565
  if (getSdkConfig().supportMfe) {
561
566
  CxGlobal[CACHED_METADATA_KEY] = new Map();
@@ -4225,7 +4230,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
4225
4230
  return resolvedUrlBlueprinters;
4226
4231
  }
4227
4232
 
4228
- var SDK_VERSION = '3.7.0';
4233
+ var SDK_VERSION = '3.7.1';
4229
4234
 
4230
4235
  function shouldDropEvent(cxRumEvent, options) {
4231
4236
  if (isDocumentErrorWithoutMessage(cxRumEvent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/browser",
3
- "version": "3.7.0",
3
+ "version": "3.7.1",
4
4
  "description": "Official Coralogix SDK for browsers",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
package/src/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.7.0";
1
+ export declare const SDK_VERSION = "3.7.1";