@microsoft/applicationinsights-dependencies-js 2.7.2-nightly.2111-10 → 2.7.2-nightly.2111-15
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-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +35 -2
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +35 -2
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +1 -1
- package/dist-esm/TraceParent.js +1 -1
- package/dist-esm/ajax.js +1 -1
- package/dist-esm/ajaxRecord.js +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 2.7.2-nightly.2111-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 2.7.2-nightly.2111-15
|
|
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 - Dependencies Plugin, 2.7.2-nightly.2111-
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.2-nightly.2111-15
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -737,6 +737,22 @@
|
|
|
737
737
|
return isSupported;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
+
var _aiNamespace = null;
|
|
741
|
+
function _getExtensionNamespace() {
|
|
742
|
+
var target = getGlobalInst("Microsoft");
|
|
743
|
+
if (target) {
|
|
744
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
745
|
+
}
|
|
746
|
+
return _aiNamespace;
|
|
747
|
+
}
|
|
748
|
+
function getDebugExt(config) {
|
|
749
|
+
var ns = _aiNamespace;
|
|
750
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
751
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
752
|
+
}
|
|
753
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
754
|
+
}
|
|
755
|
+
|
|
740
756
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
741
757
|
var AiUserActionablePrefix = "AI: ";
|
|
742
758
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -820,13 +836,18 @@
|
|
|
820
836
|
}
|
|
821
837
|
_self.logInternalMessage(severity, message);
|
|
822
838
|
}
|
|
839
|
+
else {
|
|
840
|
+
_debugExtMsg("throw" + (severity === LoggingSeverity.CRITICAL ? "Critical" : "Warning"), message);
|
|
841
|
+
}
|
|
823
842
|
}
|
|
824
843
|
};
|
|
825
844
|
_self.warnToConsole = function (message) {
|
|
826
845
|
_logToConsole("warn", message);
|
|
846
|
+
_debugExtMsg("warning", message);
|
|
827
847
|
};
|
|
828
848
|
_self.errorToConsole = function (message) {
|
|
829
849
|
_logToConsole("error", message);
|
|
850
|
+
_debugExtMsg("error", message);
|
|
830
851
|
};
|
|
831
852
|
_self.resetInternalMessageCount = function () {
|
|
832
853
|
_messageCount = 0;
|
|
@@ -848,12 +869,18 @@
|
|
|
848
869
|
if (severity <= _self.telemetryLoggingLevel()) {
|
|
849
870
|
_self.queue.push(message);
|
|
850
871
|
_messageCount++;
|
|
872
|
+
_debugExtMsg((severity === LoggingSeverity.CRITICAL ? "error" : "warn"), message);
|
|
851
873
|
}
|
|
852
874
|
if (_messageCount === _self.maxInternalMessageLimit()) {
|
|
853
875
|
var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
|
|
854
876
|
var throttleMessage = new _InternalLogMessage(_InternalMessageId.MessageLimitPerPVExceeded, throttleLimitMessage, false);
|
|
855
877
|
_self.queue.push(throttleMessage);
|
|
856
|
-
|
|
878
|
+
if (severity === LoggingSeverity.CRITICAL) {
|
|
879
|
+
_self.errorToConsole(throttleLimitMessage);
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
_self.warnToConsole(throttleLimitMessage);
|
|
883
|
+
}
|
|
857
884
|
}
|
|
858
885
|
}
|
|
859
886
|
};
|
|
@@ -867,6 +894,12 @@
|
|
|
867
894
|
function _areInternalMessagesThrottled() {
|
|
868
895
|
return _messageCount >= _self.maxInternalMessageLimit();
|
|
869
896
|
}
|
|
897
|
+
function _debugExtMsg(name, data) {
|
|
898
|
+
var dbgExt = getDebugExt(config);
|
|
899
|
+
if (dbgExt && dbgExt.diagLog) {
|
|
900
|
+
dbgExt.diagLog(name, data);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
870
903
|
});
|
|
871
904
|
}
|
|
872
905
|
return DiagnosticLogger;
|