@microsoft/applicationinsights-core-js 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.
Files changed (75) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +21 -20
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.d.ts +1 -1
  7. package/dist/applicationinsights-core-js.js +21 -20
  8. package/dist/applicationinsights-core-js.js.map +1 -1
  9. package/dist/applicationinsights-core-js.min.js +2 -2
  10. package/dist/applicationinsights-core-js.min.js.map +1 -1
  11. package/dist/applicationinsights-core-js.rollup.d.ts +1 -1
  12. package/dist-esm/Config/ConfigDefaults.js +1 -1
  13. package/dist-esm/Config/DynamicConfig.js +1 -1
  14. package/dist-esm/Config/DynamicProperty.js +1 -1
  15. package/dist-esm/Config/DynamicState.js +1 -1
  16. package/dist-esm/Config/DynamicSupport.js +10 -10
  17. package/dist-esm/Config/DynamicSupport.js.map +1 -1
  18. package/dist-esm/Config/IConfigDefaults.js +1 -1
  19. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  20. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  21. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  22. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  23. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  24. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  25. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  26. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  27. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  28. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  29. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  30. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  31. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  32. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  33. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  34. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  35. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  36. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  37. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  38. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  39. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  40. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  41. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  42. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  43. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  44. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  45. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  46. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  47. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  73. package/dist-esm/__DynamicConstants.js +1 -1
  74. package/dist-esm/applicationinsights-core-js.js +1 -1
  75. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-06
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-07
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 - Core, 3.0.0-beta.2210-06
2
+ * Application Insights JavaScript SDK - Core, 3.0.0-beta.2210-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -716,21 +716,23 @@
716
716
  var _cachedGlobal = null;
717
717
  function getGlobal(useCached) {
718
718
  if (useCached === void 0) { useCached = true; }
719
- if (!_cachedGlobal || !useCached) {
720
- if (typeof globalThis !== strShimUndefined && globalThis) {
721
- _cachedGlobal = globalThis;
719
+ var result = useCached === false ? null : _cachedGlobal;
720
+ if (!result) {
721
+ if (typeof globalThis !== strShimUndefined) {
722
+ result = globalThis;
722
723
  }
723
- if (typeof self !== strShimUndefined && self) {
724
- _cachedGlobal = self;
724
+ if (!result && typeof self !== strShimUndefined) {
725
+ result = self;
725
726
  }
726
- if (typeof window !== strShimUndefined && window) {
727
- _cachedGlobal = window;
727
+ if (!result && typeof window !== strShimUndefined) {
728
+ result = window;
728
729
  }
729
- if (typeof global !== strShimUndefined && global) {
730
- _cachedGlobal = global;
730
+ if (!result && typeof global !== strShimUndefined) {
731
+ result = global;
731
732
  }
733
+ _cachedGlobal = result;
732
734
  }
733
- return _cachedGlobal;
735
+ return result;
734
736
  }
735
737
  function throwTypeError(message) {
736
738
  throw new TypeError(message);
@@ -1629,7 +1631,7 @@
1629
1631
  }
1630
1632
 
1631
1633
  var _objDefineProperty = ObjDefineProperty;
1632
- var version = "3.0.0-beta.2210-06";
1634
+ var version = "3.0.0-beta.2210-07";
1633
1635
  var instanceName = "." + newId(6);
1634
1636
  var _dataUid = 0;
1635
1637
  function _createAccessor(target, prop, value) {
@@ -1705,16 +1707,15 @@
1705
1707
  var CFG_HANDLER_LINK = symbolFor("[[ai_dynCfg_1]]");
1706
1708
  function _cfgDeepCopy(source) {
1707
1709
  if (source) {
1710
+ var target_1;
1708
1711
  if (isArray(source)) {
1709
- var result_1 = [];
1710
- result_1[_DYN_LENGTH ] = source[_DYN_LENGTH ];
1711
- arrForEach(source, function (value, idx) {
1712
- result_1[idx] = _cfgDeepCopy(value);
1713
- });
1714
- return result_1;
1712
+ target_1 = [];
1713
+ target_1[_DYN_LENGTH ] = source[_DYN_LENGTH ];
1714
+ }
1715
+ else if (isPlainObject(source)) {
1716
+ target_1 = {};
1715
1717
  }
1716
- if (isPlainObject(source)) {
1717
- var target_1 = {};
1718
+ if (target_1) {
1718
1719
  objForEachKey$1(source, function (key, value) {
1719
1720
  target_1[key] = _cfgDeepCopy(value);
1720
1721
  });