@microsoft/applicationinsights-analytics-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 JavaScript SDK - Web Analytics, 3.0.0-beta.2303-10
2
+ * Microsoft Application Insights JavaScript SDK - Web Analytics, 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 - Web Analytics, 3.0.0-beta.2303-10
2
+ * Application Insights JavaScript SDK - Web Analytics, 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$4;
105
+ var _a$3;
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$4 = {},
146
- _a$4[strSetInstFuncs] = true,
147
- _a$4[strUseBaseInst] = true,
148
- _a$4),
145
+ o: (_a$3 = {},
146
+ _a$3[strSetInstFuncs] = true,
147
+ _a$3[strUseBaseInst] = true,
148
+ _a$3),
149
149
  n: 1000
150
150
  });
151
151
  function _hasOwnProperty(obj, prop) {
@@ -1030,7 +1030,6 @@
1030
1030
  var _DYN_SPLIT$1 = "split";
1031
1031
  var _DYN_NODE_TYPE = "nodeType";
1032
1032
  var _DYN_REPLACE = "replace";
1033
- var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
1034
1033
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
1035
1034
  var _DYN_TYPE = "type";
1036
1035
  var _DYN_HANDLER = "handler";
@@ -1264,7 +1263,7 @@
1264
1263
  return result;
1265
1264
  }
1266
1265
 
1267
- var version = "3.0.0-beta.2303-10";
1266
+ var version = "3.0.0-beta.2303-11";
1268
1267
  var instanceName = "." + newId(6);
1269
1268
  var _dataUid = 0;
1270
1269
  function _canAcceptData(target) {
@@ -1786,8 +1785,19 @@
1786
1785
  function _watch(configHandler) {
1787
1786
  return _createAndUseHandler(theState, configHandler);
1788
1787
  }
1789
- function _block(configHandler) {
1790
- theState.use(null, configHandler);
1788
+ function _block(configHandler, allowUpdate) {
1789
+ theState.use(null, function (details) {
1790
+ var prevUpd = theState.upd;
1791
+ try {
1792
+ if (!isUndefined(allowUpdate)) {
1793
+ theState.upd = allowUpdate;
1794
+ }
1795
+ configHandler(details);
1796
+ }
1797
+ finally {
1798
+ theState.upd = prevUpd;
1799
+ }
1800
+ });
1791
1801
  }
1792
1802
  function _ref(target, name) {
1793
1803
  return _setDynamicProperty(theState, target, name, target[name], true)[name];
@@ -1909,17 +1919,15 @@
1909
1919
  return ns ? ns["ChromeDbgExt"] : null;
1910
1920
  }
1911
1921
 
1912
- var _a$3;
1913
1922
  var AiNonUserActionablePrefix = "AI (Internal): ";
1914
1923
  var AiUserActionablePrefix = "AI: ";
1915
1924
  var AIInternalMessagePrefix = "AITR_";
1916
- var defaultValues$2 = (_a$3 = {
1917
- loggingLevelConsole: 0,
1918
- loggingLevelTelemetry: 1,
1919
- maxMessageLimit: 25
1920
- },
1921
- _a$3[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = false,
1922
- _a$3);
1925
+ var defaultValues$2 = {
1926
+ loggingLevelConsole: 0,
1927
+ loggingLevelTelemetry: 1,
1928
+ maxMessageLimit: 25,
1929
+ enableDebug: false
1930
+ };
1923
1931
  function _sanitizeDiagnosticText(text) {
1924
1932
  if (text) {
1925
1933
  return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
@@ -1969,17 +1977,14 @@
1969
1977
  var _loggingLevelConsole;
1970
1978
  var _loggingLevelTelemetry;
1971
1979
  var _maxInternalMessageLimit;
1972
- var _enableDebugExceptions;
1980
+ var _enableDebug;
1973
1981
  dynamicProto(DiagnosticLogger, this, function (_self) {
1974
1982
  _setDefaultsFromConfig(config || {});
1975
1983
  _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1976
- _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
1977
- _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
1978
- _self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
1979
1984
  _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
1980
1985
  if (isUserAct === void 0) { isUserAct = false; }
1981
1986
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
1982
- if (_enableDebugExceptions) {
1987
+ if (_enableDebug) {
1983
1988
  throw dumpObj(message);
1984
1989
  }
1985
1990
  else {
@@ -2055,7 +2060,7 @@
2055
2060
  _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2056
2061
  _loggingLevelTelemetry = config.loggingLevelTelemetry;
2057
2062
  _maxInternalMessageLimit = config.maxMessageLimit;
2058
- _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI5 ];
2063
+ _enableDebug = config.enableDebug;
2059
2064
  });
2060
2065
  }
2061
2066
  function _areInternalMessagesThrottled() {
@@ -5409,7 +5414,7 @@
5409
5414
  });
5410
5415
  return _this;
5411
5416
  }
5412
- AnalyticsPlugin.Version = "3.0.0-beta.2303-10";
5417
+ AnalyticsPlugin.Version = "3.0.0-beta.2303-11";
5413
5418
  return AnalyticsPlugin;
5414
5419
  }(BaseTelemetryPlugin));
5415
5420