@microsoft/applicationinsights-channel-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 Channel, 3.0.0-beta.2303-10
2
+ * Microsoft Application Insights JavaScript SDK Channel, 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 - Channel, 3.0.0-beta.2303-10
2
+ * Application Insights JavaScript SDK - Channel, 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) {
@@ -986,7 +986,6 @@
986
986
  var _DYN_SPLIT$1 = "split";
987
987
  var _DYN_NODE_TYPE = "nodeType";
988
988
  var _DYN_REPLACE = "replace";
989
- var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
990
989
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
991
990
  var _DYN_TYPE = "type";
992
991
  var _DYN_HANDLER = "handler";
@@ -1351,7 +1350,7 @@
1351
1350
  return result;
1352
1351
  }
1353
1352
 
1354
- var version = "3.0.0-beta.2303-10";
1353
+ var version = "3.0.0-beta.2303-11";
1355
1354
  var instanceName = "." + newId(6);
1356
1355
  var _dataUid = 0;
1357
1356
  function _canAcceptData(target) {
@@ -1873,8 +1872,19 @@
1873
1872
  function _watch(configHandler) {
1874
1873
  return _createAndUseHandler(theState, configHandler);
1875
1874
  }
1876
- function _block(configHandler) {
1877
- theState.use(null, configHandler);
1875
+ function _block(configHandler, allowUpdate) {
1876
+ theState.use(null, function (details) {
1877
+ var prevUpd = theState.upd;
1878
+ try {
1879
+ if (!isUndefined(allowUpdate)) {
1880
+ theState.upd = allowUpdate;
1881
+ }
1882
+ configHandler(details);
1883
+ }
1884
+ finally {
1885
+ theState.upd = prevUpd;
1886
+ }
1887
+ });
1878
1888
  }
1879
1889
  function _ref(target, name) {
1880
1890
  return _setDynamicProperty(theState, target, name, target[name], true)[name];
@@ -1978,17 +1988,15 @@
1978
1988
  return ns ? ns["ChromeDbgExt"] : null;
1979
1989
  }
1980
1990
 
1981
- var _a$2;
1982
1991
  var AiNonUserActionablePrefix = "AI (Internal): ";
1983
1992
  var AiUserActionablePrefix = "AI: ";
1984
1993
  var AIInternalMessagePrefix = "AITR_";
1985
- var defaultValues$1 = (_a$2 = {
1986
- loggingLevelConsole: 0,
1987
- loggingLevelTelemetry: 1,
1988
- maxMessageLimit: 25
1989
- },
1990
- _a$2[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = false,
1991
- _a$2);
1994
+ var defaultValues$1 = {
1995
+ loggingLevelConsole: 0,
1996
+ loggingLevelTelemetry: 1,
1997
+ maxMessageLimit: 25,
1998
+ enableDebug: false
1999
+ };
1992
2000
  function _sanitizeDiagnosticText(text) {
1993
2001
  if (text) {
1994
2002
  return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
@@ -2038,17 +2046,14 @@
2038
2046
  var _loggingLevelConsole;
2039
2047
  var _loggingLevelTelemetry;
2040
2048
  var _maxInternalMessageLimit;
2041
- var _enableDebugExceptions;
2049
+ var _enableDebug;
2042
2050
  dynamicProto(DiagnosticLogger, this, function (_self) {
2043
2051
  _setDefaultsFromConfig(config || {});
2044
2052
  _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2045
- _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
2046
- _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
2047
- _self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
2048
2053
  _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2049
2054
  if (isUserAct === void 0) { isUserAct = false; }
2050
2055
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
2051
- if (_enableDebugExceptions) {
2056
+ if (_enableDebug) {
2052
2057
  throw dumpObj(message);
2053
2058
  }
2054
2059
  else {
@@ -2124,7 +2129,7 @@
2124
2129
  _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2125
2130
  _loggingLevelTelemetry = config.loggingLevelTelemetry;
2126
2131
  _maxInternalMessageLimit = config.maxMessageLimit;
2127
- _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI5 ];
2132
+ _enableDebug = config.enableDebug;
2128
2133
  });
2129
2134
  }
2130
2135
  function _areInternalMessagesThrottled() {
@@ -4277,7 +4282,7 @@
4277
4282
  }
4278
4283
  }
4279
4284
  var EnvelopeCreator = {
4280
- Version: "3.0.0-beta.2303-10"
4285
+ Version: "3.0.0-beta.2303-11"
4281
4286
  };
4282
4287
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
4283
4288
  EnvelopeCreatorInit(logger, telemetryItem);