@microsoft/applicationinsights-react-native 3.0.2 → 3.0.3

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 Native Plugin, 3.0.2
2
+ * Application Insights JavaScript SDK - React Native Plugin, 3.0.3
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1070,7 +1070,7 @@
1070
1070
  }
1071
1071
 
1072
1072
  var _objDefineProperty = ObjDefineProperty;
1073
- var version = '2.8.12';
1073
+ var version = '2.8.14';
1074
1074
  var instanceName = "." + newId(6);
1075
1075
  var _dataUid = 0;
1076
1076
  function _createAccessor(target, prop, value) {
@@ -1691,6 +1691,7 @@
1691
1691
  var AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
1692
1692
 
1693
1693
  var UNDEF_VALUE = undefined;
1694
+ var NULL_VALUE = null;
1694
1695
  var EMPTY = "";
1695
1696
  var FUNCTION = "function";
1696
1697
  var NUMBER = "number";
@@ -1739,7 +1740,7 @@
1739
1740
  }
1740
1741
  else {
1741
1742
  try {
1742
- propertyValueDump = JSON.stringify(object, null, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
1743
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
1743
1744
  }
1744
1745
  catch (e) {
1745
1746
  propertyValueDump = " - " + dumpObj(e, format);
@@ -1770,7 +1771,7 @@
1770
1771
  function _createTimerHandler(startTimer, refreshFn, cancelFn) {
1771
1772
  var _a;
1772
1773
  var ref = true;
1773
- var timerId = startTimer ? refreshFn(null) : null;
1774
+ var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;
1774
1775
  var theTimerHandler;
1775
1776
  var _unref = function () {
1776
1777
  ref = false;
@@ -1797,7 +1798,7 @@
1797
1798
  };
1798
1799
  var _cancel = function () {
1799
1800
  timerId && cancelFn(timerId);
1800
- timerId = null;
1801
+ timerId = NULL_VALUE;
1801
1802
  };
1802
1803
  var _setEnabled = function (value) {
1803
1804
  !value && timerId && _cancel();
@@ -1819,7 +1820,7 @@
1819
1820
  return {
1820
1821
  h: theTimerHandler,
1821
1822
  dn: function () {
1822
- timerId = null;
1823
+ timerId = NULL_VALUE;
1823
1824
  }
1824
1825
  };
1825
1826
  }