@coralogix/browser 3.1.0 → 3.1.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 +6 -0
- package/index.esm2.js +14 -7
- package/package.json +1 -1
- package/src/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
package/index.esm2.js
CHANGED
|
@@ -621,20 +621,27 @@ var CoralogixErrorInstrumentation = (function (_super) {
|
|
|
621
621
|
};
|
|
622
622
|
CoralogixErrorInstrumentation.prototype.reportString = function (source, message, stackError) {
|
|
623
623
|
return __awaiter(this, void 0, void 0, function () {
|
|
624
|
-
var span;
|
|
625
|
-
return __generator(this, function (
|
|
626
|
-
switch (
|
|
624
|
+
var span, supportMfe;
|
|
625
|
+
return __generator(this, function (_b) {
|
|
626
|
+
switch (_b.label) {
|
|
627
627
|
case 0:
|
|
628
628
|
span = this.createSpan(source);
|
|
629
629
|
addErrorDefaultAttributes(span);
|
|
630
630
|
span.setAttribute(CoralogixAttributes.SOURCE, source);
|
|
631
631
|
span.setAttribute(ErrorAttributes.MESSAGE, message === null || message === void 0 ? void 0 : message.substring(0, MESSAGE_LIMIT));
|
|
632
|
-
|
|
632
|
+
supportMfe = getSdkConfig().supportMfe;
|
|
633
|
+
if (!stackError) return [3, 4];
|
|
634
|
+
if (!supportMfe) return [3, 2];
|
|
633
635
|
return [4, buildStacktrace(span, stackError)];
|
|
634
636
|
case 1:
|
|
635
|
-
|
|
636
|
-
|
|
637
|
+
_b.sent();
|
|
638
|
+
return [3, 3];
|
|
637
639
|
case 2:
|
|
640
|
+
void buildStacktrace(span, stackError);
|
|
641
|
+
_b.label = 3;
|
|
642
|
+
case 3:
|
|
643
|
+
_b.label = 4;
|
|
644
|
+
case 4:
|
|
638
645
|
span.end();
|
|
639
646
|
return [2];
|
|
640
647
|
}
|
|
@@ -4138,7 +4145,7 @@ function resolveUrlBlueprinters(urlBlueprinters) {
|
|
|
4138
4145
|
return resolvedUrlBlueprinters;
|
|
4139
4146
|
}
|
|
4140
4147
|
|
|
4141
|
-
var SDK_VERSION = '3.1.
|
|
4148
|
+
var SDK_VERSION = '3.1.1';
|
|
4142
4149
|
|
|
4143
4150
|
function shouldDropEvent(cxRumEvent, options) {
|
|
4144
4151
|
if (isDocumentErrorWithoutMessage(cxRumEvent)) {
|
package/package.json
CHANGED
package/src/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.1";
|