@microsoft/applicationinsights-web-basic 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.
package/browser/aib.2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-10
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -12,7 +12,7 @@
12
12
  * Microsoft Dynamic Proto Utility, 1.1.8
13
13
  * Copyright (c) Microsoft and contributors. All rights reserved.
14
14
  */
15
- var _a$5;
15
+ var _a$4;
16
16
  var UNDEFINED$1 = "undefined";
17
17
  var Constructor = 'constructor';
18
18
  var Prototype = 'prototype';
@@ -52,10 +52,10 @@
52
52
  }
53
53
  var _gbl = _getGlobal();
54
54
  var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
55
- o: (_a$5 = {},
56
- _a$5[strSetInstFuncs] = true,
57
- _a$5[strUseBaseInst] = true,
58
- _a$5),
55
+ o: (_a$4 = {},
56
+ _a$4[strSetInstFuncs] = true,
57
+ _a$4[strUseBaseInst] = true,
58
+ _a$4),
59
59
  n: 1000
60
60
  });
61
61
  function _hasOwnProperty(obj, prop) {
@@ -1181,7 +1181,6 @@
1181
1181
  var _DYN_SPLIT$1 = "split";
1182
1182
  var _DYN_NODE_TYPE = "nodeType";
1183
1183
  var _DYN_REPLACE = "replace";
1184
- var _DYN_ENABLE_DEBUG_EXCEPTI5 = "enableDebugExceptions";
1185
1184
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
1186
1185
  var _DYN_TYPE = "type";
1187
1186
  var _DYN_HANDLER = "handler";
@@ -1597,7 +1596,7 @@
1597
1596
  return result;
1598
1597
  }
1599
1598
 
1600
- var version = "3.0.0-beta.2303-10";
1599
+ var version = "3.0.0-beta.2303-11";
1601
1600
  var instanceName = "." + newId(6);
1602
1601
  var _dataUid = 0;
1603
1602
  function _canAcceptData(target) {
@@ -2119,8 +2118,19 @@
2119
2118
  function _watch(configHandler) {
2120
2119
  return _createAndUseHandler(theState, configHandler);
2121
2120
  }
2122
- function _block(configHandler) {
2123
- theState.use(null, configHandler);
2121
+ function _block(configHandler, allowUpdate) {
2122
+ theState.use(null, function (details) {
2123
+ var prevUpd = theState.upd;
2124
+ try {
2125
+ if (!isUndefined(allowUpdate)) {
2126
+ theState.upd = allowUpdate;
2127
+ }
2128
+ configHandler(details);
2129
+ }
2130
+ finally {
2131
+ theState.upd = prevUpd;
2132
+ }
2133
+ });
2124
2134
  }
2125
2135
  function _ref(target, name) {
2126
2136
  return _setDynamicProperty(theState, target, name, target[name], true)[name];
@@ -2255,17 +2265,15 @@
2255
2265
  return _debugListener;
2256
2266
  }
2257
2267
 
2258
- var _a$4;
2259
2268
  var AiNonUserActionablePrefix = "AI (Internal): ";
2260
2269
  var AiUserActionablePrefix = "AI: ";
2261
2270
  var AIInternalMessagePrefix = "AITR_";
2262
- var defaultValues$2 = (_a$4 = {
2263
- loggingLevelConsole: 0,
2264
- loggingLevelTelemetry: 1,
2265
- maxMessageLimit: 25
2266
- },
2267
- _a$4[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = false,
2268
- _a$4);
2271
+ var defaultValues$2 = {
2272
+ loggingLevelConsole: 0,
2273
+ loggingLevelTelemetry: 1,
2274
+ maxMessageLimit: 25,
2275
+ enableDebug: false
2276
+ };
2269
2277
  function _sanitizeDiagnosticText(text) {
2270
2278
  if (text) {
2271
2279
  return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
@@ -2315,17 +2323,14 @@
2315
2323
  var _loggingLevelConsole;
2316
2324
  var _loggingLevelTelemetry;
2317
2325
  var _maxInternalMessageLimit;
2318
- var _enableDebugExceptions;
2326
+ var _enableDebug;
2319
2327
  dynamicProto(DiagnosticLogger, this, function (_self) {
2320
2328
  _setDefaultsFromConfig(config || {});
2321
2329
  _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2322
- _self.telemetryLoggingLevel = function () { return _loggingLevelTelemetry; };
2323
- _self.maxInternalMessageLimit = function () { return _maxInternalMessageLimit; };
2324
- _self[_DYN_ENABLE_DEBUG_EXCEPTI5 ] = function () { return _enableDebugExceptions; };
2325
2330
  _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2326
2331
  if (isUserAct === void 0) { isUserAct = false; }
2327
2332
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
2328
- if (_enableDebugExceptions) {
2333
+ if (_enableDebug) {
2329
2334
  throw dumpObj(message);
2330
2335
  }
2331
2336
  else {
@@ -2401,7 +2406,7 @@
2401
2406
  _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2402
2407
  _loggingLevelTelemetry = config.loggingLevelTelemetry;
2403
2408
  _maxInternalMessageLimit = config.maxMessageLimit;
2404
- _enableDebugExceptions = config[_DYN_ENABLE_DEBUG_EXCEPTI5 ];
2409
+ _enableDebug = config.enableDebug;
2405
2410
  });
2406
2411
  }
2407
2412
  function _areInternalMessagesThrottled() {
@@ -4034,7 +4039,7 @@
4034
4039
  });
4035
4040
  }
4036
4041
  details[_DYN_SET_DF ](theConfig, defaultConfig);
4037
- });
4042
+ }, true);
4038
4043
  _configHandler[_DYN_NOTIFY ]();
4039
4044
  if (updateState) {
4040
4045
  _doUpdate(updateState);
@@ -5888,7 +5893,7 @@
5888
5893
  }
5889
5894
  }
5890
5895
  var EnvelopeCreator = {
5891
- Version: "3.0.0-beta.2303-10"
5896
+ Version: "3.0.0-beta.2303-11"
5892
5897
  };
5893
5898
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5894
5899
  EnvelopeCreatorInit(logger, telemetryItem);