@microsoft/applicationinsights-react-native 4.3.9-nightly.2602-09 → 4.3.9-nightly.2604-01

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, 4.3.9-nightly.2602-09
2
+ * Application Insights JavaScript SDK - React Native Plugin, 4.3.9-nightly.2604-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -18,7 +18,7 @@
18
18
  var strShimPrototype = "prototype";
19
19
  var ObjClass$1 = Object;
20
20
 
21
- /*! https://github.com/nevware21/ts-utils v0.12.6 */
21
+ /*! https://github.com/nevware21/ts-utils v0.13.0 */
22
22
  function _pureAssign(func1, func2) {
23
23
  return func1 || func2;
24
24
  }
@@ -732,7 +732,7 @@
732
732
  function _setName(baseClass, name) {
733
733
  name && (baseClass[NAME] = name);
734
734
  }
735
- function createCustomError(name, constructCb, errorBase) {
735
+ function createCustomError(name, constructCb, errorBase, superArgsFn) {
736
736
  var theBaseClass = errorBase || Error;
737
737
  var orgName = theBaseClass[PROTOTYPE][NAME];
738
738
  var captureFn = Error.captureStackTrace;
@@ -741,7 +741,7 @@
741
741
  var theArgs = arguments;
742
742
  try {
743
743
  safe(_setName, [theBaseClass, name]);
744
- var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
744
+ var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
745
745
  if (_self !== _this) {
746
746
  var orgProto = objGetPrototypeOf(_this);
747
747
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -1401,7 +1401,9 @@
1401
1401
  var _DYN_GET_CTX = "getCtx";
1402
1402
  var _DYN_SET_CTX = "setCtx";
1403
1403
  var _DYN_CONFIG = "config";
1404
+ var _DYN_CALL = "call";
1404
1405
  var _DYN_REPLACE = "replace";
1406
+ var _DYN_USER_AGENT = "userAgent";
1405
1407
 
1406
1408
  var aggregationErrorType;
1407
1409
  function throwAggregationError(message, sourceErrors) {
@@ -1500,7 +1502,7 @@
1500
1502
  if (!_userAgent) {
1501
1503
  _userAgent = getLazy(function () {
1502
1504
  var nav = getNavigator() || {};
1503
- return nav.userAgent || STR_EMPTY;
1505
+ return nav[_DYN_USER_AGENT ] || STR_EMPTY;
1504
1506
  });
1505
1507
  }
1506
1508
  return _userAgent.v;
@@ -1606,7 +1608,7 @@
1606
1608
  return result;
1607
1609
  }
1608
1610
 
1609
- var version = '3.4.0-nightly3.2602-33';
1611
+ var version = '3.4.0-nightly3.2603-05';
1610
1612
  var instanceName = "." + newId(6);
1611
1613
  var _dataUid = 0;
1612
1614
  function _canAcceptData(target) {
@@ -2666,7 +2668,7 @@
2666
2668
  if (onComplete && onComplete[_DYN_LENGTH ] > 0) {
2667
2669
  arrForEach(onComplete, function (completeDetails) {
2668
2670
  try {
2669
- completeDetails.func.call(completeDetails.self, completeDetails.args);
2671
+ completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
2670
2672
  }
2671
2673
  catch (e) {
2672
2674
  _throwInternal(core[_DYN_LOGGER ], 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
@@ -2988,7 +2990,7 @@
2988
2990
  _hooks = [];
2989
2991
  arrForEach(oldHooks, function (fn) {
2990
2992
  try {
2991
- (fn.rm || fn.remove).call(fn);
2993
+ (fn.rm || fn.remove)[_DYN_CALL ](fn);
2992
2994
  }
2993
2995
  catch (e) {
2994
2996
  _throwInternal(logger, 2 , 73 , "Unloading:" + dumpObj(e));