@microsoft/applicationinsights-web-basic 3.0.0-beta.2210-06 → 3.0.0-beta.2210-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.
package/browser/aib.2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-06
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -292,21 +292,23 @@
292
292
  var _cachedGlobal$1 = null;
293
293
  function getGlobal$1(useCached) {
294
294
  if (useCached === void 0) { useCached = true; }
295
- if (!_cachedGlobal$1 || !useCached) {
296
- if (typeof globalThis !== strShimUndefined && globalThis) {
297
- _cachedGlobal$1 = globalThis;
295
+ var result = useCached === false ? null : _cachedGlobal$1;
296
+ if (!result) {
297
+ if (typeof globalThis !== strShimUndefined) {
298
+ result = globalThis;
298
299
  }
299
- if (typeof self !== strShimUndefined && self) {
300
- _cachedGlobal$1 = self;
300
+ if (!result && typeof self !== strShimUndefined) {
301
+ result = self;
301
302
  }
302
- if (typeof window !== strShimUndefined && window) {
303
- _cachedGlobal$1 = window;
303
+ if (!result && typeof window !== strShimUndefined) {
304
+ result = window;
304
305
  }
305
- if (typeof global !== strShimUndefined && global) {
306
- _cachedGlobal$1 = global;
306
+ if (!result && typeof global !== strShimUndefined) {
307
+ result = global;
307
308
  }
309
+ _cachedGlobal$1 = result;
308
310
  }
309
- return _cachedGlobal$1;
311
+ return result;
310
312
  }
311
313
  function throwTypeError$1(message) {
312
314
  throw new TypeError(message);
@@ -1476,7 +1478,7 @@
1476
1478
  }
1477
1479
 
1478
1480
  var _objDefineProperty = ObjDefineProperty;
1479
- var version = "3.0.0-beta.2210-06";
1481
+ var version = "3.0.0-beta.2210-07";
1480
1482
  var instanceName = "." + newId(6);
1481
1483
  var _dataUid = 0;
1482
1484
  function _createAccessor(target, prop, value) {
@@ -1552,16 +1554,15 @@
1552
1554
  var CFG_HANDLER_LINK = symbolFor("[[ai_dynCfg_1]]");
1553
1555
  function _cfgDeepCopy(source) {
1554
1556
  if (source) {
1557
+ var target_1;
1555
1558
  if (isArray(source)) {
1556
- var result_1 = [];
1557
- result_1[_DYN_LENGTH$2 ] = source[_DYN_LENGTH$2 ];
1558
- arrForEach(source, function (value, idx) {
1559
- result_1[idx] = _cfgDeepCopy(value);
1560
- });
1561
- return result_1;
1559
+ target_1 = [];
1560
+ target_1[_DYN_LENGTH$2 ] = source[_DYN_LENGTH$2 ];
1561
+ }
1562
+ else if (isPlainObject(source)) {
1563
+ target_1 = {};
1562
1564
  }
1563
- if (isPlainObject(source)) {
1564
- var target_1 = {};
1565
+ if (target_1) {
1565
1566
  objForEachKey$1(source, function (key, value) {
1566
1567
  target_1[key] = _cfgDeepCopy(value);
1567
1568
  });
@@ -5661,7 +5662,7 @@
5661
5662
  }
5662
5663
  }
5663
5664
  var EnvelopeCreator = {
5664
- Version: "3.0.0-beta.2210-06"
5665
+ Version: "3.0.0-beta.2210-07"
5665
5666
  };
5666
5667
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5667
5668
  EnvelopeCreatorInit(logger, telemetryItem);