@microsoft/applicationinsights-react-native 4.4.1-nightly.2606-01 → 4.4.1

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.9",
4
+ "toolVersion": "7.58.7",
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-nightly.2606-01
2
+ * Microsoft Application Insights react native plugin, 4.4.1
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-nightly.2606-01
2
+ * Application Insights JavaScript SDK - React Native Plugin, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1426,11 +1426,9 @@
1426
1426
  var DynInstFuncTable = '_dynInstFuncs';
1427
1427
  var DynProxyTag = '_isDynProxy';
1428
1428
  var DynClassName = '_dynClass';
1429
- var DynBaseProtoFuncs = '_dynBaseFuncs';
1430
1429
  var DynClassNamePrefix = '_dynCls$';
1431
1430
  var DynInstChkTag = '_dynInstChk';
1432
1431
  var DynAllowInstChkTag = DynInstChkTag;
1433
- var DynResolvedCachePrefix = '_dyn_r$';
1434
1432
  var DynProtoDefaultOptions = '_dfOpts';
1435
1433
  var UnknownValue = '_unknown_';
1436
1434
  var str__Proto = "__proto__";
@@ -1513,25 +1511,6 @@
1513
1511
  }
1514
1512
  return false;
1515
1513
  }
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
- }
1535
1514
  function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
1536
1515
  function _instFuncProxy(target, funcHost, funcName) {
1537
1516
  var theFunc = funcHost[funcName];
@@ -1549,11 +1528,16 @@
1549
1528
  _forEachProp(instFuncs, function (name) {
1550
1529
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
1551
1530
  });
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
- }
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);
1557
1541
  }
1558
1542
  return baseFuncs;
1559
1543
  }
@@ -1567,18 +1551,16 @@
1567
1551
  }
1568
1552
  if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
1569
1553
  var canAddInst = !objHasOwnProperty(target, funcName);
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);
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;
1581
1561
  }
1562
+ visited.push(objProto);
1563
+ objProto = _getObjProto(objProto);
1582
1564
  }
1583
1565
  try {
1584
1566
  if (canAddInst) {
@@ -1605,34 +1587,25 @@
1605
1587
  }
1606
1588
  function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
1607
1589
  function _createDynamicPrototype(proto, funcName) {
1608
- var cacheKey = DynResolvedCachePrefix + className + "." + funcName;
1609
1590
  var dynProtoProxy = function () {
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
- }
1591
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
1618
1592
  return instFunc.apply(this, arguments);
1619
1593
  };
1620
1594
  dynProtoProxy[DynProxyTag] = 1;
1621
1595
  return dynProtoProxy;
1622
1596
  }
1623
1597
  if (!_isObjectOrArrayPrototype(proto)) {
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;
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;
1629
1603
  }
1630
1604
  if (!_isObjectOrArrayPrototype(instFuncs_1)) {
1631
1605
  _forEachProp(target, function (name) {
1632
1606
  if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1633
1607
  instFuncs_1[name] = target[name];
1634
1608
  delete target[name];
1635
- delete instFuncTable_1[DynResolvedCachePrefix + className + "." + name];
1636
1609
  if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1637
1610
  proto[name] = _createDynamicPrototype(proto, name);
1638
1611
  }
@@ -1937,7 +1910,7 @@
1937
1910
  return result;
1938
1911
  }
1939
1912
 
1940
- var version = "3.4.3-nightly3.2606-03";
1913
+ var version = "3.4.2";
1941
1914
  var instanceName = "." + newId(6);
1942
1915
  var _dataUid = 0;
1943
1916
  function _canAcceptData(target) {