@microsoft/applicationinsights-react-js 17.2.1-nightly.2406-06 → 17.2.1-nightly.2406-08
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.
- package/browser/applicationinsights-react-js.js +60 -53
- package/browser/applicationinsights-react-js.js.map +1 -1
- package/browser/applicationinsights-react-js.min.js +2 -2
- package/browser/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.d.ts +1 -1
- package/dist/applicationinsights-react-js.js +60 -53
- package/dist/applicationinsights-react-js.js.map +1 -1
- package/dist/applicationinsights-react-js.min.js +2 -2
- package/dist/applicationinsights-react-js.min.js.map +1 -1
- package/dist/applicationinsights-react-js.rollup.d.ts +1 -1
- package/dist-esm/AppInsightsContext.js +1 -1
- package/dist-esm/AppInsightsErrorBoundary.js +1 -1
- package/dist-esm/Interfaces/IReactExtensionConfig.js +1 -1
- package/dist-esm/ReactPlugin.js +1 -1
- package/dist-esm/applicationinsights-react-js.js +1 -1
- package/dist-esm/useTrackEvent.js +1 -1
- package/dist-esm/useTrackMetric.js +1 -1
- package/dist-esm/withAITracking.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Plugin, 17.2.1-nightly.2406-
|
|
2
|
+
* Application Insights JavaScript SDK - React Plugin, 17.2.1-nightly.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
var ObjClass$1 = Object;
|
|
39
39
|
var ObjProto$1 = ObjClass$1[strShimPrototype];
|
|
40
40
|
|
|
41
|
-
/*! https://github.com/nevware21/ts-utils v0.11.
|
|
41
|
+
/*! https://github.com/nevware21/ts-utils v0.11.3 */
|
|
42
42
|
function _pureAssign(func1, func2) {
|
|
43
43
|
return func1 || func2;
|
|
44
44
|
}
|
|
@@ -141,13 +141,64 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
var propMap = {
|
|
145
|
+
e: "enumerable",
|
|
146
|
+
c: "configurable",
|
|
147
|
+
v: "value",
|
|
148
|
+
w: "writable",
|
|
149
|
+
g: "get",
|
|
150
|
+
s: "set"
|
|
151
|
+
};
|
|
152
|
+
function _createProp(value) {
|
|
153
|
+
var prop = {};
|
|
154
|
+
prop[propMap["c"]] = true;
|
|
155
|
+
prop[propMap["e"]] = true;
|
|
156
|
+
if (value.l) {
|
|
157
|
+
prop.get = function () { return value.l.v; };
|
|
158
|
+
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
159
|
+
if (desc && desc.set) {
|
|
160
|
+
prop.set = function (newValue) {
|
|
161
|
+
value.l.v = newValue;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
objForEachKey(value, function (key, value) {
|
|
166
|
+
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
167
|
+
});
|
|
168
|
+
return prop;
|
|
169
|
+
}
|
|
170
|
+
var objDefineProp = ( _pureRef(ObjClass, "defineProperty"));
|
|
171
|
+
( _pureRef(ObjClass, "defineProperties"));
|
|
172
|
+
function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
|
|
173
|
+
var desc = {
|
|
174
|
+
e: enumerable,
|
|
175
|
+
c: configurable
|
|
176
|
+
};
|
|
177
|
+
if (getProp) {
|
|
178
|
+
desc.g = getProp;
|
|
179
|
+
}
|
|
180
|
+
if (setProp) {
|
|
181
|
+
desc.s = setProp;
|
|
182
|
+
}
|
|
183
|
+
return objDefineProp(target, prop, _createProp(desc));
|
|
184
|
+
}
|
|
185
|
+
function objDefine(target, key, propDesc) {
|
|
186
|
+
return objDefineProp(target, key, _createProp(propDesc));
|
|
187
|
+
}
|
|
188
|
+
function _createKeyValueMap(values, keyType, valueType, completeFn, writable) {
|
|
145
189
|
var theMap = {};
|
|
146
190
|
objForEachKey(values, function (key, value) {
|
|
147
|
-
theMap
|
|
148
|
-
theMap
|
|
191
|
+
_assignMapValue(theMap, key, keyType ? value : key, writable);
|
|
192
|
+
_assignMapValue(theMap, value, valueType ? value : key, writable);
|
|
193
|
+
});
|
|
194
|
+
return completeFn ? completeFn(theMap) : theMap;
|
|
195
|
+
}
|
|
196
|
+
function _assignMapValue(theMap, key, value, writable) {
|
|
197
|
+
objDefineProp(theMap, key, {
|
|
198
|
+
value: value,
|
|
199
|
+
enumerable: true,
|
|
200
|
+
writable: !!writable
|
|
149
201
|
});
|
|
150
|
-
return completeFn(theMap);
|
|
151
202
|
}
|
|
152
203
|
var asString = ( _pureAssign(StrCls));
|
|
153
204
|
var ERROR_TYPE = "[object Error]";
|
|
@@ -192,7 +243,7 @@
|
|
|
192
243
|
if (_objFreeze) {
|
|
193
244
|
objForEachKey(value, function (key, value) {
|
|
194
245
|
if (isArray(value) || isObject(value)) {
|
|
195
|
-
|
|
246
|
+
objDeepFreeze(value);
|
|
196
247
|
}
|
|
197
248
|
});
|
|
198
249
|
}
|
|
@@ -203,10 +254,10 @@
|
|
|
203
254
|
var objGetPrototypeOf = ( _pureAssign(( _pureRef(ObjClass, "getPrototypeOf")), _getProto));
|
|
204
255
|
( _pureAssign(( _pureRef(ObjClass, "entries")), polyObjEntries));
|
|
205
256
|
function createEnum(values) {
|
|
206
|
-
return _createKeyValueMap(values, 1 , 0 ,
|
|
257
|
+
return _createKeyValueMap(values, 1 , 0 , objFreeze);
|
|
207
258
|
}
|
|
208
259
|
function createEnumKeyMap(values) {
|
|
209
|
-
return _createKeyValueMap(values, 0 , 0 ,
|
|
260
|
+
return _createKeyValueMap(values, 0 , 0 , objFreeze);
|
|
210
261
|
}
|
|
211
262
|
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
212
263
|
asyncIterator: 0 ,
|
|
@@ -322,50 +373,6 @@
|
|
|
322
373
|
}
|
|
323
374
|
return result;
|
|
324
375
|
}
|
|
325
|
-
var propMap = {
|
|
326
|
-
e: "enumerable",
|
|
327
|
-
c: "configurable",
|
|
328
|
-
v: "value",
|
|
329
|
-
w: "writable",
|
|
330
|
-
g: "get",
|
|
331
|
-
s: "set"
|
|
332
|
-
};
|
|
333
|
-
function _createProp(value) {
|
|
334
|
-
var prop = {};
|
|
335
|
-
prop[propMap["c"]] = true;
|
|
336
|
-
prop[propMap["e"]] = true;
|
|
337
|
-
if (value.l) {
|
|
338
|
-
prop.get = function () { return value.l.v; };
|
|
339
|
-
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
340
|
-
if (desc && desc.set) {
|
|
341
|
-
prop.set = function (newValue) {
|
|
342
|
-
value.l.v = newValue;
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
objForEachKey(value, function (key, value) {
|
|
347
|
-
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
348
|
-
});
|
|
349
|
-
return prop;
|
|
350
|
-
}
|
|
351
|
-
var objDefineProp = ( _pureRef(ObjClass, "defineProperty"));
|
|
352
|
-
( _pureRef(ObjClass, "defineProperties"));
|
|
353
|
-
function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
|
|
354
|
-
var desc = {
|
|
355
|
-
e: enumerable,
|
|
356
|
-
c: configurable
|
|
357
|
-
};
|
|
358
|
-
if (getProp) {
|
|
359
|
-
desc.g = getProp;
|
|
360
|
-
}
|
|
361
|
-
if (setProp) {
|
|
362
|
-
desc.s = setProp;
|
|
363
|
-
}
|
|
364
|
-
return objDefineProp(target, prop, _createProp(desc));
|
|
365
|
-
}
|
|
366
|
-
function objDefine(target, key, propDesc) {
|
|
367
|
-
return objDefineProp(target, key, _createProp(propDesc));
|
|
368
|
-
}
|
|
369
376
|
var _globalLazyTestHooks;
|
|
370
377
|
function _initTestHooks() {
|
|
371
378
|
_globalLazyTestHooks = _getGlobalConfig();
|