@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.
@@ -6808,12 +6808,12 @@
6808
6808
  },
6809
6809
  {
6810
6810
  "kind": "PropertySignature",
6811
- "canonicalReference": "@microsoft/applicationinsights-web-basic!IConfiguration#enableDebugExceptions:member",
6811
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!IConfiguration#enableDebug:member",
6812
6812
  "docComment": "/**\n * If enabled, uncaught exceptions will be thrown to help with debugging\n */\n",
6813
6813
  "excerptTokens": [
6814
6814
  {
6815
6815
  "kind": "Content",
6816
- "text": "enableDebugExceptions?: "
6816
+ "text": "enableDebug?: "
6817
6817
  },
6818
6818
  {
6819
6819
  "kind": "Content",
@@ -6827,7 +6827,7 @@
6827
6827
  "isReadonly": false,
6828
6828
  "isOptional": true,
6829
6829
  "releaseTag": "Public",
6830
- "name": "enableDebugExceptions",
6830
+ "name": "enableDebug",
6831
6831
  "propertyTypeTokenRange": {
6832
6832
  "startIndex": 1,
6833
6833
  "endIndex": 2
@@ -365,7 +365,7 @@ export interface IConfiguration {
365
365
  disableInstrumentationKeyValidation?: boolean;
366
366
  disablePageShowEvents?: string[];
367
367
  disablePageUnloadEvents?: string[];
368
- enableDebugExceptions?: boolean;
368
+ enableDebug?: boolean;
369
369
  enablePerfMgr?: boolean;
370
370
  enableWParam?: boolean;
371
371
  endpointUrl?: string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.0.0-beta.2303-10
2
+ * Microsoft.ApplicationInsights, 3.0.0-beta.2303-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1221,7 +1221,7 @@ declare namespace ApplicationInsights {
1221
1221
  /**
1222
1222
  * If enabled, uncaught exceptions will be thrown to help with debugging
1223
1223
  */
1224
- enableDebugExceptions?: boolean;
1224
+ enableDebug?: boolean;
1225
1225
  /**
1226
1226
  * Endpoint where telemetry data is sent
1227
1227
  */
@@ -1439,26 +1439,12 @@ declare namespace ApplicationInsights {
1439
1439
  }
1440
1440
 
1441
1441
  interface IDiagnosticLogger {
1442
- /**
1443
- * When this is true the SDK will throw exceptions to aid in debugging.
1444
- */
1445
- enableDebugExceptions: () => boolean;
1446
1442
  /**
1447
1443
  * 0: OFF
1448
1444
  * 1: only critical (default)
1449
1445
  * 2: critical + info
1450
1446
  */
1451
1447
  consoleLoggingLevel: () => number;
1452
- /**
1453
- * 0: OFF (default)
1454
- * 1: CRITICAL
1455
- * 2: WARNING
1456
- */
1457
- telemetryLoggingLevel: () => number;
1458
- /**
1459
- * The maximum number of internal messages allowed to be sent per page view
1460
- */
1461
- maxInternalMessageLimit: () => number;
1462
1448
  /**
1463
1449
  * The internal logging queue
1464
1450
  */
@@ -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);