@microsoft/applicationinsights-react-js 3.2.1-nightly.202110-07 → 3.2.1-nightly.202110-08

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
- * Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-07
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.1-nightly.202110-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -71,7 +71,7 @@
71
71
  }
72
72
  var type = typeof obj;
73
73
  if (type !== strShimObject && type !== strShimFunction) {
74
- throwTypeError('Object prototype may only be an Object:' + obj);
74
+ throwTypeError("Object prototype may only be an Object:" + obj);
75
75
  }
76
76
  function tmpFunc() { }
77
77
  tmpFunc[strShimPrototype] = obj;
@@ -633,20 +633,20 @@
633
633
  }
634
634
  return str.replace(/^\s+|\s+$/g, "");
635
635
  }
636
- var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString');
636
+ var _objKeysHasDontEnumBug = !({ toString: null }).propertyIsEnumerable("toString");
637
637
  var _objKeysDontEnums = [
638
- 'toString',
639
- 'toLocaleString',
640
- 'valueOf',
641
- 'hasOwnProperty',
642
- 'isPrototypeOf',
643
- 'propertyIsEnumerable',
644
- 'constructor'
638
+ "toString",
639
+ "toLocaleString",
640
+ "valueOf",
641
+ "hasOwnProperty",
642
+ "isPrototypeOf",
643
+ "propertyIsEnumerable",
644
+ "constructor"
645
645
  ];
646
646
  function objKeys(obj) {
647
647
  var objType = typeof obj;
648
648
  if (objType !== strShimFunction && (objType !== strShimObject || obj === null)) {
649
- throwTypeError('objKeys called on non-object');
649
+ throwTypeError("objKeys called on non-object");
650
650
  }
651
651
  var result = [];
652
652
  for (var prop in obj) {
@@ -854,7 +854,7 @@
854
854
  }
855
855
  var DiagnosticLogger = /** @class */ (function () {
856
856
  function DiagnosticLogger(config) {
857
- this.identifier = 'DiagnosticLogger';
857
+ this.identifier = "DiagnosticLogger";
858
858
  this.queue = [];
859
859
  var _messageCount = 0;
860
860
  var _messageLogged = {};
@@ -862,10 +862,10 @@
862
862
  if (isNullOrUndefined(config)) {
863
863
  config = {};
864
864
  }
865
- _self.consoleLoggingLevel = function () { return _getConfigValue('loggingLevelConsole', 0); };
866
- _self.telemetryLoggingLevel = function () { return _getConfigValue('loggingLevelTelemetry', 1); };
867
- _self.maxInternalMessageLimit = function () { return _getConfigValue('maxMessageLimit', 25); };
868
- _self.enableDebugExceptions = function () { return _getConfigValue('enableDebugExceptions', false); };
865
+ _self.consoleLoggingLevel = function () { return _getConfigValue("loggingLevelConsole", 0); };
866
+ _self.telemetryLoggingLevel = function () { return _getConfigValue("loggingLevelTelemetry", 1); };
867
+ _self.maxInternalMessageLimit = function () { return _getConfigValue("maxMessageLimit", 25); };
868
+ _self.enableDebugExceptions = function () { return _getConfigValue("enableDebugExceptions", false); };
869
869
  _self.throwInternal = function (severity, msgId, msg, properties, isUserAct) {
870
870
  if (isUserAct === void 0) { isUserAct = false; }
871
871
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
@@ -894,9 +894,9 @@
894
894
  _self.warnToConsole = function (message) {
895
895
  var theConsole = getConsole();
896
896
  if (!!theConsole) {
897
- var logFunc = 'log';
897
+ var logFunc = "log";
898
898
  if (theConsole.warn) {
899
- logFunc = 'warn';
899
+ logFunc = "warn";
900
900
  }
901
901
  if (isFunction(theConsole[logFunc])) {
902
902
  theConsole[logFunc](message);
@@ -958,7 +958,7 @@
958
958
  _self.isChildEvt = function () { return false; };
959
959
  if (isFunction(payloadDetails)) {
960
960
  var theDetails_1;
961
- accessorDefined = objDefineAccessors(_self, 'payload', function () {
961
+ accessorDefined = objDefineAccessors(_self, "payload", function () {
962
962
  if (!theDetails_1 && isFunction(payloadDetails)) {
963
963
  theDetails_1 = payloadDetails();
964
964
  payloadDetails = null;
@@ -1636,8 +1636,8 @@
1636
1636
  function randomHexDigit() {
1637
1637
  return randomValue(15);
1638
1638
  }
1639
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(GuidRegex, function (c) {
1640
- var r = (randomHexDigit() | 0), v = (c === 'x' ? r : r & 0x3 | 0x8);
1639
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(GuidRegex, function (c) {
1640
+ var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
1641
1641
  return v.toString(16);
1642
1642
  });
1643
1643
  }
@@ -1650,7 +1650,7 @@
1650
1650
  }
1651
1651
  function newId(maxLength) {
1652
1652
  if (maxLength === void 0) { maxLength = 22; }
1653
- var base64chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1653
+ var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
1654
1654
  var number = random32() >>> 0;
1655
1655
  var chars = 0;
1656
1656
  var result = "";