@microsoft/applicationinsights-react-native 4.4.1 → 4.4.2-nightly.2606-03
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 +54 -27
- 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.api.json +1 -1
- package/dist/applicationinsights-react-native.d.ts +1 -1
- package/dist/applicationinsights-react-native.js +54 -27
- 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 +107 -104
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Native Plugin, 4.4.
|
|
2
|
+
* Application Insights JavaScript SDK - React Native Plugin, 4.4.2-nightly.2606-03
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -1426,9 +1426,11 @@
|
|
|
1426
1426
|
var DynInstFuncTable = '_dynInstFuncs';
|
|
1427
1427
|
var DynProxyTag = '_isDynProxy';
|
|
1428
1428
|
var DynClassName = '_dynClass';
|
|
1429
|
+
var DynBaseProtoFuncs = '_dynBaseFuncs';
|
|
1429
1430
|
var DynClassNamePrefix = '_dynCls$';
|
|
1430
1431
|
var DynInstChkTag = '_dynInstChk';
|
|
1431
1432
|
var DynAllowInstChkTag = DynInstChkTag;
|
|
1433
|
+
var DynResolvedCachePrefix = '_dyn_r$';
|
|
1432
1434
|
var DynProtoDefaultOptions = '_dfOpts';
|
|
1433
1435
|
var UnknownValue = '_unknown_';
|
|
1434
1436
|
var str__Proto = "__proto__";
|
|
@@ -1511,6 +1513,25 @@
|
|
|
1511
1513
|
}
|
|
1512
1514
|
return false;
|
|
1513
1515
|
}
|
|
1516
|
+
function _getBaseProtoFuncs(classProto) {
|
|
1517
|
+
if (objHasOwnProperty(classProto, DynBaseProtoFuncs)) {
|
|
1518
|
+
return classProto[DynBaseProtoFuncs];
|
|
1519
|
+
}
|
|
1520
|
+
var baseFuncSources = objCreate(null);
|
|
1521
|
+
var baseProto = _getObjProto(classProto);
|
|
1522
|
+
var visited = [];
|
|
1523
|
+
while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
|
|
1524
|
+
_forEachProp(baseProto, function (name) {
|
|
1525
|
+
if (!baseFuncSources[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
|
|
1526
|
+
baseFuncSources[name] = baseProto;
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
visited.push(baseProto);
|
|
1530
|
+
baseProto = _getObjProto(baseProto);
|
|
1531
|
+
}
|
|
1532
|
+
classProto[DynBaseProtoFuncs] = baseFuncSources;
|
|
1533
|
+
return baseFuncSources;
|
|
1534
|
+
}
|
|
1514
1535
|
function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
|
|
1515
1536
|
function _instFuncProxy(target, funcHost, funcName) {
|
|
1516
1537
|
var theFunc = funcHost[funcName];
|
|
@@ -1528,16 +1549,11 @@
|
|
|
1528
1549
|
_forEachProp(instFuncs, function (name) {
|
|
1529
1550
|
baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
|
|
1530
1551
|
});
|
|
1531
|
-
var
|
|
1532
|
-
var
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1539
|
-
visited.push(baseProto);
|
|
1540
|
-
baseProto = _getObjProto(baseProto);
|
|
1552
|
+
var baseFuncSources = _getBaseProtoFuncs(classProto);
|
|
1553
|
+
for (var name_2 in baseFuncSources) {
|
|
1554
|
+
if (!baseFuncs[name_2]) {
|
|
1555
|
+
baseFuncs[name_2] = _instFuncProxy(thisTarget, baseFuncSources[name_2], name_2);
|
|
1556
|
+
}
|
|
1541
1557
|
}
|
|
1542
1558
|
return baseFuncs;
|
|
1543
1559
|
}
|
|
@@ -1551,16 +1567,18 @@
|
|
|
1551
1567
|
}
|
|
1552
1568
|
if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
|
|
1553
1569
|
var canAddInst = !objHasOwnProperty(target, funcName);
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1570
|
+
if (canAddInst) {
|
|
1571
|
+
var objProto = _getObjProto(target);
|
|
1572
|
+
var visited = [];
|
|
1573
|
+
while (objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
|
|
1574
|
+
var protoFunc = objProto[funcName];
|
|
1575
|
+
if (protoFunc) {
|
|
1576
|
+
canAddInst = (protoFunc === currentDynProtoProxy);
|
|
1577
|
+
break;
|
|
1578
|
+
}
|
|
1579
|
+
visited.push(objProto);
|
|
1580
|
+
objProto = _getObjProto(objProto);
|
|
1561
1581
|
}
|
|
1562
|
-
visited.push(objProto);
|
|
1563
|
-
objProto = _getObjProto(objProto);
|
|
1564
1582
|
}
|
|
1565
1583
|
try {
|
|
1566
1584
|
if (canAddInst) {
|
|
@@ -1587,25 +1605,34 @@
|
|
|
1587
1605
|
}
|
|
1588
1606
|
function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
|
|
1589
1607
|
function _createDynamicPrototype(proto, funcName) {
|
|
1608
|
+
var cacheKey = DynResolvedCachePrefix + className + "." + funcName;
|
|
1590
1609
|
var dynProtoProxy = function () {
|
|
1591
|
-
var
|
|
1610
|
+
var instFuncTable = this[DynInstFuncTable];
|
|
1611
|
+
var instFunc = instFuncTable ? instFuncTable[cacheKey] : undefined;
|
|
1612
|
+
if (!instFunc) {
|
|
1613
|
+
instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
|
|
1614
|
+
if (instFuncTable) {
|
|
1615
|
+
instFuncTable[cacheKey] = instFunc;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1592
1618
|
return instFunc.apply(this, arguments);
|
|
1593
1619
|
};
|
|
1594
1620
|
dynProtoProxy[DynProxyTag] = 1;
|
|
1595
1621
|
return dynProtoProxy;
|
|
1596
1622
|
}
|
|
1597
1623
|
if (!_isObjectOrArrayPrototype(proto)) {
|
|
1598
|
-
var
|
|
1599
|
-
if (!_isObjectOrArrayPrototype(
|
|
1600
|
-
var instFuncs_1 =
|
|
1601
|
-
if (
|
|
1602
|
-
|
|
1624
|
+
var instFuncTable_1 = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
|
|
1625
|
+
if (!_isObjectOrArrayPrototype(instFuncTable_1)) {
|
|
1626
|
+
var instFuncs_1 = instFuncTable_1[className] = (instFuncTable_1[className] || objCreate(null));
|
|
1627
|
+
if (instFuncTable_1[DynAllowInstChkTag] !== false) {
|
|
1628
|
+
instFuncTable_1[DynAllowInstChkTag] = !!setInstanceFunc;
|
|
1603
1629
|
}
|
|
1604
1630
|
if (!_isObjectOrArrayPrototype(instFuncs_1)) {
|
|
1605
1631
|
_forEachProp(target, function (name) {
|
|
1606
1632
|
if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
|
|
1607
1633
|
instFuncs_1[name] = target[name];
|
|
1608
1634
|
delete target[name];
|
|
1635
|
+
delete instFuncTable_1[DynResolvedCachePrefix + className + "." + name];
|
|
1609
1636
|
if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
|
|
1610
1637
|
proto[name] = _createDynamicPrototype(proto, name);
|
|
1611
1638
|
}
|
|
@@ -1910,7 +1937,7 @@
|
|
|
1910
1937
|
return result;
|
|
1911
1938
|
}
|
|
1912
1939
|
|
|
1913
|
-
var version = "3.4.
|
|
1940
|
+
var version = "3.4.3-nightly3.2606-03";
|
|
1914
1941
|
var instanceName = "." + newId(6);
|
|
1915
1942
|
var _dataUid = 0;
|
|
1916
1943
|
function _canAcceptData(target) {
|