@microsoft/applicationinsights-react-js 17.3.3-nightly.2409-09 → 17.3.4-nightly.2409-11
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 +34 -17
- 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 +34 -17
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Plugin, 17.3.
|
|
2
|
+
* Application Insights JavaScript SDK - React Plugin, 17.3.4-nightly.2409-11
|
|
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.4 */
|
|
42
42
|
function _pureAssign(func1, func2) {
|
|
43
43
|
return func1 || func2;
|
|
44
44
|
}
|
|
@@ -99,6 +99,9 @@
|
|
|
99
99
|
function isUndefined(value) {
|
|
100
100
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
101
101
|
}
|
|
102
|
+
function isStrictUndefined(arg) {
|
|
103
|
+
return !isDefined(arg);
|
|
104
|
+
}
|
|
102
105
|
function isNullOrUndefined(value) {
|
|
103
106
|
return value === NULL_VALUE || isUndefined(value);
|
|
104
107
|
}
|
|
@@ -163,7 +166,7 @@
|
|
|
163
166
|
}
|
|
164
167
|
}
|
|
165
168
|
objForEachKey(value, function (key, value) {
|
|
166
|
-
prop[propMap[key]] =
|
|
169
|
+
prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
|
|
167
170
|
});
|
|
168
171
|
return prop;
|
|
169
172
|
}
|
|
@@ -210,7 +213,7 @@
|
|
|
210
213
|
}
|
|
211
214
|
try {
|
|
212
215
|
propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
|
|
213
|
-
propertyValueDump = (propertyValueDump
|
|
216
|
+
propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
|
|
214
217
|
}
|
|
215
218
|
catch (e) {
|
|
216
219
|
propertyValueDump = " - " + dumpObj(e, format);
|
|
@@ -301,9 +304,9 @@
|
|
|
301
304
|
}
|
|
302
305
|
var _unwrapFunction = ( _unwrapFunctionWithPoly);
|
|
303
306
|
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
304
|
-
var clsFn = clsProto
|
|
307
|
+
var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
|
|
305
308
|
return function (thisArg) {
|
|
306
|
-
var theFunc = (thisArg
|
|
309
|
+
var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
|
|
307
310
|
if (theFunc || polyFunc) {
|
|
308
311
|
var theArgs = arguments;
|
|
309
312
|
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
|
|
@@ -407,22 +410,36 @@
|
|
|
407
410
|
var cachedValue;
|
|
408
411
|
return function () {
|
|
409
412
|
!_globalLazyTestHooks && _initTestHooks();
|
|
410
|
-
(!cachedValue || _globalLazyTestHooks.lzy)
|
|
413
|
+
if (!cachedValue || _globalLazyTestHooks.lzy) {
|
|
414
|
+
cachedValue = createCachedValue(safe(getFn, theArgs).v);
|
|
415
|
+
}
|
|
411
416
|
return cachedValue.v;
|
|
412
417
|
};
|
|
413
418
|
}
|
|
414
419
|
function getGlobal(useCached) {
|
|
415
420
|
!_globalLazyTestHooks && _initTestHooks();
|
|
416
|
-
(!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy)
|
|
421
|
+
if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
|
|
422
|
+
_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
|
|
423
|
+
}
|
|
417
424
|
return _cachedGlobal.v;
|
|
418
425
|
}
|
|
419
426
|
function getInst(name, useCached) {
|
|
420
|
-
var gbl
|
|
427
|
+
var gbl;
|
|
428
|
+
if (!_cachedGlobal || useCached === false) {
|
|
429
|
+
gbl = getGlobal(useCached);
|
|
430
|
+
}
|
|
431
|
+
else {
|
|
432
|
+
gbl = _cachedGlobal.v;
|
|
433
|
+
}
|
|
421
434
|
if (gbl && gbl[name]) {
|
|
422
435
|
return gbl[name];
|
|
423
436
|
}
|
|
424
437
|
if (name === WINDOW) {
|
|
425
|
-
|
|
438
|
+
try {
|
|
439
|
+
return window;
|
|
440
|
+
}
|
|
441
|
+
catch (e) {
|
|
442
|
+
}
|
|
426
443
|
}
|
|
427
444
|
return NULL_VALUE;
|
|
428
445
|
}
|
|
@@ -476,7 +493,7 @@
|
|
|
476
493
|
if (iter) {
|
|
477
494
|
if (!isIterator(iter)) {
|
|
478
495
|
!_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
|
|
479
|
-
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() :
|
|
496
|
+
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
|
|
480
497
|
}
|
|
481
498
|
if (isIterator(iter)) {
|
|
482
499
|
var err = UNDEF_VALUE;
|
|
@@ -549,7 +566,7 @@
|
|
|
549
566
|
( _unwrapFunction("lastIndexOf", ArrProto));
|
|
550
567
|
var arrMap = ( _unwrapFunction("map", ArrProto));
|
|
551
568
|
function arrSlice(theArray, start, end) {
|
|
552
|
-
return ((theArray
|
|
569
|
+
return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
|
|
553
570
|
}
|
|
554
571
|
function polyArrIncludes(theArray, searchElement, fromIndex) {
|
|
555
572
|
return arrIndexOf(theArray, searchElement, fromIndex) !== -1;
|
|
@@ -770,7 +787,7 @@
|
|
|
770
787
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
771
788
|
proto = proto[CONSTRUCTOR];
|
|
772
789
|
}
|
|
773
|
-
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
790
|
+
result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
|
|
774
791
|
}
|
|
775
792
|
}
|
|
776
793
|
catch (ex) {
|
|
@@ -779,18 +796,18 @@
|
|
|
779
796
|
return result;
|
|
780
797
|
}
|
|
781
798
|
function polyStrSymSplit(value, splitter, limit) {
|
|
782
|
-
var splitFn = splitter
|
|
799
|
+
var splitFn = splitter ? splitter[getKnownSymbol(9 )] : UNDEF_VALUE;
|
|
783
800
|
return splitFn ? splitFn(value, limit) : [value];
|
|
784
801
|
}
|
|
785
802
|
( _unwrapFunction("split", StrProto));
|
|
786
|
-
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit :
|
|
803
|
+
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit : NULL_VALUE));
|
|
787
804
|
var strEndsWith = ( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
788
805
|
function polyStrEndsWith(value, searchString, length) {
|
|
789
806
|
if (!isString(value)) {
|
|
790
807
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
791
808
|
}
|
|
792
809
|
var searchValue = isString(searchString) ? searchString : asString(searchString);
|
|
793
|
-
var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
|
|
810
|
+
var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
|
|
794
811
|
return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
|
|
795
812
|
}
|
|
796
813
|
var strIndexOf = ( _unwrapFunction("indexOf", StrProto));
|
|
@@ -1463,7 +1480,7 @@
|
|
|
1463
1480
|
return result;
|
|
1464
1481
|
}
|
|
1465
1482
|
|
|
1466
|
-
var version = '3.3.
|
|
1483
|
+
var version = '3.3.3';
|
|
1467
1484
|
var instanceName = "." + newId(6);
|
|
1468
1485
|
var _dataUid = 0;
|
|
1469
1486
|
function _canAcceptData(target) {
|