@microsoft/applicationinsights-react-js 3.2.5 → 3.2.6

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
2
+ * Application Insights JavaScript SDK - React Plugin, 3.2.6
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.5
121
+ * Microsoft Dynamic Proto Utility, 1.1.6
122
122
  * Copyright (c) Microsoft and contributors. All rights reserved.
123
123
  */
124
124
  var Constructor = 'constructor';
@@ -131,13 +131,15 @@
131
131
  var DynInstChkTag = '_dynInstChk';
132
132
  var DynAllowInstChkTag = DynInstChkTag;
133
133
  var DynProtoDefaultOptions = '_dfOpts';
134
- var DynProtoPolyProto = "_dynProto";
135
134
  var UnknownValue = '_unknown_';
136
135
  var str__Proto = "__proto__";
136
+ var DynProtoBaseProto = "_dyn" + str__Proto;
137
+ var DynProtoCurrent = "_dynInstProto";
137
138
  var strUseBaseInst = 'useBaseInst';
138
139
  var strSetInstFuncs = 'setInstFuncs';
139
140
  var Obj = Object;
140
141
  var _objGetPrototypeOf = Obj["getPrototypeOf"];
142
+ var _objGetOwnProps = Obj["getOwnPropertyNames"];
141
143
  var _dynamicNames = 0;
142
144
  function _hasOwnProperty(obj, prop) {
143
145
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
@@ -149,25 +151,25 @@
149
151
  return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
150
152
  }
151
153
  function _getObjProto(target) {
154
+ var newProto;
152
155
  if (target) {
153
156
  if (_objGetPrototypeOf) {
154
157
  return _objGetPrototypeOf(target);
155
158
  }
156
- var newProto = target[DynProtoPolyProto] || target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
157
- if (newProto) {
158
- if (!target[DynProtoPolyProto]) {
159
- target[DynProtoPolyProto] = newProto;
160
- }
161
- return newProto;
159
+ var curProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
160
+ newProto = target[DynProtoBaseProto] || curProto;
161
+ if (!_hasOwnProperty(target, DynProtoBaseProto)) {
162
+ delete target[DynProtoCurrent];
163
+ newProto = target[DynProtoBaseProto] = target[DynProtoCurrent] || target[DynProtoBaseProto];
164
+ target[DynProtoCurrent] = curProto;
162
165
  }
163
166
  }
164
- return null;
167
+ return newProto;
165
168
  }
166
169
  function _forEachProp(target, func) {
167
170
  var props = [];
168
- var getOwnProps = Obj["getOwnPropertyNames"];
169
- if (getOwnProps) {
170
- props = getOwnProps(target);
171
+ if (_objGetOwnProps) {
172
+ props = _objGetOwnProps(target);
171
173
  }
172
174
  else {
173
175
  for (var name_1 in target) {