@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.58.7",
4
+ "toolVersion": "7.58.9",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights react native plugin, 4.4.1
2
+ * Microsoft Application Insights react native plugin, 4.4.2-nightly.2606-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Native Plugin, 4.4.1
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 baseProto = _getObjProto(classProto);
1532
- var visited = [];
1533
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
1534
- _forEachProp(baseProto, function (name) {
1535
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
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
- var objProto = _getObjProto(target);
1555
- var visited = [];
1556
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
1557
- var protoFunc = objProto[funcName];
1558
- if (protoFunc) {
1559
- canAddInst = (protoFunc === currentDynProtoProxy);
1560
- break;
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 instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
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 instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1599
- if (!_isObjectOrArrayPrototype(instFuncTable)) {
1600
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
1601
- if (instFuncTable[DynAllowInstChkTag] !== false) {
1602
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
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.2";
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) {