@microsoft/applicationinsights-react-js 3.2.4-nightly.2202-03 → 3.2.4-nightly.2202-05

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.4-nightly.2202-03
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.4-nightly.2202-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -466,11 +466,9 @@
466
466
  var DateProto = Date[strShimPrototype];
467
467
  var _dataToISOString = DateProto[strToISOString];
468
468
  var _isArray = Array.isArray;
469
+ var _objToString = ObjProto[strToString];
469
470
  var _fnToString = ObjHasOwnProperty[strToString];
470
471
  _fnToString.call(ObjClass);
471
- function objToString(obj) {
472
- return ObjProto[strToString].call(obj);
473
- }
474
472
  function isTypeof(value, theType) {
475
473
  return typeof value === theType;
476
474
  }
@@ -550,13 +548,14 @@
550
548
  return false;
551
549
  }
552
550
  function isDate(obj) {
553
- return !!(obj && objToString(obj) === "[object Date]");
551
+ return !!(obj && _objToString.call(obj) === "[object Date]");
554
552
  }
555
- function isArray(obj) {
556
- return _isArray ? _isArray(obj) : !!(obj && objToString(obj) === "[object Array]");
553
+ var isArray = _isArray || _isArrayPoly;
554
+ function _isArrayPoly(obj) {
555
+ return !!(obj && _objToString.call(obj) === "[object Array]");
557
556
  }
558
557
  function isError(obj) {
559
- return !!(obj && objToString(obj) === "[object Error]");
558
+ return !!(obj && _objToString.call(obj) === "[object Error]");
560
559
  }
561
560
  function isString(value) {
562
561
  return typeof value === "string";
@@ -693,7 +692,7 @@
693
692
  throwTypeError("objKeys called on non-object");
694
693
  }
695
694
  if (!_objKeysHasDontEnumBug && obj[strKeys]) {
696
- return obj[strKeys];
695
+ return obj[strKeys]();
697
696
  }
698
697
  var result = [];
699
698
  for (var prop in obj) {