@microsoft/applicationinsights-analytics-js 2.7.2-nightly.2111-07 → 2.7.2-nightly.2111-12
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/browser/applicationinsights-analytics-js.integrity.json +9 -9
- package/browser/applicationinsights-analytics-js.js +37 -4
- package/browser/applicationinsights-analytics-js.js.map +1 -1
- package/browser/applicationinsights-analytics-js.min.js +2 -2
- package/browser/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.api.json +1 -1
- package/dist/applicationinsights-analytics-js.d.ts +1 -1
- package/dist/applicationinsights-analytics-js.js +37 -4
- package/dist/applicationinsights-analytics-js.js.map +1 -1
- package/dist/applicationinsights-analytics-js.min.js +2 -2
- package/dist/applicationinsights-analytics-js.min.js.map +1 -1
- package/dist/applicationinsights-analytics-js.rollup.d.ts +1 -1
- package/dist-esm/JavaScriptSDK/ApplicationInsights.js +2 -2
- package/dist-esm/JavaScriptSDK/ApplicationInsights.js.map +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
- package/dist-esm/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/applicationinsights-analytics-js.js +1 -1
- package/package.json +5 -5
- package/src/JavaScriptSDK/ApplicationInsights.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.2-nightly.2111-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK - Web Analytics, 2.7.2-nightly.2111-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Web Analytics, 2.7.2-nightly.2111-
|
|
2
|
+
* Application Insights JavaScript SDK - Web Analytics, 2.7.2-nightly.2111-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -711,6 +711,22 @@
|
|
|
711
711
|
return objectTypeDump + propertyValueDump;
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
+
var _aiNamespace = null;
|
|
715
|
+
function _getExtensionNamespace() {
|
|
716
|
+
var target = getGlobalInst("Microsoft");
|
|
717
|
+
if (target) {
|
|
718
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
719
|
+
}
|
|
720
|
+
return _aiNamespace;
|
|
721
|
+
}
|
|
722
|
+
function getDebugExt(config) {
|
|
723
|
+
var ns = _aiNamespace;
|
|
724
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
725
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
726
|
+
}
|
|
727
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
728
|
+
}
|
|
729
|
+
|
|
714
730
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
715
731
|
var AiUserActionablePrefix = "AI: ";
|
|
716
732
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -794,13 +810,18 @@
|
|
|
794
810
|
}
|
|
795
811
|
_self.logInternalMessage(severity, message);
|
|
796
812
|
}
|
|
813
|
+
else {
|
|
814
|
+
_debugExtMsg("throw" + (severity === LoggingSeverity.CRITICAL ? "Critical" : "Warning"), message);
|
|
815
|
+
}
|
|
797
816
|
}
|
|
798
817
|
};
|
|
799
818
|
_self.warnToConsole = function (message) {
|
|
800
819
|
_logToConsole("warn", message);
|
|
820
|
+
_debugExtMsg("warning", message);
|
|
801
821
|
};
|
|
802
822
|
_self.errorToConsole = function (message) {
|
|
803
823
|
_logToConsole("error", message);
|
|
824
|
+
_debugExtMsg("error", message);
|
|
804
825
|
};
|
|
805
826
|
_self.resetInternalMessageCount = function () {
|
|
806
827
|
_messageCount = 0;
|
|
@@ -822,12 +843,18 @@
|
|
|
822
843
|
if (severity <= _self.telemetryLoggingLevel()) {
|
|
823
844
|
_self.queue.push(message);
|
|
824
845
|
_messageCount++;
|
|
846
|
+
_debugExtMsg((severity === LoggingSeverity.CRITICAL ? "error" : "warn"), message);
|
|
825
847
|
}
|
|
826
848
|
if (_messageCount === _self.maxInternalMessageLimit()) {
|
|
827
849
|
var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
|
|
828
850
|
var throttleMessage = new _InternalLogMessage(_InternalMessageId.MessageLimitPerPVExceeded, throttleLimitMessage, false);
|
|
829
851
|
_self.queue.push(throttleMessage);
|
|
830
|
-
|
|
852
|
+
if (severity === LoggingSeverity.CRITICAL) {
|
|
853
|
+
_self.errorToConsole(throttleLimitMessage);
|
|
854
|
+
}
|
|
855
|
+
else {
|
|
856
|
+
_self.warnToConsole(throttleLimitMessage);
|
|
857
|
+
}
|
|
831
858
|
}
|
|
832
859
|
}
|
|
833
860
|
};
|
|
@@ -841,6 +868,12 @@
|
|
|
841
868
|
function _areInternalMessagesThrottled() {
|
|
842
869
|
return _messageCount >= _self.maxInternalMessageLimit();
|
|
843
870
|
}
|
|
871
|
+
function _debugExtMsg(name, data) {
|
|
872
|
+
var dbgExt = getDebugExt(config);
|
|
873
|
+
if (dbgExt && dbgExt.diagLog) {
|
|
874
|
+
dbgExt.diagLog(name, data);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
844
877
|
});
|
|
845
878
|
}
|
|
846
879
|
return DiagnosticLogger;
|
|
@@ -2522,7 +2555,7 @@
|
|
|
2522
2555
|
_this.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
|
|
2523
2556
|
_this.target = dataSanitizeString(logger, dependencyFields.target);
|
|
2524
2557
|
if (correlationContext) {
|
|
2525
|
-
_this.target = _this.target
|
|
2558
|
+
_this.target = "".concat(_this.target, " | ").concat(correlationContext);
|
|
2526
2559
|
}
|
|
2527
2560
|
_this.name = dataSanitizeString(logger, dependencyFields.name);
|
|
2528
2561
|
_this.properties = dataSanitizeProperties(logger, properties);
|
|
@@ -3407,7 +3440,7 @@
|
|
|
3407
3440
|
config.disableFlushOnUnload = stringToBoolOrDefault(config.disableFlushOnUnload, config.disableFlushOnBeforeUnload);
|
|
3408
3441
|
return config;
|
|
3409
3442
|
};
|
|
3410
|
-
ApplicationInsights.Version = "2.7.2-nightly.2111-
|
|
3443
|
+
ApplicationInsights.Version = "2.7.2-nightly.2111-12";
|
|
3411
3444
|
return ApplicationInsights;
|
|
3412
3445
|
}(BaseTelemetryPlugin));
|
|
3413
3446
|
var Timing = /** @class */ (function () {
|