@microsoft/applicationinsights-react-native 2.4.4-nightly.2202-01 → 2.5.0-nightly.2202-06

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