@microsoft/applicationinsights-react-native 2.5.0-nightly.2204-04 → 2.5.0-nightly.2204-07

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, 2.5.0-nightly.2204-04
2
+ * Application Insights JavaScript SDK - React Native Plugin, 2.5.0-nightly.2204-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -89,247 +89,6 @@
89
89
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
90
90
  }
91
91
 
92
- /*!
93
- * Microsoft Dynamic Proto Utility, 1.1.4
94
- * Copyright (c) Microsoft and contributors. All rights reserved.
95
- */
96
- var Constructor = 'constructor';
97
- var Prototype = 'prototype';
98
- var strFunction = 'function';
99
- var DynInstFuncTable = '_dynInstFuncs';
100
- var DynProxyTag = '_isDynProxy';
101
- var DynClassName = '_dynClass';
102
- var DynClassNamePrefix = '_dynCls$';
103
- var DynInstChkTag = '_dynInstChk';
104
- var DynAllowInstChkTag = DynInstChkTag;
105
- var DynProtoDefaultOptions = '_dfOpts';
106
- var UnknownValue = '_unknown_';
107
- var str__Proto$1 = "__proto__";
108
- var strUseBaseInst = 'useBaseInst';
109
- var strSetInstFuncs = 'setInstFuncs';
110
- var Obj = Object;
111
- var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
112
- var _dynamicNames = 0;
113
- function _hasOwnProperty(obj, prop) {
114
- return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
115
- }
116
- function _isObjectOrArrayPrototype(target) {
117
- return target && (target === Obj[Prototype] || target === Array[Prototype]);
118
- }
119
- function _isObjectArrayOrFunctionPrototype(target) {
120
- return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
121
- }
122
- function _getObjProto$1(target) {
123
- if (target) {
124
- if (_objGetPrototypeOf$1) {
125
- return _objGetPrototypeOf$1(target);
126
- }
127
- var newProto = target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
128
- if (newProto) {
129
- return newProto;
130
- }
131
- }
132
- return null;
133
- }
134
- function _forEachProp(target, func) {
135
- var props = [];
136
- var getOwnProps = Obj["getOwnPropertyNames"];
137
- if (getOwnProps) {
138
- props = getOwnProps(target);
139
- }
140
- else {
141
- for (var name_1 in target) {
142
- if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
143
- props.push(name_1);
144
- }
145
- }
146
- }
147
- if (props && props.length > 0) {
148
- for (var lp = 0; lp < props.length; lp++) {
149
- func(props[lp]);
150
- }
151
- }
152
- }
153
- function _isDynamicCandidate(target, funcName, skipOwn) {
154
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
155
- }
156
- function _throwTypeError(message) {
157
- throw new TypeError("DynamicProto: " + message);
158
- }
159
- function _getInstanceFuncs(thisTarget) {
160
- var instFuncs = {};
161
- _forEachProp(thisTarget, function (name) {
162
- if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
163
- instFuncs[name] = thisTarget[name];
164
- }
165
- });
166
- return instFuncs;
167
- }
168
- function _hasVisited(values, value) {
169
- for (var lp = values.length - 1; lp >= 0; lp--) {
170
- if (values[lp] === value) {
171
- return true;
172
- }
173
- }
174
- return false;
175
- }
176
- function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
177
- function _instFuncProxy(target, funcHost, funcName) {
178
- var theFunc = funcHost[funcName];
179
- if (theFunc[DynProxyTag] && useBaseInst) {
180
- var instFuncTable = target[DynInstFuncTable] || {};
181
- if (instFuncTable[DynAllowInstChkTag] !== false) {
182
- theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
183
- }
184
- }
185
- return function () {
186
- return theFunc.apply(target, arguments);
187
- };
188
- }
189
- var baseFuncs = {};
190
- _forEachProp(instFuncs, function (name) {
191
- baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
192
- });
193
- var baseProto = _getObjProto$1(classProto);
194
- var visited = [];
195
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
196
- _forEachProp(baseProto, function (name) {
197
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf$1)) {
198
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
199
- }
200
- });
201
- visited.push(baseProto);
202
- baseProto = _getObjProto$1(baseProto);
203
- }
204
- return baseFuncs;
205
- }
206
- function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
207
- var instFunc = null;
208
- if (target && _hasOwnProperty(proto, DynClassName)) {
209
- var instFuncTable = target[DynInstFuncTable] || {};
210
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
211
- if (!instFunc) {
212
- _throwTypeError("Missing [" + funcName + "] " + strFunction);
213
- }
214
- if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
215
- var canAddInst = !_hasOwnProperty(target, funcName);
216
- var objProto = _getObjProto$1(target);
217
- var visited = [];
218
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
219
- var protoFunc = objProto[funcName];
220
- if (protoFunc) {
221
- canAddInst = (protoFunc === currentDynProtoProxy);
222
- break;
223
- }
224
- visited.push(objProto);
225
- objProto = _getObjProto$1(objProto);
226
- }
227
- try {
228
- if (canAddInst) {
229
- target[funcName] = instFunc;
230
- }
231
- instFunc[DynInstChkTag] = 1;
232
- }
233
- catch (e) {
234
- instFuncTable[DynAllowInstChkTag] = false;
235
- }
236
- }
237
- }
238
- return instFunc;
239
- }
240
- function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
241
- var protoFunc = proto[funcName];
242
- if (protoFunc === currentDynProtoProxy) {
243
- protoFunc = _getObjProto$1(proto)[funcName];
244
- }
245
- if (typeof protoFunc !== strFunction) {
246
- _throwTypeError("[" + funcName + "] is not a " + strFunction);
247
- }
248
- return protoFunc;
249
- }
250
- function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
251
- function _createDynamicPrototype(proto, funcName) {
252
- var dynProtoProxy = function () {
253
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
254
- return instFunc.apply(this, arguments);
255
- };
256
- dynProtoProxy[DynProxyTag] = 1;
257
- return dynProtoProxy;
258
- }
259
- if (!_isObjectOrArrayPrototype(proto)) {
260
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
261
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
262
- if (instFuncTable[DynAllowInstChkTag] !== false) {
263
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
264
- }
265
- _forEachProp(target, function (name) {
266
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
267
- instFuncs_1[name] = target[name];
268
- delete target[name];
269
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
270
- proto[name] = _createDynamicPrototype(proto, name);
271
- }
272
- }
273
- });
274
- }
275
- }
276
- function _checkPrototype(classProto, thisTarget) {
277
- if (_objGetPrototypeOf$1) {
278
- var visited = [];
279
- var thisProto = _getObjProto$1(thisTarget);
280
- while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
281
- if (thisProto === classProto) {
282
- return true;
283
- }
284
- visited.push(thisProto);
285
- thisProto = _getObjProto$1(thisProto);
286
- }
287
- }
288
- return false;
289
- }
290
- function _getObjName(target, unknownValue) {
291
- if (_hasOwnProperty(target, Prototype)) {
292
- return target.name || unknownValue || UnknownValue;
293
- }
294
- return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
295
- }
296
- function dynamicProto(theClass, target, delegateFunc, options) {
297
- if (!_hasOwnProperty(theClass, Prototype)) {
298
- _throwTypeError("theClass is an invalid class definition.");
299
- }
300
- var classProto = theClass[Prototype];
301
- if (!_checkPrototype(classProto, target)) {
302
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
303
- }
304
- var className = null;
305
- if (_hasOwnProperty(classProto, DynClassName)) {
306
- className = classProto[DynClassName];
307
- }
308
- else {
309
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
310
- _dynamicNames++;
311
- classProto[DynClassName] = className;
312
- }
313
- var perfOptions = dynamicProto[DynProtoDefaultOptions];
314
- var useBaseInst = !!perfOptions[strUseBaseInst];
315
- if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
316
- useBaseInst = !!options[strUseBaseInst];
317
- }
318
- var instFuncs = _getInstanceFuncs(target);
319
- var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
320
- delegateFunc(target, baseFuncs);
321
- var setInstanceFunc = !!_objGetPrototypeOf$1 && !!perfOptions[strSetInstFuncs];
322
- if (setInstanceFunc && options) {
323
- setInstanceFunc = !!options[strSetInstFuncs];
324
- }
325
- _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
326
- }
327
- var perfDefaults = {
328
- setInstFuncs: true,
329
- useBaseInst: true
330
- };
331
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
332
-
333
92
  var strEmpty = "";
334
93
  var strSetNextPlugin = "setNextPlugin";
335
94
  var strIsInitialized = "isInitialized";
@@ -340,7 +99,7 @@
340
99
  var strDoTeardown = "_doTeardown";
341
100
 
342
101
  var strToString = "toString";
343
- var str__Proto = "__proto__";
102
+ var str__Proto$1 = "__proto__";
344
103
  var strConstructor = "constructor";
345
104
  var _objDefineProperty$1 = ObjDefineProperty;
346
105
  var _objFreeze = ObjClass.freeze;
@@ -351,13 +110,13 @@
351
110
  var rCamelCase = /-([a-z])/g;
352
111
  var rNormalizeInvalid = /([^\w\d_$])/g;
353
112
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
354
- var _objGetPrototypeOf = Object["getPrototypeOf"];
355
- function _getObjProto(target) {
113
+ var _objGetPrototypeOf$1 = Object["getPrototypeOf"];
114
+ function _getObjProto$1(target) {
356
115
  if (target) {
357
- if (_objGetPrototypeOf) {
358
- return _objGetPrototypeOf(target);
116
+ if (_objGetPrototypeOf$1) {
117
+ return _objGetPrototypeOf$1(target);
359
118
  }
360
- var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor];
119
+ var newProto = target[str__Proto$1] || target[strShimPrototype] || target[strConstructor];
361
120
  if (newProto) {
362
121
  return newProto;
363
122
  }
@@ -423,7 +182,7 @@
423
182
  function isPlainObject(value) {
424
183
  var result = false;
425
184
  if (value && typeof value === "object") {
426
- var proto = _objGetPrototypeOf ? _objGetPrototypeOf(value) : _getObjProto(value);
185
+ var proto = _objGetPrototypeOf$1 ? _objGetPrototypeOf$1(value) : _getObjProto$1(value);
427
186
  if (!proto) {
428
187
  result = true;
429
188
  }
@@ -496,9 +255,6 @@
496
255
  }
497
256
  return theValue;
498
257
  }
499
- function throwError(message) {
500
- throw new Error(message);
501
- }
502
258
  function _createProxyFunction(source, funcName) {
503
259
  var srcFunc = null;
504
260
  var src = null;
@@ -519,24 +275,12 @@
519
275
  };
520
276
  }
521
277
  function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
522
- if (overwriteTarget === void 0) { overwriteTarget = true; }
523
278
  if (target && name && source) {
524
- if (overwriteTarget || isUndefined(target[name])) {
279
+ if (overwriteTarget !== false || isUndefined(target[name])) {
525
280
  target[name] = _createProxyFunction(source, theFunc);
526
281
  }
527
282
  }
528
283
  }
529
- function createEnumStyle(values) {
530
- var enumClass = {};
531
- objForEachKey$1(values, function (field, value) {
532
- enumClass[field] = value;
533
- if (!isUndefined(enumClass[value])) {
534
- throwError("[" + value + "] exists for " + field);
535
- }
536
- enumClass[value] = field;
537
- });
538
- return objFreeze(enumClass);
539
- }
540
284
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
541
285
  var theArgs = arguments;
542
286
  var extended = theArgs[0] || {};
@@ -582,6 +326,247 @@
582
326
  return extended;
583
327
  }
584
328
 
329
+ /*!
330
+ * Microsoft Dynamic Proto Utility, 1.1.4
331
+ * Copyright (c) Microsoft and contributors. All rights reserved.
332
+ */
333
+ var Constructor = 'constructor';
334
+ var Prototype = 'prototype';
335
+ var strFunction = 'function';
336
+ var DynInstFuncTable = '_dynInstFuncs';
337
+ var DynProxyTag = '_isDynProxy';
338
+ var DynClassName = '_dynClass';
339
+ var DynClassNamePrefix = '_dynCls$';
340
+ var DynInstChkTag = '_dynInstChk';
341
+ var DynAllowInstChkTag = DynInstChkTag;
342
+ var DynProtoDefaultOptions = '_dfOpts';
343
+ var UnknownValue = '_unknown_';
344
+ var str__Proto = "__proto__";
345
+ var strUseBaseInst = 'useBaseInst';
346
+ var strSetInstFuncs = 'setInstFuncs';
347
+ var Obj = Object;
348
+ var _objGetPrototypeOf = Obj["getPrototypeOf"];
349
+ var _dynamicNames = 0;
350
+ function _hasOwnProperty(obj, prop) {
351
+ return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
352
+ }
353
+ function _isObjectOrArrayPrototype(target) {
354
+ return target && (target === Obj[Prototype] || target === Array[Prototype]);
355
+ }
356
+ function _isObjectArrayOrFunctionPrototype(target) {
357
+ return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
358
+ }
359
+ function _getObjProto(target) {
360
+ if (target) {
361
+ if (_objGetPrototypeOf) {
362
+ return _objGetPrototypeOf(target);
363
+ }
364
+ var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
365
+ if (newProto) {
366
+ return newProto;
367
+ }
368
+ }
369
+ return null;
370
+ }
371
+ function _forEachProp(target, func) {
372
+ var props = [];
373
+ var getOwnProps = Obj["getOwnPropertyNames"];
374
+ if (getOwnProps) {
375
+ props = getOwnProps(target);
376
+ }
377
+ else {
378
+ for (var name_1 in target) {
379
+ if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
380
+ props.push(name_1);
381
+ }
382
+ }
383
+ }
384
+ if (props && props.length > 0) {
385
+ for (var lp = 0; lp < props.length; lp++) {
386
+ func(props[lp]);
387
+ }
388
+ }
389
+ }
390
+ function _isDynamicCandidate(target, funcName, skipOwn) {
391
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
392
+ }
393
+ function _throwTypeError(message) {
394
+ throw new TypeError("DynamicProto: " + message);
395
+ }
396
+ function _getInstanceFuncs(thisTarget) {
397
+ var instFuncs = {};
398
+ _forEachProp(thisTarget, function (name) {
399
+ if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
400
+ instFuncs[name] = thisTarget[name];
401
+ }
402
+ });
403
+ return instFuncs;
404
+ }
405
+ function _hasVisited(values, value) {
406
+ for (var lp = values.length - 1; lp >= 0; lp--) {
407
+ if (values[lp] === value) {
408
+ return true;
409
+ }
410
+ }
411
+ return false;
412
+ }
413
+ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
414
+ function _instFuncProxy(target, funcHost, funcName) {
415
+ var theFunc = funcHost[funcName];
416
+ if (theFunc[DynProxyTag] && useBaseInst) {
417
+ var instFuncTable = target[DynInstFuncTable] || {};
418
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
419
+ theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
420
+ }
421
+ }
422
+ return function () {
423
+ return theFunc.apply(target, arguments);
424
+ };
425
+ }
426
+ var baseFuncs = {};
427
+ _forEachProp(instFuncs, function (name) {
428
+ baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
429
+ });
430
+ var baseProto = _getObjProto(classProto);
431
+ var visited = [];
432
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
433
+ _forEachProp(baseProto, function (name) {
434
+ if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
435
+ baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
436
+ }
437
+ });
438
+ visited.push(baseProto);
439
+ baseProto = _getObjProto(baseProto);
440
+ }
441
+ return baseFuncs;
442
+ }
443
+ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
444
+ var instFunc = null;
445
+ if (target && _hasOwnProperty(proto, DynClassName)) {
446
+ var instFuncTable = target[DynInstFuncTable] || {};
447
+ instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
448
+ if (!instFunc) {
449
+ _throwTypeError("Missing [" + funcName + "] " + strFunction);
450
+ }
451
+ if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
452
+ var canAddInst = !_hasOwnProperty(target, funcName);
453
+ var objProto = _getObjProto(target);
454
+ var visited = [];
455
+ while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
456
+ var protoFunc = objProto[funcName];
457
+ if (protoFunc) {
458
+ canAddInst = (protoFunc === currentDynProtoProxy);
459
+ break;
460
+ }
461
+ visited.push(objProto);
462
+ objProto = _getObjProto(objProto);
463
+ }
464
+ try {
465
+ if (canAddInst) {
466
+ target[funcName] = instFunc;
467
+ }
468
+ instFunc[DynInstChkTag] = 1;
469
+ }
470
+ catch (e) {
471
+ instFuncTable[DynAllowInstChkTag] = false;
472
+ }
473
+ }
474
+ }
475
+ return instFunc;
476
+ }
477
+ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
478
+ var protoFunc = proto[funcName];
479
+ if (protoFunc === currentDynProtoProxy) {
480
+ protoFunc = _getObjProto(proto)[funcName];
481
+ }
482
+ if (typeof protoFunc !== strFunction) {
483
+ _throwTypeError("[" + funcName + "] is not a " + strFunction);
484
+ }
485
+ return protoFunc;
486
+ }
487
+ function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
488
+ function _createDynamicPrototype(proto, funcName) {
489
+ var dynProtoProxy = function () {
490
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
491
+ return instFunc.apply(this, arguments);
492
+ };
493
+ dynProtoProxy[DynProxyTag] = 1;
494
+ return dynProtoProxy;
495
+ }
496
+ if (!_isObjectOrArrayPrototype(proto)) {
497
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
498
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
499
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
500
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
501
+ }
502
+ _forEachProp(target, function (name) {
503
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
504
+ instFuncs_1[name] = target[name];
505
+ delete target[name];
506
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
507
+ proto[name] = _createDynamicPrototype(proto, name);
508
+ }
509
+ }
510
+ });
511
+ }
512
+ }
513
+ function _checkPrototype(classProto, thisTarget) {
514
+ if (_objGetPrototypeOf) {
515
+ var visited = [];
516
+ var thisProto = _getObjProto(thisTarget);
517
+ while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
518
+ if (thisProto === classProto) {
519
+ return true;
520
+ }
521
+ visited.push(thisProto);
522
+ thisProto = _getObjProto(thisProto);
523
+ }
524
+ }
525
+ return false;
526
+ }
527
+ function _getObjName(target, unknownValue) {
528
+ if (_hasOwnProperty(target, Prototype)) {
529
+ return target.name || unknownValue || UnknownValue;
530
+ }
531
+ return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
532
+ }
533
+ function dynamicProto(theClass, target, delegateFunc, options) {
534
+ if (!_hasOwnProperty(theClass, Prototype)) {
535
+ _throwTypeError("theClass is an invalid class definition.");
536
+ }
537
+ var classProto = theClass[Prototype];
538
+ if (!_checkPrototype(classProto, target)) {
539
+ _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
540
+ }
541
+ var className = null;
542
+ if (_hasOwnProperty(classProto, DynClassName)) {
543
+ className = classProto[DynClassName];
544
+ }
545
+ else {
546
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
547
+ _dynamicNames++;
548
+ classProto[DynClassName] = className;
549
+ }
550
+ var perfOptions = dynamicProto[DynProtoDefaultOptions];
551
+ var useBaseInst = !!perfOptions[strUseBaseInst];
552
+ if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
553
+ useBaseInst = !!options[strUseBaseInst];
554
+ }
555
+ var instFuncs = _getInstanceFuncs(target);
556
+ var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
557
+ delegateFunc(target, baseFuncs);
558
+ var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
559
+ if (setInstanceFunc && options) {
560
+ setInstanceFunc = !!options[strSetInstFuncs];
561
+ }
562
+ _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
563
+ }
564
+ var perfDefaults = {
565
+ setInstFuncs: true,
566
+ useBaseInst: true
567
+ };
568
+ dynamicProto[DynProtoDefaultOptions] = perfDefaults;
569
+
585
570
  var strWindow = "window";
586
571
  var strNavigator = "navigator";
587
572
  var strConsole = "console";
@@ -823,10 +808,16 @@
823
808
  }
824
809
  return DiagnosticLogger;
825
810
  }());
811
+ function _getLogger(logger) {
812
+ return (logger || new DiagnosticLogger());
813
+ }
826
814
  function _throwInternal(logger, severity, msgId, msg, properties, isUserAct) {
827
815
  if (isUserAct === void 0) { isUserAct = false; }
828
816
  (logger || new DiagnosticLogger()).throwInternal(severity, msgId, msg, properties, isUserAct);
829
817
  }
818
+ function _warnToConsole(logger, message) {
819
+ _getLogger(logger).warnToConsole(message);
820
+ }
830
821
 
831
822
  var strExecutionContextKey = "ctx";
832
823
  var PerfEvent = /** @class */ (function () {
@@ -1009,7 +1000,7 @@
1009
1000
  }
1010
1001
 
1011
1002
  var _objDefineProperty = ObjDefineProperty;
1012
- var version = "2.8.0-nightly.2204-04";
1003
+ var version = "2.8.0-nightly.2204-07";
1013
1004
  var instanceName = "." + newId(6);
1014
1005
  var _dataUid = 0;
1015
1006
  function _createAccessor(target, prop, value) {
@@ -1601,104 +1592,6 @@
1601
1592
  return BaseTelemetryPlugin;
1602
1593
  }());
1603
1594
 
1604
- var LoggingSeverity = createEnumStyle({
1605
- CRITICAL: 1 ,
1606
- WARNING: 2
1607
- });
1608
- var _InternalMessageId = createEnumStyle({
1609
- BrowserDoesNotSupportLocalStorage: 0 ,
1610
- BrowserCannotReadLocalStorage: 1 ,
1611
- BrowserCannotReadSessionStorage: 2 ,
1612
- BrowserCannotWriteLocalStorage: 3 ,
1613
- BrowserCannotWriteSessionStorage: 4 ,
1614
- BrowserFailedRemovalFromLocalStorage: 5 ,
1615
- BrowserFailedRemovalFromSessionStorage: 6 ,
1616
- CannotSendEmptyTelemetry: 7 ,
1617
- ClientPerformanceMathError: 8 ,
1618
- ErrorParsingAISessionCookie: 9 ,
1619
- ErrorPVCalc: 10 ,
1620
- ExceptionWhileLoggingError: 11 ,
1621
- FailedAddingTelemetryToBuffer: 12 ,
1622
- FailedMonitorAjaxAbort: 13 ,
1623
- FailedMonitorAjaxDur: 14 ,
1624
- FailedMonitorAjaxOpen: 15 ,
1625
- FailedMonitorAjaxRSC: 16 ,
1626
- FailedMonitorAjaxSend: 17 ,
1627
- FailedMonitorAjaxGetCorrelationHeader: 18 ,
1628
- FailedToAddHandlerForOnBeforeUnload: 19 ,
1629
- FailedToSendQueuedTelemetry: 20 ,
1630
- FailedToReportDataLoss: 21 ,
1631
- FlushFailed: 22 ,
1632
- MessageLimitPerPVExceeded: 23 ,
1633
- MissingRequiredFieldSpecification: 24 ,
1634
- NavigationTimingNotSupported: 25 ,
1635
- OnError: 26 ,
1636
- SessionRenewalDateIsZero: 27 ,
1637
- SenderNotInitialized: 28 ,
1638
- StartTrackEventFailed: 29 ,
1639
- StopTrackEventFailed: 30 ,
1640
- StartTrackFailed: 31 ,
1641
- StopTrackFailed: 32 ,
1642
- TelemetrySampledAndNotSent: 33 ,
1643
- TrackEventFailed: 34 ,
1644
- TrackExceptionFailed: 35 ,
1645
- TrackMetricFailed: 36 ,
1646
- TrackPVFailed: 37 ,
1647
- TrackPVFailedCalc: 38 ,
1648
- TrackTraceFailed: 39 ,
1649
- TransmissionFailed: 40 ,
1650
- FailedToSetStorageBuffer: 41 ,
1651
- FailedToRestoreStorageBuffer: 42 ,
1652
- InvalidBackendResponse: 43 ,
1653
- FailedToFixDepricatedValues: 44 ,
1654
- InvalidDurationValue: 45 ,
1655
- TelemetryEnvelopeInvalid: 46 ,
1656
- CreateEnvelopeError: 47 ,
1657
- CannotSerializeObject: 48 ,
1658
- CannotSerializeObjectNonSerializable: 49 ,
1659
- CircularReferenceDetected: 50 ,
1660
- ClearAuthContextFailed: 51 ,
1661
- ExceptionTruncated: 52 ,
1662
- IllegalCharsInName: 53 ,
1663
- ItemNotInArray: 54 ,
1664
- MaxAjaxPerPVExceeded: 55 ,
1665
- MessageTruncated: 56 ,
1666
- NameTooLong: 57 ,
1667
- SampleRateOutOfRange: 58 ,
1668
- SetAuthContextFailed: 59 ,
1669
- SetAuthContextFailedAccountName: 60 ,
1670
- StringValueTooLong: 61 ,
1671
- StartCalledMoreThanOnce: 62 ,
1672
- StopCalledWithoutStart: 63 ,
1673
- TelemetryInitializerFailed: 64 ,
1674
- TrackArgumentsNotSpecified: 65 ,
1675
- UrlTooLong: 66 ,
1676
- SessionStorageBufferFull: 67 ,
1677
- CannotAccessCookie: 68 ,
1678
- IdTooLong: 69 ,
1679
- InvalidEvent: 70 ,
1680
- FailedMonitorAjaxSetRequestHeader: 71 ,
1681
- SendBrowserInfoOnUserInit: 72 ,
1682
- PluginException: 73 ,
1683
- NotificationException: 74 ,
1684
- SnippetScriptLoadFailure: 99 ,
1685
- InvalidInstrumentationKey: 100 ,
1686
- CannotParseAiBlobValue: 101 ,
1687
- InvalidContentBlob: 102 ,
1688
- TrackPageActionEventFailed: 103 ,
1689
- FailedAddingCustomDefinedRequestContext: 104 ,
1690
- InMemoryStorageBufferFull: 105
1691
- });
1692
-
1693
- var SeverityLevel;
1694
- (function (SeverityLevel) {
1695
- SeverityLevel[SeverityLevel["Verbose"] = 0] = "Verbose";
1696
- SeverityLevel[SeverityLevel["Information"] = 1] = "Information";
1697
- SeverityLevel[SeverityLevel["Warning"] = 2] = "Warning";
1698
- SeverityLevel[SeverityLevel["Error"] = 3] = "Error";
1699
- SeverityLevel[SeverityLevel["Critical"] = 4] = "Critical";
1700
- })(SeverityLevel || (SeverityLevel = {}));
1701
-
1702
1595
  var ConfigurationManager = /** @class */ (function () {
1703
1596
  function ConfigurationManager() {
1704
1597
  }
@@ -1784,7 +1677,7 @@
1784
1677
  _device.model = DeviceInfo__default["default"].getModel();
1785
1678
  }
1786
1679
  catch (e) {
1787
- _self.diagLog().warnToConsole("Failed to get DeviceInfo: " + getExceptionName(e) + " - " + dumpObj(e));
1680
+ _warnToConsole(_self.diagLog(), "Failed to get DeviceInfo: " + getExceptionName(e) + " - " + dumpObj(e));
1788
1681
  }
1789
1682
  };
1790
1683
  _self._doTeardown = function (unloadCtx, unloadState, asyncCallback) {
@@ -1832,12 +1725,12 @@
1832
1725
  }
1833
1726
  }
1834
1727
  function _trackException(e, isFatal) {
1835
- var exception = { exception: e, severityLevel: SeverityLevel.Error };
1728
+ var exception = { exception: e, severityLevel: 3 };
1836
1729
  if (_analyticsPlugin) {
1837
1730
  _analyticsPlugin.trackException(exception);
1838
1731
  }
1839
1732
  else {
1840
- _self.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, ReactNative plugin telemetry will not be sent: ");
1733
+ _throwInternal(_self.diagLog(), 1 , 64 , "Analytics plugin is not available, ReactNative plugin telemetry will not be sent: ");
1841
1734
  }
1842
1735
  if (_defaultHandler) {
1843
1736
  _defaultHandler.call(global, e, isFatal);