@microsoft/applicationinsights-properties-js 2.7.2-nightly.2111-08 → 2.7.2-nightly.2111-13
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-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +36 -3
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +1 -1
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +36 -3
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +2 -2
- package/dist-esm/Context/Internal.js.map +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +3 -3
- package/src/Context/Internal.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 2.7.2-nightly.2111-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 2.7.2-nightly.2111-13
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -718,6 +718,22 @@
|
|
|
718
718
|
return objectTypeDump + propertyValueDump;
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
var _aiNamespace = null;
|
|
722
|
+
function _getExtensionNamespace() {
|
|
723
|
+
var target = getGlobalInst("Microsoft");
|
|
724
|
+
if (target) {
|
|
725
|
+
_aiNamespace = target["ApplicationInsights"];
|
|
726
|
+
}
|
|
727
|
+
return _aiNamespace;
|
|
728
|
+
}
|
|
729
|
+
function getDebugExt(config) {
|
|
730
|
+
var ns = _aiNamespace;
|
|
731
|
+
if (!ns && config.disableDbgExt !== true) {
|
|
732
|
+
ns = _aiNamespace || _getExtensionNamespace();
|
|
733
|
+
}
|
|
734
|
+
return ns ? ns["ChromeDbgExt"] : null;
|
|
735
|
+
}
|
|
736
|
+
|
|
721
737
|
var AiNonUserActionablePrefix = "AI (Internal): ";
|
|
722
738
|
var AiUserActionablePrefix = "AI: ";
|
|
723
739
|
var AIInternalMessagePrefix = "AITR_";
|
|
@@ -801,13 +817,18 @@
|
|
|
801
817
|
}
|
|
802
818
|
_self.logInternalMessage(severity, message);
|
|
803
819
|
}
|
|
820
|
+
else {
|
|
821
|
+
_debugExtMsg("throw" + (severity === LoggingSeverity.CRITICAL ? "Critical" : "Warning"), message);
|
|
822
|
+
}
|
|
804
823
|
}
|
|
805
824
|
};
|
|
806
825
|
_self.warnToConsole = function (message) {
|
|
807
826
|
_logToConsole("warn", message);
|
|
827
|
+
_debugExtMsg("warning", message);
|
|
808
828
|
};
|
|
809
829
|
_self.errorToConsole = function (message) {
|
|
810
830
|
_logToConsole("error", message);
|
|
831
|
+
_debugExtMsg("error", message);
|
|
811
832
|
};
|
|
812
833
|
_self.resetInternalMessageCount = function () {
|
|
813
834
|
_messageCount = 0;
|
|
@@ -829,12 +850,18 @@
|
|
|
829
850
|
if (severity <= _self.telemetryLoggingLevel()) {
|
|
830
851
|
_self.queue.push(message);
|
|
831
852
|
_messageCount++;
|
|
853
|
+
_debugExtMsg((severity === LoggingSeverity.CRITICAL ? "error" : "warn"), message);
|
|
832
854
|
}
|
|
833
855
|
if (_messageCount === _self.maxInternalMessageLimit()) {
|
|
834
856
|
var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
|
|
835
857
|
var throttleMessage = new _InternalLogMessage(_InternalMessageId.MessageLimitPerPVExceeded, throttleLimitMessage, false);
|
|
836
858
|
_self.queue.push(throttleMessage);
|
|
837
|
-
|
|
859
|
+
if (severity === LoggingSeverity.CRITICAL) {
|
|
860
|
+
_self.errorToConsole(throttleLimitMessage);
|
|
861
|
+
}
|
|
862
|
+
else {
|
|
863
|
+
_self.warnToConsole(throttleLimitMessage);
|
|
864
|
+
}
|
|
838
865
|
}
|
|
839
866
|
}
|
|
840
867
|
};
|
|
@@ -848,6 +875,12 @@
|
|
|
848
875
|
function _areInternalMessagesThrottled() {
|
|
849
876
|
return _messageCount >= _self.maxInternalMessageLimit();
|
|
850
877
|
}
|
|
878
|
+
function _debugExtMsg(name, data) {
|
|
879
|
+
var dbgExt = getDebugExt(config);
|
|
880
|
+
if (dbgExt && dbgExt.diagLog) {
|
|
881
|
+
dbgExt.diagLog(name, data);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
851
884
|
});
|
|
852
885
|
}
|
|
853
886
|
return DiagnosticLogger;
|
|
@@ -2046,7 +2079,7 @@
|
|
|
2046
2079
|
return Device;
|
|
2047
2080
|
}());
|
|
2048
2081
|
|
|
2049
|
-
var Version = "2.7.2-nightly.2111-
|
|
2082
|
+
var Version = "2.7.2-nightly.2111-13";
|
|
2050
2083
|
var Internal = /** @class */ (function () {
|
|
2051
2084
|
function Internal(config) {
|
|
2052
2085
|
this.sdkVersion = (config.sdkExtension && config.sdkExtension() ? config.sdkExtension() + "_" : "") + "javascript:" + Version;
|