@microsoft/applicationinsights-react-native 4.3.3-nightly.2409-10 → 4.3.3
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-native.js +34 -17
- package/browser/applicationinsights-react-native.js.map +1 -1
- package/browser/applicationinsights-react-native.min.js +2 -2
- package/browser/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.d.ts +1 -1
- package/dist/applicationinsights-react-native.js +34 -17
- package/dist/applicationinsights-react-native.js.map +1 -1
- package/dist/applicationinsights-react-native.min.js +2 -2
- package/dist/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.rollup.d.ts +1 -1
- package/dist-esm/DeviceInfo/DeviceModule.js +1 -1
- package/dist-esm/DeviceInfo/ReactNativeDeviceInfo.js +1 -1
- package/dist-esm/Interfaces/IDeviceInfoModule.js +1 -1
- package/dist-esm/Interfaces/INativeDevice.js +1 -1
- package/dist-esm/Interfaces/IReactNativePluginConfig.js +1 -1
- package/dist-esm/Interfaces/index.js +1 -1
- package/dist-esm/ReactNativeManualDevicePlugin.js +1 -1
- package/dist-esm/ReactNativePlugin.js +1 -1
- package/dist-esm/index.js +1 -1
- package/dist-esm/manualIndex.js +1 -1
- package/package.json +97 -100
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Native Plugin, 4.3.3
|
|
2
|
+
* Application Insights JavaScript SDK - React Native Plugin, 4.3.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
var strShimPrototype = "prototype";
|
|
19
19
|
var ObjClass$1 = Object;
|
|
20
20
|
|
|
21
|
-
/*! https://github.com/nevware21/ts-utils v0.11.
|
|
21
|
+
/*! https://github.com/nevware21/ts-utils v0.11.4 */
|
|
22
22
|
function _pureAssign(func1, func2) {
|
|
23
23
|
return func1 || func2;
|
|
24
24
|
}
|
|
@@ -75,6 +75,9 @@
|
|
|
75
75
|
function isUndefined(value) {
|
|
76
76
|
return typeof value === UNDEFINED || value === UNDEFINED;
|
|
77
77
|
}
|
|
78
|
+
function isStrictUndefined(arg) {
|
|
79
|
+
return !isDefined(arg);
|
|
80
|
+
}
|
|
78
81
|
function isNullOrUndefined(value) {
|
|
79
82
|
return value === NULL_VALUE || isUndefined(value);
|
|
80
83
|
}
|
|
@@ -139,7 +142,7 @@
|
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
objForEachKey(value, function (key, value) {
|
|
142
|
-
prop[propMap[key]] =
|
|
145
|
+
prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
|
|
143
146
|
});
|
|
144
147
|
return prop;
|
|
145
148
|
}
|
|
@@ -173,7 +176,7 @@
|
|
|
173
176
|
}
|
|
174
177
|
try {
|
|
175
178
|
propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
|
|
176
|
-
propertyValueDump = (propertyValueDump
|
|
179
|
+
propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
|
|
177
180
|
}
|
|
178
181
|
catch (e) {
|
|
179
182
|
propertyValueDump = " - " + dumpObj(e, format);
|
|
@@ -261,9 +264,9 @@
|
|
|
261
264
|
}
|
|
262
265
|
var _unwrapFunction = ( _unwrapFunctionWithPoly);
|
|
263
266
|
function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
|
|
264
|
-
var clsFn = clsProto
|
|
267
|
+
var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
|
|
265
268
|
return function (thisArg) {
|
|
266
|
-
var theFunc = (thisArg
|
|
269
|
+
var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
|
|
267
270
|
if (theFunc || polyFunc) {
|
|
268
271
|
var theArgs = arguments;
|
|
269
272
|
return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
|
|
@@ -345,22 +348,36 @@
|
|
|
345
348
|
var cachedValue;
|
|
346
349
|
return function () {
|
|
347
350
|
!_globalLazyTestHooks && _initTestHooks();
|
|
348
|
-
(!cachedValue || _globalLazyTestHooks.lzy)
|
|
351
|
+
if (!cachedValue || _globalLazyTestHooks.lzy) {
|
|
352
|
+
cachedValue = createCachedValue(safe(getFn, theArgs).v);
|
|
353
|
+
}
|
|
349
354
|
return cachedValue.v;
|
|
350
355
|
};
|
|
351
356
|
}
|
|
352
357
|
function getGlobal(useCached) {
|
|
353
358
|
!_globalLazyTestHooks && _initTestHooks();
|
|
354
|
-
(!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy)
|
|
359
|
+
if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
|
|
360
|
+
_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
|
|
361
|
+
}
|
|
355
362
|
return _cachedGlobal.v;
|
|
356
363
|
}
|
|
357
364
|
function getInst(name, useCached) {
|
|
358
|
-
var gbl
|
|
365
|
+
var gbl;
|
|
366
|
+
if (!_cachedGlobal || useCached === false) {
|
|
367
|
+
gbl = getGlobal(useCached);
|
|
368
|
+
}
|
|
369
|
+
else {
|
|
370
|
+
gbl = _cachedGlobal.v;
|
|
371
|
+
}
|
|
359
372
|
if (gbl && gbl[name]) {
|
|
360
373
|
return gbl[name];
|
|
361
374
|
}
|
|
362
375
|
if (name === WINDOW) {
|
|
363
|
-
|
|
376
|
+
try {
|
|
377
|
+
return window;
|
|
378
|
+
}
|
|
379
|
+
catch (e) {
|
|
380
|
+
}
|
|
364
381
|
}
|
|
365
382
|
return NULL_VALUE;
|
|
366
383
|
}
|
|
@@ -413,7 +430,7 @@
|
|
|
413
430
|
if (iter) {
|
|
414
431
|
if (!isIterator(iter)) {
|
|
415
432
|
!_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
|
|
416
|
-
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() :
|
|
433
|
+
iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
|
|
417
434
|
}
|
|
418
435
|
if (isIterator(iter)) {
|
|
419
436
|
var err = UNDEF_VALUE;
|
|
@@ -486,7 +503,7 @@
|
|
|
486
503
|
( _unwrapFunction("lastIndexOf", ArrProto));
|
|
487
504
|
var arrMap = ( _unwrapFunction("map", ArrProto));
|
|
488
505
|
function arrSlice(theArray, start, end) {
|
|
489
|
-
return ((theArray
|
|
506
|
+
return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
|
|
490
507
|
}
|
|
491
508
|
function polyArrIncludes(theArray, searchElement, fromIndex) {
|
|
492
509
|
return arrIndexOf(theArray, searchElement, fromIndex) !== -1;
|
|
@@ -707,7 +724,7 @@
|
|
|
707
724
|
if (objHasOwnProperty(proto, CONSTRUCTOR)) {
|
|
708
725
|
proto = proto[CONSTRUCTOR];
|
|
709
726
|
}
|
|
710
|
-
result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
|
|
727
|
+
result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
|
|
711
728
|
}
|
|
712
729
|
}
|
|
713
730
|
catch (ex) {
|
|
@@ -716,18 +733,18 @@
|
|
|
716
733
|
return result;
|
|
717
734
|
}
|
|
718
735
|
function polyStrSymSplit(value, splitter, limit) {
|
|
719
|
-
var splitFn = splitter
|
|
736
|
+
var splitFn = splitter ? splitter[getKnownSymbol(9 )] : UNDEF_VALUE;
|
|
720
737
|
return splitFn ? splitFn(value, limit) : [value];
|
|
721
738
|
}
|
|
722
739
|
( _unwrapFunction("split", StrProto));
|
|
723
|
-
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit :
|
|
740
|
+
( _unwrapFunctionWithPoly("split", StrProto, !hasSymbol() ? polyStrSymSplit : NULL_VALUE));
|
|
724
741
|
( _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
|
|
725
742
|
function polyStrEndsWith(value, searchString, length) {
|
|
726
743
|
if (!isString(value)) {
|
|
727
744
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
728
745
|
}
|
|
729
746
|
var searchValue = isString(searchString) ? searchString : asString(searchString);
|
|
730
|
-
var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
|
|
747
|
+
var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
|
|
731
748
|
return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
|
|
732
749
|
}
|
|
733
750
|
var strIndexOf = ( _unwrapFunction("indexOf", StrProto));
|
|
@@ -1350,7 +1367,7 @@
|
|
|
1350
1367
|
return result;
|
|
1351
1368
|
}
|
|
1352
1369
|
|
|
1353
|
-
var version = '3.3.
|
|
1370
|
+
var version = '3.3.3';
|
|
1354
1371
|
var instanceName = "." + newId(6);
|
|
1355
1372
|
var _dataUid = 0;
|
|
1356
1373
|
function _canAcceptData(target) {
|