@microsoft/applicationinsights-react-js 3.2.5-nightly.2203-02 → 3.2.5-nightly.2204-23

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.5-nightly.2203-02
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.5-nightly.2204-23
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -118,7 +118,7 @@
118
118
  }
119
119
 
120
120
  /*!
121
- * Microsoft Dynamic Proto Utility, 1.1.4
121
+ * Microsoft Dynamic Proto Utility, 1.1.5
122
122
  * Copyright (c) Microsoft and contributors. All rights reserved.
123
123
  */
124
124
  var Constructor = 'constructor';
@@ -131,6 +131,7 @@
131
131
  var DynInstChkTag = '_dynInstChk';
132
132
  var DynAllowInstChkTag = DynInstChkTag;
133
133
  var DynProtoDefaultOptions = '_dfOpts';
134
+ var DynProtoPolyProto = "_dynProto";
134
135
  var UnknownValue = '_unknown_';
135
136
  var str__Proto = "__proto__";
136
137
  var strUseBaseInst = 'useBaseInst';
@@ -152,8 +153,11 @@
152
153
  if (_objGetPrototypeOf) {
153
154
  return _objGetPrototypeOf(target);
154
155
  }
155
- var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
156
+ var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
156
157
  if (newProto) {
158
+ if (!target[DynProtoPolyProto]) {
159
+ target[DynProtoPolyProto] = newProto;
160
+ }
157
161
  return newProto;
158
162
  }
159
163
  }
@@ -312,8 +316,9 @@
312
316
  visited.push(thisProto);
313
317
  thisProto = _getObjProto(thisProto);
314
318
  }
319
+ return false;
315
320
  }
316
- return false;
321
+ return true;
317
322
  }
318
323
  function _getObjName(target, unknownValue) {
319
324
  if (_hasOwnProperty(target, Prototype)) {
@@ -943,7 +948,7 @@
943
948
  if (isUserAct === void 0) { isUserAct = false; }
944
949
  var message = new _InternalLogMessage(msgId, msg, isUserAct, properties);
945
950
  if (_self.enableDebugExceptions()) {
946
- throw message;
951
+ throw dumpObj(message);
947
952
  }
948
953
  else {
949
954
  var logFunc = severity === LoggingSeverity.CRITICAL ? strErrorToConsole : strWarnToConsole;
@@ -2076,7 +2081,7 @@
2076
2081
  trackedData.idleCount * trackedData.idleTimeout) /
2077
2082
  1000);
2078
2083
  }
2079
- var useComponentTracking = function (reactPlugin, componentName, customProperties) {
2084
+ var useComponentTracking = function (reactPlugin, componentName) {
2080
2085
  var tracking = React.useRef({
2081
2086
  hookTimestamp: dateNow(),
2082
2087
  firstActiveTimestamp: 0,
@@ -2115,7 +2120,7 @@
2115
2120
  name: "React Component Engaged Time (seconds)",
2116
2121
  sampleCount: 1
2117
2122
  };
2118
- var additionalProperties = __assignFn({ "Component Name": componentName }, customProperties);
2123
+ var additionalProperties = { "Component Name": componentName };
2119
2124
  reactPlugin.trackMetric(metricData, additionalProperties);
2120
2125
  };
2121
2126
  }, []);