@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.
- package/browser/es5/applicationinsights-core-js.cjs.js +2 -2
- package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.js +4 -4
- package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-core-js.js +4 -4
- package/browser/es5/applicationinsights-core-js.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-core-js.js +2 -2
- package/dist/es5/applicationinsights-core-js.js.map +1 -1
- package/dist/es5/applicationinsights-core-js.min.js +2 -2
- package/dist/es5/applicationinsights-core-js.min.js.map +1 -1
- package/dist-es5/Config/ConfigDefaultHelpers.js +1 -1
- package/dist-es5/Config/ConfigDefaults.js +1 -1
- package/dist-es5/Config/DynamicConfig.js +1 -1
- package/dist-es5/Config/DynamicProperty.js +1 -1
- package/dist-es5/Config/DynamicState.js +1 -1
- package/dist-es5/Config/DynamicSupport.js +1 -1
- package/dist-es5/Config/IConfigDefaults.js +1 -1
- package/dist-es5/Config/IDynamicConfigHandler.js +1 -1
- package/dist-es5/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-es5/Config/IDynamicWatcher.js +1 -1
- package/dist-es5/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-es5/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-es5/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-es5/JavaScriptSDK/AsyncUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK/Constants.js +1 -1
- package/dist-es5/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-es5/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-es5/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-es5/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-es5/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-es5/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-es5/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-es5/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-es5/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-es5/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-es5/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-es5/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-es5/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/dist-es5/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/types/applicationinsights-core-js.d.ts +10 -10
- 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-
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3232
|
+
type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
3233
3233
|
|
|
3234
3234
|
|
|
3235
3235
|
}
|