@microsoft/applicationinsights-teechannel-js 3.1.1-nightly3.2403-02 → 3.1.1-nightly3.2403-04

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.
Files changed (45) hide show
  1. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.cjs.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.cjs.js} +230 -230
  2. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.cjs.js.map +1 -0
  3. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.cjs.min.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.cjs.min.js} +3 -3
  4. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.gbl.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.gbl.js} +232 -232
  6. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.gbl.js.map +1 -0
  7. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.gbl.min.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.gbl.min.js} +3 -3
  8. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.js} +232 -232
  11. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.js.map +1 -0
  12. package/browser/es5/{applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.min.js → applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.min.js} +3 -3
  13. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-04.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +229 -229
  15. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +231 -231
  19. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +231 -231
  24. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-teechannel-js.js +229 -229
  28. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
  31. package/dist-es5/ChannelController.js +1 -1
  32. package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
  33. package/dist-es5/TeeChannel.js +1 -1
  34. package/dist-es5/__DynamicConstants.js +1 -1
  35. package/dist-es5/applicationinsights-teechannel-js.js +1 -1
  36. package/package.json +3 -3
  37. package/types/applicationinsights-teechannel-js.d.ts +1 -1
  38. package/types/applicationinsights-teechannel-js.namespaced.d.ts +1 -1
  39. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.cjs.min.js.map +0 -1
  41. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.gbl.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.gbl.min.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.integrity.json +0 -66
  44. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.1.1-nightly3.2403-02.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Tee Channel, 3.1.1-nightly3.2403-02
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.1.1-nightly3.2403-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -1304,6 +1304,234 @@ var STR_PRIORITY = "priority";
1304
1304
  var STR_GET_PERF_MGR = "getPerfMgr";
1305
1305
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
1306
1306
 
1307
+ var _aiNamespace = null;
1308
+ function _getExtensionNamespace() {
1309
+ var target = getInst("Microsoft");
1310
+ if (target) {
1311
+ _aiNamespace = target["ApplicationInsights"];
1312
+ }
1313
+ return _aiNamespace;
1314
+ }
1315
+ function getDebugExt(config) {
1316
+ var ns = _aiNamespace;
1317
+ if (!ns && config.disableDbgExt !== true) {
1318
+ ns = _aiNamespace || _getExtensionNamespace();
1319
+ }
1320
+ return ns ? ns["ChromeDbgExt"] : null;
1321
+ }
1322
+
1323
+ var strConsole = "console";
1324
+ var strJSON = "JSON";
1325
+ var strCrypto = "crypto";
1326
+ var strMsCrypto = "msCrypto";
1327
+ var _isTrident = null;
1328
+ function getConsole() {
1329
+ if (typeof console !== strShimUndefined) {
1330
+ return console;
1331
+ }
1332
+ return getInst(strConsole);
1333
+ }
1334
+ function hasJSON() {
1335
+ return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
1336
+ }
1337
+ function getJSON() {
1338
+ if (hasJSON()) {
1339
+ return JSON || getInst(strJSON);
1340
+ }
1341
+ return null;
1342
+ }
1343
+ function getCrypto() {
1344
+ return getInst(strCrypto);
1345
+ }
1346
+ function getMsCrypto() {
1347
+ return getInst(strMsCrypto);
1348
+ }
1349
+ function isIE() {
1350
+ return _isTrident;
1351
+ }
1352
+
1353
+ var _a$2;
1354
+ var STR_WARN_TO_CONSOLE = "warnToConsole";
1355
+ var AiNonUserActionablePrefix = "AI (Internal): ";
1356
+ var AiUserActionablePrefix = "AI: ";
1357
+ var AIInternalMessagePrefix = "AITR_";
1358
+ var defaultValues$1 = {
1359
+ loggingLevelConsole: 0,
1360
+ loggingLevelTelemetry: 1,
1361
+ maxMessageLimit: 25,
1362
+ enableDebug: false
1363
+ };
1364
+ var _logFuncs = (_a$2 = {},
1365
+ _a$2[0 ] = null,
1366
+ _a$2[1 ] = "errorToConsole",
1367
+ _a$2[2 ] = STR_WARN_TO_CONSOLE,
1368
+ _a$2[3 ] = "debugToConsole",
1369
+ _a$2);
1370
+ function _sanitizeDiagnosticText(text) {
1371
+ if (text) {
1372
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
1373
+ }
1374
+ return STR_EMPTY;
1375
+ }
1376
+ function _logToConsole(func, message) {
1377
+ var theConsole = getConsole();
1378
+ if (!!theConsole) {
1379
+ var logFunc = "log";
1380
+ if (theConsole[func]) {
1381
+ logFunc = func;
1382
+ }
1383
+ if (isFunction(theConsole[logFunc])) {
1384
+ theConsole[logFunc](message);
1385
+ }
1386
+ }
1387
+ }
1388
+ var _InternalLogMessage = /** @class */ (function () {
1389
+ function _InternalLogMessage(msgId, msg, isUserAct, properties) {
1390
+ if (isUserAct === void 0) { isUserAct = false; }
1391
+ var _self = this;
1392
+ _self[_DYN_MESSAGE_ID ] = msgId;
1393
+ _self[_DYN_MESSAGE ] =
1394
+ (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
1395
+ msgId;
1396
+ var strProps = STR_EMPTY;
1397
+ if (hasJSON()) {
1398
+ strProps = getJSON().stringify(properties);
1399
+ }
1400
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
1401
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
1402
+ _self[_DYN_MESSAGE ] += diagnosticText;
1403
+ }
1404
+ _InternalLogMessage.dataType = "MessageData";
1405
+ return _InternalLogMessage;
1406
+ }());
1407
+ function safeGetLogger(core, config) {
1408
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
1409
+ }
1410
+ var DiagnosticLogger = /** @class */ (function () {
1411
+ function DiagnosticLogger(config) {
1412
+ this.identifier = "DiagnosticLogger";
1413
+ this.queue = [];
1414
+ var _messageCount = 0;
1415
+ var _messageLogged = {};
1416
+ var _loggingLevelConsole;
1417
+ var _loggingLevelTelemetry;
1418
+ var _maxInternalMessageLimit;
1419
+ var _enableDebug;
1420
+ var _unloadHandler;
1421
+ dynamicProto(DiagnosticLogger, this, function (_self) {
1422
+ _unloadHandler = _setDefaultsFromConfig(config || {});
1423
+ _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
1424
+ _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
1425
+ if (isUserAct === void 0) { isUserAct = false; }
1426
+ var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
1427
+ if (_enableDebug) {
1428
+ throw dumpObj(message);
1429
+ }
1430
+ else {
1431
+ var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
1432
+ if (!isUndefined(message[_DYN_MESSAGE ])) {
1433
+ if (isUserAct) {
1434
+ var messageKey = +message[_DYN_MESSAGE_ID ];
1435
+ if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
1436
+ _self[logFunc](message[_DYN_MESSAGE ]);
1437
+ _messageLogged[messageKey] = true;
1438
+ }
1439
+ }
1440
+ else {
1441
+ if (_loggingLevelConsole >= severity) {
1442
+ _self[logFunc](message[_DYN_MESSAGE ]);
1443
+ }
1444
+ }
1445
+ _logInternalMessage(severity, message);
1446
+ }
1447
+ else {
1448
+ _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
1449
+ }
1450
+ }
1451
+ };
1452
+ _self.debugToConsole = function (message) {
1453
+ _logToConsole("debug", message);
1454
+ _debugExtMsg("warning", message);
1455
+ };
1456
+ _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
1457
+ _logToConsole("warn", message);
1458
+ _debugExtMsg("warning", message);
1459
+ };
1460
+ _self.errorToConsole = function (message) {
1461
+ _logToConsole("error", message);
1462
+ _debugExtMsg("error", message);
1463
+ };
1464
+ _self.resetInternalMessageCount = function () {
1465
+ _messageCount = 0;
1466
+ _messageLogged = {};
1467
+ };
1468
+ _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
1469
+ _self[_DYN_UNLOAD ] = function (isAsync) {
1470
+ _unloadHandler && _unloadHandler.rm();
1471
+ _unloadHandler = null;
1472
+ };
1473
+ function _logInternalMessage(severity, message) {
1474
+ if (_areInternalMessagesThrottled()) {
1475
+ return;
1476
+ }
1477
+ var logMessage = true;
1478
+ var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
1479
+ if (_messageLogged[messageKey]) {
1480
+ logMessage = false;
1481
+ }
1482
+ else {
1483
+ _messageLogged[messageKey] = true;
1484
+ }
1485
+ if (logMessage) {
1486
+ if (severity <= _loggingLevelTelemetry) {
1487
+ _self.queue[_DYN_PUSH ](message);
1488
+ _messageCount++;
1489
+ _debugExtMsg((severity === 1 ? "error" : "warn"), message);
1490
+ }
1491
+ if (_messageCount === _maxInternalMessageLimit) {
1492
+ var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
1493
+ var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
1494
+ _self.queue[_DYN_PUSH ](throttleMessage);
1495
+ if (severity === 1 ) {
1496
+ _self.errorToConsole(throttleLimitMessage);
1497
+ }
1498
+ else {
1499
+ _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
1500
+ }
1501
+ }
1502
+ }
1503
+ }
1504
+ function _setDefaultsFromConfig(config) {
1505
+ return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
1506
+ var config = details.cfg;
1507
+ _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
1508
+ _loggingLevelTelemetry = config.loggingLevelTelemetry;
1509
+ _maxInternalMessageLimit = config.maxMessageLimit;
1510
+ _enableDebug = config.enableDebug;
1511
+ });
1512
+ }
1513
+ function _areInternalMessagesThrottled() {
1514
+ return _messageCount >= _maxInternalMessageLimit;
1515
+ }
1516
+ function _debugExtMsg(name, data) {
1517
+ var dbgExt = getDebugExt(config || {});
1518
+ if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
1519
+ dbgExt[_DYN_DIAG_LOG ](name, data);
1520
+ }
1521
+ }
1522
+ });
1523
+ }
1524
+ DiagnosticLogger.__ieDyn=1;
1525
+ return DiagnosticLogger;
1526
+ }());
1527
+ function _getLogger(logger) {
1528
+ return (logger || new DiagnosticLogger());
1529
+ }
1530
+ function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
1531
+ if (isUserAct === void 0) { isUserAct = false; }
1532
+ _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
1533
+ }
1534
+
1307
1535
  var rCamelCase = /-([a-z])/g;
1308
1536
  var rNormalizeInvalid = /([^\w\d_$])/g;
1309
1537
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
@@ -1360,36 +1588,6 @@ function proxyFunctions(target, source, functionsToProxy, overwriteTarget) {
1360
1588
  return target;
1361
1589
  }
1362
1590
 
1363
- var strConsole = "console";
1364
- var strJSON = "JSON";
1365
- var strCrypto = "crypto";
1366
- var strMsCrypto = "msCrypto";
1367
- var _isTrident = null;
1368
- function getConsole() {
1369
- if (typeof console !== strShimUndefined) {
1370
- return console;
1371
- }
1372
- return getInst(strConsole);
1373
- }
1374
- function hasJSON() {
1375
- return Boolean((typeof JSON === strShimObject && JSON) || getInst(strJSON) !== null);
1376
- }
1377
- function getJSON() {
1378
- if (hasJSON()) {
1379
- return JSON || getInst(strJSON);
1380
- }
1381
- return null;
1382
- }
1383
- function getCrypto() {
1384
- return getInst(strCrypto);
1385
- }
1386
- function getMsCrypto() {
1387
- return getInst(strMsCrypto);
1388
- }
1389
- function isIE() {
1390
- return _isTrident;
1391
- }
1392
-
1393
1591
  var UInt32Mask = 0x100000000;
1394
1592
  var MaxUInt32 = 0xffffffff;
1395
1593
  var SEED1 = 123456789;
@@ -2146,204 +2344,6 @@ function cfgDfBoolean(defaultValue, fallBackName) {
2146
2344
  };
2147
2345
  }
2148
2346
 
2149
- var _aiNamespace = null;
2150
- function _getExtensionNamespace() {
2151
- var target = getInst("Microsoft");
2152
- if (target) {
2153
- _aiNamespace = target["ApplicationInsights"];
2154
- }
2155
- return _aiNamespace;
2156
- }
2157
- function getDebugExt(config) {
2158
- var ns = _aiNamespace;
2159
- if (!ns && config.disableDbgExt !== true) {
2160
- ns = _aiNamespace || _getExtensionNamespace();
2161
- }
2162
- return ns ? ns["ChromeDbgExt"] : null;
2163
- }
2164
-
2165
- var _a$2;
2166
- var STR_WARN_TO_CONSOLE = "warnToConsole";
2167
- var AiNonUserActionablePrefix = "AI (Internal): ";
2168
- var AiUserActionablePrefix = "AI: ";
2169
- var AIInternalMessagePrefix = "AITR_";
2170
- var defaultValues$1 = {
2171
- loggingLevelConsole: 0,
2172
- loggingLevelTelemetry: 1,
2173
- maxMessageLimit: 25,
2174
- enableDebug: false
2175
- };
2176
- var _logFuncs = (_a$2 = {},
2177
- _a$2[0 ] = null,
2178
- _a$2[1 ] = "errorToConsole",
2179
- _a$2[2 ] = STR_WARN_TO_CONSOLE,
2180
- _a$2[3 ] = "debugToConsole",
2181
- _a$2);
2182
- function _sanitizeDiagnosticText(text) {
2183
- if (text) {
2184
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
2185
- }
2186
- return STR_EMPTY;
2187
- }
2188
- function _logToConsole(func, message) {
2189
- var theConsole = getConsole();
2190
- if (!!theConsole) {
2191
- var logFunc = "log";
2192
- if (theConsole[func]) {
2193
- logFunc = func;
2194
- }
2195
- if (isFunction(theConsole[logFunc])) {
2196
- theConsole[logFunc](message);
2197
- }
2198
- }
2199
- }
2200
- var _InternalLogMessage = /** @class */ (function () {
2201
- function _InternalLogMessage(msgId, msg, isUserAct, properties) {
2202
- if (isUserAct === void 0) { isUserAct = false; }
2203
- var _self = this;
2204
- _self[_DYN_MESSAGE_ID ] = msgId;
2205
- _self[_DYN_MESSAGE ] =
2206
- (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
2207
- msgId;
2208
- var strProps = STR_EMPTY;
2209
- if (hasJSON()) {
2210
- strProps = getJSON().stringify(properties);
2211
- }
2212
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
2213
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
2214
- _self[_DYN_MESSAGE ] += diagnosticText;
2215
- }
2216
- _InternalLogMessage.dataType = "MessageData";
2217
- return _InternalLogMessage;
2218
- }());
2219
- function safeGetLogger(core, config) {
2220
- return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
2221
- }
2222
- var DiagnosticLogger = /** @class */ (function () {
2223
- function DiagnosticLogger(config) {
2224
- this.identifier = "DiagnosticLogger";
2225
- this.queue = [];
2226
- var _messageCount = 0;
2227
- var _messageLogged = {};
2228
- var _loggingLevelConsole;
2229
- var _loggingLevelTelemetry;
2230
- var _maxInternalMessageLimit;
2231
- var _enableDebug;
2232
- var _unloadHandler;
2233
- dynamicProto(DiagnosticLogger, this, function (_self) {
2234
- _unloadHandler = _setDefaultsFromConfig(config || {});
2235
- _self.consoleLoggingLevel = function () { return _loggingLevelConsole; };
2236
- _self[_DYN_THROW_INTERNAL ] = function (severity, msgId, msg, properties, isUserAct) {
2237
- if (isUserAct === void 0) { isUserAct = false; }
2238
- var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
2239
- if (_enableDebug) {
2240
- throw dumpObj(message);
2241
- }
2242
- else {
2243
- var logFunc = _logFuncs[severity] || STR_WARN_TO_CONSOLE;
2244
- if (!isUndefined(message[_DYN_MESSAGE ])) {
2245
- if (isUserAct) {
2246
- var messageKey = +message[_DYN_MESSAGE_ID ];
2247
- if (!_messageLogged[messageKey] && _loggingLevelConsole >= severity) {
2248
- _self[logFunc](message[_DYN_MESSAGE ]);
2249
- _messageLogged[messageKey] = true;
2250
- }
2251
- }
2252
- else {
2253
- if (_loggingLevelConsole >= severity) {
2254
- _self[logFunc](message[_DYN_MESSAGE ]);
2255
- }
2256
- }
2257
- _logInternalMessage(severity, message);
2258
- }
2259
- else {
2260
- _debugExtMsg("throw" + (severity === 1 ? "Critical" : "Warning"), message);
2261
- }
2262
- }
2263
- };
2264
- _self.debugToConsole = function (message) {
2265
- _logToConsole("debug", message);
2266
- _debugExtMsg("warning", message);
2267
- };
2268
- _self[_DYN_WARN_TO_CONSOLE ] = function (message) {
2269
- _logToConsole("warn", message);
2270
- _debugExtMsg("warning", message);
2271
- };
2272
- _self.errorToConsole = function (message) {
2273
- _logToConsole("error", message);
2274
- _debugExtMsg("error", message);
2275
- };
2276
- _self.resetInternalMessageCount = function () {
2277
- _messageCount = 0;
2278
- _messageLogged = {};
2279
- };
2280
- _self[_DYN_LOG_INTERNAL_MESSAGE ] = _logInternalMessage;
2281
- _self[_DYN_UNLOAD ] = function (isAsync) {
2282
- _unloadHandler && _unloadHandler.rm();
2283
- _unloadHandler = null;
2284
- };
2285
- function _logInternalMessage(severity, message) {
2286
- if (_areInternalMessagesThrottled()) {
2287
- return;
2288
- }
2289
- var logMessage = true;
2290
- var messageKey = AIInternalMessagePrefix + message[_DYN_MESSAGE_ID ];
2291
- if (_messageLogged[messageKey]) {
2292
- logMessage = false;
2293
- }
2294
- else {
2295
- _messageLogged[messageKey] = true;
2296
- }
2297
- if (logMessage) {
2298
- if (severity <= _loggingLevelTelemetry) {
2299
- _self.queue[_DYN_PUSH ](message);
2300
- _messageCount++;
2301
- _debugExtMsg((severity === 1 ? "error" : "warn"), message);
2302
- }
2303
- if (_messageCount === _maxInternalMessageLimit) {
2304
- var throttleLimitMessage = "Internal events throttle limit per PageView reached for this app.";
2305
- var throttleMessage = new _InternalLogMessage(23 , throttleLimitMessage, false);
2306
- _self.queue[_DYN_PUSH ](throttleMessage);
2307
- if (severity === 1 ) {
2308
- _self.errorToConsole(throttleLimitMessage);
2309
- }
2310
- else {
2311
- _self[_DYN_WARN_TO_CONSOLE ](throttleLimitMessage);
2312
- }
2313
- }
2314
- }
2315
- }
2316
- function _setDefaultsFromConfig(config) {
2317
- return onConfigChange(createDynamicConfig(config, defaultValues$1, _self).cfg, function (details) {
2318
- var config = details.cfg;
2319
- _loggingLevelConsole = config[_DYN_LOGGING_LEVEL_CONSOL4 ];
2320
- _loggingLevelTelemetry = config.loggingLevelTelemetry;
2321
- _maxInternalMessageLimit = config.maxMessageLimit;
2322
- _enableDebug = config.enableDebug;
2323
- });
2324
- }
2325
- function _areInternalMessagesThrottled() {
2326
- return _messageCount >= _maxInternalMessageLimit;
2327
- }
2328
- function _debugExtMsg(name, data) {
2329
- var dbgExt = getDebugExt(config || {});
2330
- if (dbgExt && dbgExt[_DYN_DIAG_LOG ]) {
2331
- dbgExt[_DYN_DIAG_LOG ](name, data);
2332
- }
2333
- }
2334
- });
2335
- }
2336
- DiagnosticLogger.__ieDyn=1;
2337
- return DiagnosticLogger;
2338
- }());
2339
- function _getLogger(logger) {
2340
- return (logger || new DiagnosticLogger());
2341
- }
2342
- function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
2343
- if (isUserAct === void 0) { isUserAct = false; }
2344
- _getLogger(logger)[_DYN_THROW_INTERNAL ](severity, msgId, msg, properties, isUserAct);
2345
- }
2346
-
2347
2347
  var strExecutionContextKey = "ctx";
2348
2348
  var strParentContextKey = "ParentContextKey";
2349
2349
  var strChildrenContextKey = "ChildrenContextKey";