@microsoft/applicationinsights-react-native 3.0.1-nightly.2212-02 → 3.0.1-nightly.2301-01

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,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Native Plugin, 3.0.1-nightly.2212-02
2
+ * Application Insights JavaScript SDK - React Native Plugin, 3.0.1-nightly.2301-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -26,21 +26,23 @@
26
26
  var _cachedGlobal = null;
27
27
  function getGlobal(useCached) {
28
28
  if (useCached === void 0) { useCached = true; }
29
- if (!_cachedGlobal || !useCached) {
30
- if (typeof globalThis !== strShimUndefined && globalThis) {
31
- _cachedGlobal = globalThis;
29
+ var result = useCached === false ? null : _cachedGlobal;
30
+ if (!result) {
31
+ if (typeof globalThis !== strShimUndefined) {
32
+ result = globalThis;
32
33
  }
33
- if (typeof self !== strShimUndefined && self) {
34
- _cachedGlobal = self;
34
+ if (!result && typeof self !== strShimUndefined) {
35
+ result = self;
35
36
  }
36
- if (typeof window !== strShimUndefined && window) {
37
- _cachedGlobal = window;
37
+ if (!result && typeof window !== strShimUndefined) {
38
+ result = window;
38
39
  }
39
- if (typeof global !== strShimUndefined && global) {
40
- _cachedGlobal = global;
40
+ if (!result && typeof global !== strShimUndefined) {
41
+ result = global;
41
42
  }
43
+ _cachedGlobal = result;
42
44
  }
43
- return _cachedGlobal;
45
+ return result;
44
46
  }
45
47
  function throwTypeError(message) {
46
48
  throw new TypeError(message);
@@ -66,7 +68,9 @@
66
68
  (getGlobal() || {})["Reflect"];
67
69
  var extendStaticsFn = function (d, b) {
68
70
  extendStaticsFn = ObjClass["setPrototypeOf"] ||
69
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
71
+ ({ __proto__: [] } instanceof Array && function (d, b) {
72
+ d.__proto__ = b;
73
+ }) ||
70
74
  function (d, b) {
71
75
  for (var p in b) {
72
76
  if (b[strShimHasOwnProperty](p)) {
@@ -81,14 +85,18 @@
81
85
  throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
82
86
  }
83
87
  extendStaticsFn(d, b);
84
- function __() { this.constructor = d; }
88
+ function __() {
89
+ this.constructor = d;
90
+ }
85
91
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
86
92
  }
87
93
 
88
94
  /*!
89
- * Microsoft Dynamic Proto Utility, 1.1.6
95
+ * Microsoft Dynamic Proto Utility, 1.1.7
90
96
  * Copyright (c) Microsoft and contributors. All rights reserved.
91
97
  */
98
+ var _a;
99
+ var UNDEFINED = "undefined";
92
100
  var Constructor = 'constructor';
93
101
  var Prototype = 'prototype';
94
102
  var strFunction = 'function';
@@ -102,13 +110,37 @@
102
110
  var UnknownValue = '_unknown_';
103
111
  var str__Proto$1 = "__proto__";
104
112
  var DynProtoBaseProto = "_dyn" + str__Proto$1;
113
+ var DynProtoGlobalSettings = "__dynProto$Gbl";
105
114
  var DynProtoCurrent = "_dynInstProto";
106
115
  var strUseBaseInst = 'useBaseInst';
107
116
  var strSetInstFuncs = 'setInstFuncs';
108
117
  var Obj = Object;
109
118
  var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
110
119
  var _objGetOwnProps = Obj["getOwnPropertyNames"];
111
- var _dynamicNames = 0;
120
+ function _getGlobal() {
121
+ var result;
122
+ if (typeof globalThis !== UNDEFINED) {
123
+ result = globalThis;
124
+ }
125
+ if (!result && typeof self !== UNDEFINED) {
126
+ result = self;
127
+ }
128
+ if (!result && typeof window !== UNDEFINED) {
129
+ result = window;
130
+ }
131
+ if (!result && typeof global !== UNDEFINED) {
132
+ result = global;
133
+ }
134
+ return result || {};
135
+ }
136
+ var _gbl = _getGlobal();
137
+ var _gblInst = _gbl[DynProtoGlobalSettings] || (_gbl[DynProtoGlobalSettings] = {
138
+ o: (_a = {},
139
+ _a[strSetInstFuncs] = true,
140
+ _a[strUseBaseInst] = true,
141
+ _a),
142
+ n: 1000
143
+ });
112
144
  function _hasOwnProperty(obj, prop) {
113
145
  return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
114
146
  }
@@ -302,15 +334,15 @@
302
334
  }
303
335
  var classProto = theClass[Prototype];
304
336
  if (!_checkPrototype(classProto, target)) {
305
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
337
+ _throwTypeError("[" + _getObjName(theClass) + "] not in hierarchy of [" + _getObjName(target) + "]");
306
338
  }
307
339
  var className = null;
308
340
  if (_hasOwnProperty(classProto, DynClassName)) {
309
341
  className = classProto[DynClassName];
310
342
  }
311
343
  else {
312
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
313
- _dynamicNames++;
344
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _gblInst.n;
345
+ _gblInst.n++;
314
346
  classProto[DynClassName] = className;
315
347
  }
316
348
  var perfOptions = dynamicProto[DynProtoDefaultOptions];
@@ -327,11 +359,7 @@
327
359
  }
328
360
  _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
329
361
  }
330
- var perfDefaults = {
331
- setInstFuncs: true,
332
- useBaseInst: true
333
- };
334
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
362
+ dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
335
363
 
336
364
  var _DYN_INITIALIZE = "initialize";
337
365
  var _DYN_NAME = "name";
@@ -1042,7 +1070,7 @@
1042
1070
  }
1043
1071
 
1044
1072
  var _objDefineProperty = ObjDefineProperty;
1045
- var version = '2.8.6';
1073
+ var version = '2.8.9';
1046
1074
  var instanceName = "." + newId(6);
1047
1075
  var _dataUid = 0;
1048
1076
  function _createAccessor(target, prop, value) {