@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2303-10 → 3.0.0-beta.2303-11

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,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2303-10
2
+ * Microsoft Application Insights XHR dependencies plugin, 3.0.0-beta.2303-11
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, 3.0.0-beta.2303-10
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.0-beta.2303-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -102,7 +102,7 @@
102
102
  * Microsoft Dynamic Proto Utility, 1.1.8
103
103
  * Copyright (c) Microsoft and contributors. All rights reserved.
104
104
  */
105
- var _a$3;
105
+ var _a$2;
106
106
  var UNDEFINED$1 = "undefined";
107
107
  var Constructor = 'constructor';
108
108
  var Prototype = 'prototype';
@@ -142,10 +142,10 @@
142
142
  }
143
143
  var _gbl = _getGlobal();
144
144
  var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
145
- o: (_a$3 = {},
146
- _a$3[strSetInstFuncs] = true,
147
- _a$3[strUseBaseInst] = true,
148
- _a$3),
145
+ o: (_a$2 = {},
146
+ _a$2[strSetInstFuncs] = true,
147
+ _a$2[strUseBaseInst] = true,
148
+ _a$2),
149
149
  n: 1000
150
150
  });
151
151
  function _hasOwnProperty(obj, prop) {
@@ -1012,7 +1012,6 @@
1012
1012
  var _DYN_SPLIT$1 = "split";
1013
1013
  var _DYN_NODE_TYPE = "nodeType";
1014
1014
  var _DYN_REPLACE = "replace";
1015
- var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
1016
1015
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
1017
1016
  var _DYN_TYPE = "type";
1018
1017
  var _DYN_HANDLER = "handler";
@@ -1280,7 +1279,7 @@
1280
1279
  return result;
1281
1280
  }
1282
1281
 
1283
- var version = "3.0.0-beta.2303-10";
1282
+ var version = "3.0.0-beta.2303-11";
1284
1283
  var instanceName = "." + newId(6);
1285
1284
  var _dataUid = 0;
1286
1285
  function _canAcceptData(target) {
@@ -1802,8 +1801,19 @@
1802
1801
  function _watch(configHandler) {
1803
1802
  return _createAndUseHandler(theState, configHandler);
1804
1803
  }
1805
- function _block(configHandler) {
1806
- theState.use(null, configHandler);
1804
+ function _block(configHandler, allowUpdate) {
1805
+ theState.use(null, function (details) {
1806
+ var prevUpd = theState.upd;
1807
+ try {
1808
+ if (!isUndefined(allowUpdate)) {
1809
+ theState.upd = allowUpdate;
1810
+ }
1811
+ configHandler(details);
1812
+ }
1813
+ finally {
1814
+ theState.upd = prevUpd;
1815
+ }
1816
+ });
1807
1817
  }
1808
1818
  function _ref(target, name) {
1809
1819
  return _setDynamicProperty(theState, target, name, target[name], true)[name];
@@ -1883,17 +1893,15 @@
1883
1893
  return ns ? ns["ChromeDbgExt"] : null;
1884
1894
  }
1885
1895
 
1886
- var _a$2;
1887
1896
  var AiNonUserActionablePrefix = "AI (Internal): ";
1888
1897
  var AiUserActionablePrefix = "AI: ";
1889
1898
  var AIInternalMessagePrefix = "AITR_";
1890
- var defaultValues$1 = (_a$2 = {
1891
- loggingLevelConsole: 0,
1892
- loggingLevelTelemetry: 1,
1893
- maxMessageLimit: 25
1894
- },
1895
- _a$2[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = false,
1896
- _a$2);
1899
+ var defaultValues$1 = {
1900
+ loggingLevelConsole: 0,
1901
+ loggingLevelTelemetry: 1,
1902
+ maxMessageLimit: 25,
1903
+ enableDebug: false
1904
+ };
1897
1905
  function _sanitizeDiagnosticText(text) {
1898
1906
  if (text) {
1899
1907
  return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
@@ -1943,17 +1951,14 @@
1943
1951
  var _loggingLevelConsole;
1944
1952
  var _loggingLevelTelemetry;
1945
1953
  var _maxInternalMessageLimit;
1946
- var _enableDebugExceptions;
1954
+ var _enableDebug;
1947
1955
  dynamicProto(DiagnosticLogger, this, function (_self) {
1948
1956
  _setDefaultsFromConfig(config || {});
1949
1957
  _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1950
- _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
1951
- _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
1952
- _self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
1953
1958
  _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
1954
1959
  if (isUserAct === void 0) { isUserAct = false; }
1955
1960
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
1956
- if (_enableDebugExceptions) {
1961
+ if (_enableDebug) {
1957
1962
  throw dumpObj(message);
1958
1963
  }
1959
1964
  else {
@@ -2029,7 +2034,7 @@
2029
2034
  _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2030
2035
  _loggingLevelTelemetry = config.loggingLevelTelemetry;
2031
2036
  _maxInternalMessageLimit = config.maxMessageLimit;
2032
- _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI5 ];
2037
+ _enableDebug = config.enableDebug;
2033
2038
  });
2034
2039
  }
2035
2040
  function _areInternalMessagesThrottled() {