@microsoft/applicationinsights-dependencies-js 2.7.2 → 2.7.3-nightly.2201-02

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.18.21",
4
+ "toolVersion": "7.19.4",
5
5
  "schemaVersion": 1004,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.7.2
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.7.3-nightly.2201-02
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
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -609,6 +609,7 @@
609
609
 
610
610
  var strWindow = "window";
611
611
  var strDocument = "document";
612
+ var strDocumentMode = "documentMode";
612
613
  var strNavigator = "navigator";
613
614
  var strLocation = "location";
614
615
  var strConsole = "console";
@@ -705,7 +706,8 @@
705
706
  }
706
707
  var ua = (userAgentStr || "").toLowerCase();
707
708
  if (strContains(ua, strMsie)) {
708
- return parseInt(ua.split(strMsie)[1]);
709
+ var doc = getDocument() || {};
710
+ return Math.max(parseInt(ua.split(strMsie)[1]), (doc[strDocumentMode] || 0));
709
711
  }
710
712
  else if (strContains(ua, strTrident)) {
711
713
  var tridentVer = parseInt(ua.split(strTrident)[1]);