@microsoft/applicationinsights-core-js 3.0.2-nightly3.2305-11 → 3.0.2-nightly3.2305-12

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 (87) hide show
  1. package/browser/es5/applicationinsights-core-js.cjs.js +2 -2
  2. package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-core-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-core-js.gbl.js +4 -4
  6. package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-core-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-core-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-core-js.js +4 -4
  11. package/browser/es5/applicationinsights-core-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-core-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-core-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-core-js.js +2 -2
  15. package/dist/es5/applicationinsights-core-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-core-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-core-js.min.js.map +1 -1
  18. package/dist-es5/Config/ConfigDefaultHelpers.js +1 -1
  19. package/dist-es5/Config/ConfigDefaults.js +1 -1
  20. package/dist-es5/Config/DynamicConfig.js +1 -1
  21. package/dist-es5/Config/DynamicProperty.js +1 -1
  22. package/dist-es5/Config/DynamicState.js +1 -1
  23. package/dist-es5/Config/DynamicSupport.js +1 -1
  24. package/dist-es5/Config/IConfigDefaults.js +1 -1
  25. package/dist-es5/Config/IDynamicConfigHandler.js +1 -1
  26. package/dist-es5/Config/IDynamicPropertyHandler.js +1 -1
  27. package/dist-es5/Config/IDynamicWatcher.js +1 -1
  28. package/dist-es5/Config/_IDynamicConfigHandlerState.js +1 -1
  29. package/dist-es5/JavaScriptSDK/AggregationError.js +1 -1
  30. package/dist-es5/JavaScriptSDK/AppInsightsCore.js +1 -1
  31. package/dist-es5/JavaScriptSDK/AsyncUtils.js +1 -1
  32. package/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  33. package/dist-es5/JavaScriptSDK/Constants.js +1 -1
  34. package/dist-es5/JavaScriptSDK/CookieMgr.js +1 -1
  35. package/dist-es5/JavaScriptSDK/CoreUtils.js +1 -1
  36. package/dist-es5/JavaScriptSDK/DataCacheHelper.js +2 -2
  37. package/dist-es5/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  38. package/dist-es5/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  39. package/dist-es5/JavaScriptSDK/DiagnosticLogger.js +1 -1
  40. package/dist-es5/JavaScriptSDK/EnvUtils.js +1 -1
  41. package/dist-es5/JavaScriptSDK/EventHelpers.js +1 -1
  42. package/dist-es5/JavaScriptSDK/HelperFuncs.js +1 -1
  43. package/dist-es5/JavaScriptSDK/InstrumentHooks.js +1 -1
  44. package/dist-es5/JavaScriptSDK/InternalConstants.js +1 -1
  45. package/dist-es5/JavaScriptSDK/NotificationManager.js +1 -1
  46. package/dist-es5/JavaScriptSDK/PerfManager.js +1 -1
  47. package/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  48. package/dist-es5/JavaScriptSDK/RandomHelper.js +1 -1
  49. package/dist-es5/JavaScriptSDK/TelemetryHelpers.js +1 -1
  50. package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  51. package/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  52. package/dist-es5/JavaScriptSDK/UnloadHookContainer.js +1 -1
  53. package/dist-es5/JavaScriptSDK/W3cTraceParent.js +1 -1
  54. package/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  55. package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  56. package/dist-es5/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  57. package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  58. package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  59. package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  60. package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  61. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  62. package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +1 -1
  63. package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  64. package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  65. package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  66. package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  67. package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  68. package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  69. package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  70. package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  71. package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  72. package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  73. package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  74. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  75. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  76. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  77. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  78. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  79. package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  80. package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  81. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  82. package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  83. package/dist-es5/__DynamicConstants.js +1 -1
  84. package/dist-es5/applicationinsights-core-js.js +1 -1
  85. package/package.json +1 -1
  86. package/types/applicationinsights-core-js.d.ts +10 -10
  87. package/types/applicationinsights-core-js.namespaced.d.ts +10 -10
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-11
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -521,7 +521,7 @@ export declare function createCookieMgr(rootConfig?: IConfiguration, logger?: ID
521
521
  * @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true
522
522
  * @returns The dynamic config handler for the config (whether new or existing)
523
523
  */
524
- export declare function createDynamicConfig<T extends IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
524
+ export declare function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
525
525
 
526
526
  /**
527
527
  * Create an enum style object which has both the key => value and value => key mappings
@@ -919,7 +919,7 @@ export { getDocument }
919
919
  * @param value
920
920
  * @returns
921
921
  */
922
- export declare function getDynamicConfigHandler<T>(value: T | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
922
+ export declare function getDynamicConfigHandler<T = IConfiguration, V = IConfiguration>(value: V | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
923
923
 
924
924
  /**
925
925
  * Returns the name of object if it's an Error. Otherwise, returns empty string.
@@ -1699,7 +1699,7 @@ export declare interface IDistributedTraceContext {
1699
1699
  /**
1700
1700
  * This interface identifies the config which can track changes
1701
1701
  */
1702
- export declare interface IDynamicConfigHandler<T extends IConfiguration> {
1702
+ export declare interface IDynamicConfigHandler<T = IConfiguration> {
1703
1703
  /**
1704
1704
  * Unique Id for this config handler
1705
1705
  */
@@ -1709,7 +1709,7 @@ export declare interface IDynamicConfigHandler<T extends IConfiguration> {
1709
1709
  */
1710
1710
  cfg: T;
1711
1711
  /**
1712
- * The logger instance to use to loger any issues
1712
+ * The logger instance to use to logger any issues
1713
1713
  */
1714
1714
  logger: IDiagnosticLogger;
1715
1715
  /**
@@ -1778,7 +1778,7 @@ export declare interface IDynamicConfigHandler<T extends IConfiguration> {
1778
1778
  blkVal: <C, V = any>(target: C, name: string) => V;
1779
1779
  }
1780
1780
 
1781
- export declare interface IDynamicPropertyHandler<T> {
1781
+ export declare interface IDynamicPropertyHandler<T = IConfiguration> {
1782
1782
  /**
1783
1783
  * Identifies the name of the field that is handled by this handler
1784
1784
  */
@@ -2585,7 +2585,7 @@ export declare interface IUnloadHookContainer {
2585
2585
  run: (logger?: IDiagnosticLogger) => void;
2586
2586
  }
2587
2587
 
2588
- export declare interface IWatchDetails<T extends IConfiguration> {
2588
+ export declare interface IWatchDetails<T = IConfiguration> {
2589
2589
  /**
2590
2590
  * The current config object
2591
2591
  */
@@ -2619,7 +2619,7 @@ export declare interface IWatchDetails<T extends IConfiguration> {
2619
2619
  rdOnly: <C, V = any>(target: C, name: string) => V;
2620
2620
  }
2621
2621
 
2622
- export declare interface IWatcherHandler<T extends IConfiguration> extends IUnloadHook {
2622
+ export declare interface IWatcherHandler<T = IConfiguration> extends IUnloadHook {
2623
2623
  fn: WatcherFunction<T>;
2624
2624
  rm: () => void;
2625
2625
  }
@@ -2758,7 +2758,7 @@ export { objToString }
2758
2758
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
2759
2759
  * @throws TypeError if the provided config is not a dynamic config instance
2760
2760
  */
2761
- export declare function onConfigChange<T>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
2761
+ export declare function onConfigChange<T = IConfiguration>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
2762
2762
 
2763
2763
  /**
2764
2764
  * A helper function to assist with JIT performance for objects that have properties added / removed dynamically
@@ -3234,6 +3234,6 @@ export declare function useXDomainRequest(): boolean | undefined;
3234
3234
  */
3235
3235
  export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
3236
3236
 
3237
- export declare type WatcherFunction<T extends IConfiguration> = (details: IWatchDetails<T>) => void;
3237
+ export declare type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
3238
3238
 
3239
3239
  export { }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-11
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -516,7 +516,7 @@ declare namespace ApplicationInsights {
516
516
  * @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true
517
517
  * @returns The dynamic config handler for the config (whether new or existing)
518
518
  */
519
- function createDynamicConfig<T extends IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
519
+ function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
520
520
 
521
521
  /**
522
522
  * Create an enum style object which has both the key => value and value => key mappings
@@ -914,7 +914,7 @@ declare namespace ApplicationInsights {
914
914
  * @param value
915
915
  * @returns
916
916
  */
917
- function getDynamicConfigHandler<T>(value: T | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
917
+ function getDynamicConfigHandler<T = IConfiguration, V = IConfiguration>(value: V | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
918
918
 
919
919
  /**
920
920
  * Returns the name of object if it's an Error. Otherwise, returns empty string.
@@ -1694,7 +1694,7 @@ declare namespace ApplicationInsights {
1694
1694
  /**
1695
1695
  * This interface identifies the config which can track changes
1696
1696
  */
1697
- interface IDynamicConfigHandler<T extends IConfiguration> {
1697
+ interface IDynamicConfigHandler<T = IConfiguration> {
1698
1698
  /**
1699
1699
  * Unique Id for this config handler
1700
1700
  */
@@ -1704,7 +1704,7 @@ declare namespace ApplicationInsights {
1704
1704
  */
1705
1705
  cfg: T;
1706
1706
  /**
1707
- * The logger instance to use to loger any issues
1707
+ * The logger instance to use to logger any issues
1708
1708
  */
1709
1709
  logger: IDiagnosticLogger;
1710
1710
  /**
@@ -1773,7 +1773,7 @@ declare namespace ApplicationInsights {
1773
1773
  blkVal: <C, V = any>(target: C, name: string) => V;
1774
1774
  }
1775
1775
 
1776
- interface IDynamicPropertyHandler<T> {
1776
+ interface IDynamicPropertyHandler<T = IConfiguration> {
1777
1777
  /**
1778
1778
  * Identifies the name of the field that is handled by this handler
1779
1779
  */
@@ -2580,7 +2580,7 @@ declare namespace ApplicationInsights {
2580
2580
  run: (logger?: IDiagnosticLogger) => void;
2581
2581
  }
2582
2582
 
2583
- interface IWatchDetails<T extends IConfiguration> {
2583
+ interface IWatchDetails<T = IConfiguration> {
2584
2584
  /**
2585
2585
  * The current config object
2586
2586
  */
@@ -2614,7 +2614,7 @@ declare namespace ApplicationInsights {
2614
2614
  rdOnly: <C, V = any>(target: C, name: string) => V;
2615
2615
  }
2616
2616
 
2617
- interface IWatcherHandler<T extends IConfiguration> extends IUnloadHook {
2617
+ interface IWatcherHandler<T = IConfiguration> extends IUnloadHook {
2618
2618
  fn: WatcherFunction<T>;
2619
2619
  rm: () => void;
2620
2620
  }
@@ -2753,7 +2753,7 @@ declare namespace ApplicationInsights {
2753
2753
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
2754
2754
  * @throws TypeError if the provided config is not a dynamic config instance
2755
2755
  */
2756
- function onConfigChange<T>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
2756
+ function onConfigChange<T = IConfiguration>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
2757
2757
 
2758
2758
  /**
2759
2759
  * A helper function to assist with JIT performance for objects that have properties added / removed dynamically
@@ -3229,7 +3229,7 @@ declare namespace ApplicationInsights {
3229
3229
  */
3230
3230
  function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
3231
3231
 
3232
- type WatcherFunction<T extends IConfiguration> = (details: IWatchDetails<T>) => void;
3232
+ type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
3233
3233
 
3234
3234
 
3235
3235
  }