@microsoft/applicationinsights-react-native 2.4.3 → 2.4.4-nightly.2202-03

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, 2.4.3
2
+ * Application Insights JavaScript SDK - React Native Plugin, 2.4.4-nightly.2202-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -416,9 +416,13 @@
416
416
  InMemoryStorageBufferFull: 105
417
417
  };
418
418
 
419
+ var strToString = "toString";
419
420
  var _objDefineProperty = ObjDefineProperty;
421
+ var _isArray = Array.isArray;
422
+ var _fnToString = ObjHasOwnProperty[strToString];
423
+ _fnToString.call(ObjClass);
420
424
  function objToString(obj) {
421
- return ObjProto.toString.call(obj);
425
+ return ObjProto[strToString].call(obj);
422
426
  }
423
427
  function isUndefined(value) {
424
428
  return value === undefined || typeof value === strShimUndefined;
@@ -427,19 +431,19 @@
427
431
  return (value === null || isUndefined(value));
428
432
  }
429
433
  function hasOwnProperty(obj, prop) {
430
- return obj && ObjHasOwnProperty.call(obj, prop);
434
+ return !!(obj && ObjHasOwnProperty.call(obj, prop));
431
435
  }
432
436
  function isObject(value) {
433
- return typeof value === strShimObject;
437
+ return !!(value && typeof value === strShimObject);
434
438
  }
435
439
  function isFunction(value) {
436
- return typeof value === strShimFunction;
440
+ return !!(value && typeof value === strShimFunction);
437
441
  }
438
442
  function isArray(obj) {
439
- return objToString(obj) === "[object Array]";
443
+ return _isArray ? _isArray(obj) : !!(obj && objToString(obj) === "[object Array]");
440
444
  }
441
445
  function isError(obj) {
442
- return objToString(obj) === "[object Error]";
446
+ return !!(obj && objToString(obj) === "[object Error]");
443
447
  }
444
448
  function arrForEach(arr, callbackfn, thisArg) {
445
449
  var len = arr.length;
@@ -478,10 +482,7 @@
478
482
  }
479
483
  function dateNow() {
480
484
  var dt = Date;
481
- if (dt.now) {
482
- return dt.now();
483
- }
484
- return new dt().getTime();
485
+ return dt.now ? dt.now() : new dt().getTime();
485
486
  }
486
487
  function getExceptionName(object) {
487
488
  if (isError(object)) {