@microsoft/applicationinsights-core-js 3.3.5-nightly3.2501-07 → 3.3.5-nightly3.2501-08
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 +3 -3
- package/dist-es5/JavaScriptSDK/AppInsightsCore.js.map +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 +8 -8
- package/dist-es5/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-es5/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/EventHelpers.js +10 -10
- package/dist-es5/JavaScriptSDK/EventHelpers.js.map +1 -1
- package/dist-es5/JavaScriptSDK/HelperFuncs.js +3 -3
- package/dist-es5/JavaScriptSDK/HelperFuncs.js.map +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/ResponseHelpers.js +1 -1
- package/dist-es5/JavaScriptSDK/SenderPostManager.js +9 -9
- package/dist-es5/JavaScriptSDK/SenderPostManager.js.map +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 +3 -3
- package/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +1 -1
- package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/FeatureOptInEnums.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/InitActiveStatusEnum.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/IExceptionConfig.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IFeatureOptIn.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/ISenderPostManager.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/JavaScriptSDK.Interfaces/IXDomainRequest.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IXHROverride.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-core-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-core-js.d.ts +35 -35
- package/types/applicationinsights-core-js.namespaced.d.ts +35 -35
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.3.5-nightly3.2501-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.3.5-nightly3.2501-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -81,10 +81,10 @@ export declare type ActiveStatus = number | eActiveStatus;
|
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Trys to add an event handler for the specified event to the window, body and document
|
|
84
|
-
* @param eventName
|
|
85
|
-
* @param callback
|
|
84
|
+
* @param eventName - The name of the event
|
|
85
|
+
* @param callback - The callback function that needs to be executed for the given event
|
|
86
86
|
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
87
|
-
* @returns
|
|
87
|
+
* @returns - true if the handler was successfully added
|
|
88
88
|
*/
|
|
89
89
|
export declare function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
|
|
90
90
|
|
|
@@ -283,7 +283,7 @@ export declare class AppInsightsCore<CfgType extends IConfiguration = IConfigura
|
|
|
283
283
|
/**
|
|
284
284
|
* Watches and tracks changes for accesses to the current config, and if the accessed config changes the
|
|
285
285
|
* handler will be recalled.
|
|
286
|
-
* @param handler
|
|
286
|
+
* @param handler - The watcher handler to call when the config changes
|
|
287
287
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
288
288
|
*/
|
|
289
289
|
onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
|
|
@@ -593,7 +593,7 @@ export declare function createCustomDomEvent(eventName: string, details?: any):
|
|
|
593
593
|
export declare function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
|
-
* Create an enum style object which has both the key
|
|
596
|
+
* Create an enum style object which has both the key \=\> value and value \=\> key mappings
|
|
597
597
|
* @param values - The values to populate on the new object
|
|
598
598
|
* @returns
|
|
599
599
|
*/
|
|
@@ -632,7 +632,7 @@ export declare function createUnloadHandlerContainer(): IUnloadHandlerContainer;
|
|
|
632
632
|
export declare function createUnloadHookContainer(): IUnloadHookContainer;
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
|
-
* Create a 2 index map that maps an enum's key and value to the defined map value, X["key"]
|
|
635
|
+
* Create a 2 index map that maps an enum's key and value to the defined map value, X["key"] \=\> mapValue and X[0] \=\> mapValue.
|
|
636
636
|
* Generic values
|
|
637
637
|
* - E = the const enum type (typeof eRequestHeaders);
|
|
638
638
|
* - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The
|
|
@@ -651,9 +651,9 @@ export { deepFreeze }
|
|
|
651
651
|
/**
|
|
652
652
|
* Removes an event handler for the specified event
|
|
653
653
|
* @param Object - to remove the event from
|
|
654
|
-
* @param eventNameWithoutOn
|
|
654
|
+
* @param eventNameWithoutOn - The name of the event, with optional namespaces or just the namespaces,
|
|
655
655
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
656
|
-
* @param handlerRef -
|
|
656
|
+
* @param handlerRef - The callback function that needs to be removed from the given event, when using a
|
|
657
657
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
658
658
|
* otherwise this will only remove events with this specific handler.
|
|
659
659
|
* @param useCapture - [Optional] Defaults to false
|
|
@@ -670,28 +670,28 @@ export declare class DiagnosticLogger implements IDiagnosticLogger {
|
|
|
670
670
|
/**
|
|
671
671
|
* 0: OFF (default)
|
|
672
672
|
* 1: CRITICAL
|
|
673
|
-
* 2:
|
|
673
|
+
* 2: \>= WARNING
|
|
674
674
|
*/
|
|
675
675
|
consoleLoggingLevel(): number;
|
|
676
676
|
/**
|
|
677
677
|
* This method will throw exceptions in debug mode or attempt to log the error as a console warning.
|
|
678
|
-
* @param severity
|
|
679
|
-
* @param message -
|
|
678
|
+
* @param severity - The severity of the log message
|
|
679
|
+
* @param message - The log message.
|
|
680
680
|
*/
|
|
681
681
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
682
682
|
/**
|
|
683
683
|
* This will write a debug message to the console if possible
|
|
684
|
-
* @param message -
|
|
684
|
+
* @param message - The debug message
|
|
685
685
|
*/
|
|
686
686
|
debugToConsole(message: string): void;
|
|
687
687
|
/**
|
|
688
688
|
* This will write a warning to the console if possible
|
|
689
|
-
* @param message
|
|
689
|
+
* @param message - The warning message
|
|
690
690
|
*/
|
|
691
691
|
warnToConsole(message: string): void;
|
|
692
692
|
/**
|
|
693
693
|
* This will write an error to the console if possible
|
|
694
|
-
* @param message -
|
|
694
|
+
* @param message - The warning message
|
|
695
695
|
*/
|
|
696
696
|
errorToConsole(message: string): void;
|
|
697
697
|
/**
|
|
@@ -700,8 +700,8 @@ export declare class DiagnosticLogger implements IDiagnosticLogger {
|
|
|
700
700
|
resetInternalMessageCount(): void;
|
|
701
701
|
/**
|
|
702
702
|
* Logs a message to the internal queue.
|
|
703
|
-
* @param severity -
|
|
704
|
-
* @param message -
|
|
703
|
+
* @param severity - The severity of the log message
|
|
704
|
+
* @param message - The message to log.
|
|
705
705
|
*/
|
|
706
706
|
logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
707
707
|
/**
|
|
@@ -930,9 +930,9 @@ export declare type EnumValue<E = any> = EnumCls<E>;
|
|
|
930
930
|
/**
|
|
931
931
|
* Removes an event handler for the specified event
|
|
932
932
|
* @param Object - to remove the event from
|
|
933
|
-
* @param eventName -
|
|
933
|
+
* @param eventName - The name of the event, with optional namespaces or just the namespaces,
|
|
934
934
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
935
|
-
* @param handlerRef -
|
|
935
|
+
* @param handlerRef - The callback function that needs to be removed from the given event, when using a
|
|
936
936
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
937
937
|
* otherwise this will only remove events with this specific handler.
|
|
938
938
|
* @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
|
|
@@ -1593,8 +1593,8 @@ export declare interface IConfiguration {
|
|
|
1593
1593
|
*/
|
|
1594
1594
|
enablePerfMgr?: boolean;
|
|
1595
1595
|
/**
|
|
1596
|
-
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and
|
|
1597
|
-
* is enabled, this enables you to override the default creation of a PerfManager() without needing to
|
|
1596
|
+
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and `enablePerfMgr`
|
|
1597
|
+
* is enabled, this enables you to override the default creation of a PerfManager() without needing to `setPerfMgr()`
|
|
1598
1598
|
* after initialization.
|
|
1599
1599
|
*/
|
|
1600
1600
|
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
|
|
@@ -1824,7 +1824,7 @@ export declare interface IDiagnosticLogger {
|
|
|
1824
1824
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
1825
1825
|
/**
|
|
1826
1826
|
* This will write a debug message to the console if possible
|
|
1827
|
-
* @param message -
|
|
1827
|
+
* @param message - The debug message
|
|
1828
1828
|
*/
|
|
1829
1829
|
debugToConsole?(message: string): void;
|
|
1830
1830
|
/**
|
|
@@ -2065,7 +2065,7 @@ export declare interface IFeatureOptInDetails {
|
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Identifies configuration override values when given feature is enabled
|
|
2067
2067
|
* NOTE: should use flat string for fields, for example, if you want to set value for extensionConfig.Ananlytics.disableAjaxTrackig in configurations,
|
|
2068
|
-
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: {["extensionConfig.Analytics.disableAjaxTrackig"]:1}
|
|
2068
|
+
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: \{["extensionConfig.Analytics.disableAjaxTrackig"]:1\}
|
|
2069
2069
|
* Default: undefined
|
|
2070
2070
|
*/
|
|
2071
2071
|
onCfg?: {
|
|
@@ -2074,7 +2074,7 @@ export declare interface IFeatureOptInDetails {
|
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Identifies configuration override values when given feature is disabled
|
|
2076
2076
|
* NOTE: should use flat string for fields, for example, if you want to set value for extensionConfig.Ananlytics.disableAjaxTrackig in configurations,
|
|
2077
|
-
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: {["extensionConfig.Analytics.disableAjaxTrackig"]:1}
|
|
2077
|
+
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: \{["extensionConfig.Analytics.disableAjaxTrackig"]:1\}
|
|
2078
2078
|
* Default: undefined
|
|
2079
2079
|
*/
|
|
2080
2080
|
offCfg?: {
|
|
@@ -2752,9 +2752,9 @@ export declare interface _ISendPostMgrConfig {
|
|
|
2752
2752
|
*/
|
|
2753
2753
|
disableCredentials?: boolean;
|
|
2754
2754
|
/**
|
|
2755
|
-
* Identifies if XMLHttpRequest or XDomainRequest (for IE
|
|
2755
|
+
* Identifies if `XMLHttpRequest` or `XDomainRequest` (for IE version before 9) should be used
|
|
2756
2756
|
* Default: false
|
|
2757
|
-
* @since
|
|
2757
|
+
* @since 3.1.1
|
|
2758
2758
|
*/
|
|
2759
2759
|
disableXhr?: boolean;
|
|
2760
2760
|
/**
|
|
@@ -3194,8 +3194,8 @@ export declare type LoggingSeverity = number | eLoggingSeverity;
|
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Logs a message to the internal queue.
|
|
3196
3196
|
* @param logger - The Diagnostic Logger instance to use.
|
|
3197
|
-
* @param severity
|
|
3198
|
-
* @param message -
|
|
3197
|
+
* @param severity - The severity of the log message
|
|
3198
|
+
* @param message - The message to log.
|
|
3199
3199
|
*/
|
|
3200
3200
|
export declare function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
3201
3201
|
|
|
@@ -3532,8 +3532,8 @@ export declare class ProcessTelemetryContext implements IProcessTelemetryContext
|
|
|
3532
3532
|
*
|
|
3533
3533
|
* Special ES3 Notes:
|
|
3534
3534
|
* Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the
|
|
3535
|
-
* properties of "referenced" object will work (target.context.newValue = 10
|
|
3536
|
-
* same object). ES3 Failures: assigning target.myProp = 3
|
|
3535
|
+
* properties of "referenced" object will work (target.context.newValue = 10 =\> will be reflected in the source.context as it's the
|
|
3536
|
+
* same object). ES3 Failures: assigning target.myProp = 3 -\> Won't change source.myProp = 3, likewise the reverse would also fail.
|
|
3537
3537
|
* @param target - The target object to be assigned with the source properties and functions
|
|
3538
3538
|
* @param source - The source object which will be assigned / called by setting / calling the targets proxies
|
|
3539
3539
|
* @param chkSet - An optional callback to determine whether a specific property/function should be proxied
|
|
@@ -3576,9 +3576,9 @@ export declare function randomValue(maxValue: number): number;
|
|
|
3576
3576
|
|
|
3577
3577
|
/**
|
|
3578
3578
|
* Trys to remove event handler(s) for the specified event/namespace to the window, body and document
|
|
3579
|
-
* @param eventName -
|
|
3579
|
+
* @param eventName - The name of the event, with optional namespaces or just the namespaces,
|
|
3580
3580
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
3581
|
-
* @param callback -
|
|
3581
|
+
* @param callback - The callback function that needs to be removed from the given event, when using a
|
|
3582
3582
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
3583
3583
|
* otherwise this will only remove events with this specific handler.
|
|
3584
3584
|
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
@@ -3856,8 +3856,8 @@ export { throwError }
|
|
|
3856
3856
|
* support minification as logger.throwInternal() will not compress the publish "throwInternal" used throughout
|
|
3857
3857
|
* the code.
|
|
3858
3858
|
* @param logger - The Diagnostic Logger instance to use.
|
|
3859
|
-
* @param severity -
|
|
3860
|
-
* @param message
|
|
3859
|
+
* @param severity - The severity of the log message
|
|
3860
|
+
* @param message - The log message.
|
|
3861
3861
|
*/
|
|
3862
3862
|
export declare function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
3863
3863
|
|
|
@@ -3907,7 +3907,7 @@ export declare function useXDomainRequest(): boolean | undefined;
|
|
|
3907
3907
|
/**
|
|
3908
3908
|
* This is a helper method which will call warnToConsole on the passed logger with the provided message.
|
|
3909
3909
|
* @param logger - The Diagnostic Logger instance to use.
|
|
3910
|
-
* @param message
|
|
3910
|
+
* @param message - The log message.
|
|
3911
3911
|
*/
|
|
3912
3912
|
export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
|
|
3913
3913
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.3.5-nightly3.2501-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.3.5-nightly3.2501-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -23,10 +23,10 @@ declare namespace ApplicationInsights {
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Trys to add an event handler for the specified event to the window, body and document
|
|
26
|
-
* @param eventName
|
|
27
|
-
* @param callback
|
|
26
|
+
* @param eventName - The name of the event
|
|
27
|
+
* @param callback - The callback function that needs to be executed for the given event
|
|
28
28
|
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
29
|
-
* @returns
|
|
29
|
+
* @returns - true if the handler was successfully added
|
|
30
30
|
*/
|
|
31
31
|
function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
|
|
32
32
|
|
|
@@ -225,7 +225,7 @@ declare namespace ApplicationInsights {
|
|
|
225
225
|
/**
|
|
226
226
|
* Watches and tracks changes for accesses to the current config, and if the accessed config changes the
|
|
227
227
|
* handler will be recalled.
|
|
228
|
-
* @param handler
|
|
228
|
+
* @param handler - The watcher handler to call when the config changes
|
|
229
229
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
230
230
|
*/
|
|
231
231
|
onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
|
|
@@ -788,7 +788,7 @@ declare namespace ApplicationInsights {
|
|
|
788
788
|
function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
|
|
789
789
|
|
|
790
790
|
/**
|
|
791
|
-
* Create an enum style object which has both the key
|
|
791
|
+
* Create an enum style object which has both the key \=\> value and value \=\> key mappings
|
|
792
792
|
* @param values - The values to populate on the new object
|
|
793
793
|
* @returns
|
|
794
794
|
*/
|
|
@@ -827,7 +827,7 @@ declare namespace ApplicationInsights {
|
|
|
827
827
|
function createUnloadHookContainer(): IUnloadHookContainer;
|
|
828
828
|
|
|
829
829
|
/**
|
|
830
|
-
* Create a 2 index map that maps an enum's key and value to the defined map value, X["key"]
|
|
830
|
+
* Create a 2 index map that maps an enum's key and value to the defined map value, X["key"] \=\> mapValue and X[0] \=\> mapValue.
|
|
831
831
|
* Generic values
|
|
832
832
|
* - E = the const enum type (typeof eRequestHeaders);
|
|
833
833
|
* - V = Identifies the valid values for the keys, this should include both the enum numeric and string key of the type. The
|
|
@@ -869,9 +869,9 @@ declare namespace ApplicationInsights {
|
|
|
869
869
|
/**
|
|
870
870
|
* Removes an event handler for the specified event
|
|
871
871
|
* @param Object - to remove the event from
|
|
872
|
-
* @param eventNameWithoutOn
|
|
872
|
+
* @param eventNameWithoutOn - The name of the event, with optional namespaces or just the namespaces,
|
|
873
873
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
874
|
-
* @param handlerRef -
|
|
874
|
+
* @param handlerRef - The callback function that needs to be removed from the given event, when using a
|
|
875
875
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
876
876
|
* otherwise this will only remove events with this specific handler.
|
|
877
877
|
* @param useCapture - [Optional] Defaults to false
|
|
@@ -888,28 +888,28 @@ declare namespace ApplicationInsights {
|
|
|
888
888
|
/**
|
|
889
889
|
* 0: OFF (default)
|
|
890
890
|
* 1: CRITICAL
|
|
891
|
-
* 2:
|
|
891
|
+
* 2: \>= WARNING
|
|
892
892
|
*/
|
|
893
893
|
consoleLoggingLevel(): number;
|
|
894
894
|
/**
|
|
895
895
|
* This method will throw exceptions in debug mode or attempt to log the error as a console warning.
|
|
896
|
-
* @param severity
|
|
897
|
-
* @param message -
|
|
896
|
+
* @param severity - The severity of the log message
|
|
897
|
+
* @param message - The log message.
|
|
898
898
|
*/
|
|
899
899
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
900
900
|
/**
|
|
901
901
|
* This will write a debug message to the console if possible
|
|
902
|
-
* @param message -
|
|
902
|
+
* @param message - The debug message
|
|
903
903
|
*/
|
|
904
904
|
debugToConsole(message: string): void;
|
|
905
905
|
/**
|
|
906
906
|
* This will write a warning to the console if possible
|
|
907
|
-
* @param message
|
|
907
|
+
* @param message - The warning message
|
|
908
908
|
*/
|
|
909
909
|
warnToConsole(message: string): void;
|
|
910
910
|
/**
|
|
911
911
|
* This will write an error to the console if possible
|
|
912
|
-
* @param message -
|
|
912
|
+
* @param message - The warning message
|
|
913
913
|
*/
|
|
914
914
|
errorToConsole(message: string): void;
|
|
915
915
|
/**
|
|
@@ -918,8 +918,8 @@ declare namespace ApplicationInsights {
|
|
|
918
918
|
resetInternalMessageCount(): void;
|
|
919
919
|
/**
|
|
920
920
|
* Logs a message to the internal queue.
|
|
921
|
-
* @param severity -
|
|
922
|
-
* @param message -
|
|
921
|
+
* @param severity - The severity of the log message
|
|
922
|
+
* @param message - The message to log.
|
|
923
923
|
*/
|
|
924
924
|
logInternalMessage(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
925
925
|
/**
|
|
@@ -1215,9 +1215,9 @@ declare namespace ApplicationInsights {
|
|
|
1215
1215
|
/**
|
|
1216
1216
|
* Removes an event handler for the specified event
|
|
1217
1217
|
* @param Object - to remove the event from
|
|
1218
|
-
* @param eventName -
|
|
1218
|
+
* @param eventName - The name of the event, with optional namespaces or just the namespaces,
|
|
1219
1219
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
1220
|
-
* @param handlerRef -
|
|
1220
|
+
* @param handlerRef - The callback function that needs to be removed from the given event, when using a
|
|
1221
1221
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
1222
1222
|
* otherwise this will only remove events with this specific handler.
|
|
1223
1223
|
* @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
|
|
@@ -2002,8 +2002,8 @@ declare namespace ApplicationInsights {
|
|
|
2002
2002
|
*/
|
|
2003
2003
|
enablePerfMgr?: boolean;
|
|
2004
2004
|
/**
|
|
2005
|
-
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and
|
|
2006
|
-
* is enabled, this enables you to override the default creation of a PerfManager() without needing to
|
|
2005
|
+
* [Optional] Callback function that will be called to create a the IPerfManager instance when required and `enablePerfMgr`
|
|
2006
|
+
* is enabled, this enables you to override the default creation of a PerfManager() without needing to `setPerfMgr()`
|
|
2007
2007
|
* after initialization.
|
|
2008
2008
|
*/
|
|
2009
2009
|
createPerfMgr?: (core: IAppInsightsCore, notificationManager: INotificationManager) => IPerfManager;
|
|
@@ -2233,7 +2233,7 @@ declare namespace ApplicationInsights {
|
|
|
2233
2233
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
2234
2234
|
/**
|
|
2235
2235
|
* This will write a debug message to the console if possible
|
|
2236
|
-
* @param message -
|
|
2236
|
+
* @param message - The debug message
|
|
2237
2237
|
*/
|
|
2238
2238
|
debugToConsole?(message: string): void;
|
|
2239
2239
|
/**
|
|
@@ -2474,7 +2474,7 @@ declare namespace ApplicationInsights {
|
|
|
2474
2474
|
/**
|
|
2475
2475
|
* Identifies configuration override values when given feature is enabled
|
|
2476
2476
|
* NOTE: should use flat string for fields, for example, if you want to set value for extensionConfig.Ananlytics.disableAjaxTrackig in configurations,
|
|
2477
|
-
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: {["extensionConfig.Analytics.disableAjaxTrackig"]:1}
|
|
2477
|
+
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: \{["extensionConfig.Analytics.disableAjaxTrackig"]:1\}
|
|
2478
2478
|
* Default: undefined
|
|
2479
2479
|
*/
|
|
2480
2480
|
onCfg?: {
|
|
@@ -2483,7 +2483,7 @@ declare namespace ApplicationInsights {
|
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Identifies configuration override values when given feature is disabled
|
|
2485
2485
|
* NOTE: should use flat string for fields, for example, if you want to set value for extensionConfig.Ananlytics.disableAjaxTrackig in configurations,
|
|
2486
|
-
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: {["extensionConfig.Analytics.disableAjaxTrackig"]:1}
|
|
2486
|
+
* you should use "extensionConfig.Ananlytics.disableAjaxTrackig" as field name: \{["extensionConfig.Analytics.disableAjaxTrackig"]:1\}
|
|
2487
2487
|
* Default: undefined
|
|
2488
2488
|
*/
|
|
2489
2489
|
offCfg?: {
|
|
@@ -3384,9 +3384,9 @@ declare namespace ApplicationInsights {
|
|
|
3384
3384
|
*/
|
|
3385
3385
|
disableCredentials?: boolean;
|
|
3386
3386
|
/**
|
|
3387
|
-
* Identifies if XMLHttpRequest or XDomainRequest (for IE
|
|
3387
|
+
* Identifies if `XMLHttpRequest` or `XDomainRequest` (for IE version before 9) should be used
|
|
3388
3388
|
* Default: false
|
|
3389
|
-
* @since
|
|
3389
|
+
* @since 3.1.1
|
|
3390
3390
|
*/
|
|
3391
3391
|
disableXhr?: boolean;
|
|
3392
3392
|
/**
|
|
@@ -4101,8 +4101,8 @@ declare namespace ApplicationInsights {
|
|
|
4101
4101
|
/**
|
|
4102
4102
|
* Logs a message to the internal queue.
|
|
4103
4103
|
* @param logger - The Diagnostic Logger instance to use.
|
|
4104
|
-
* @param severity
|
|
4105
|
-
* @param message -
|
|
4104
|
+
* @param severity - The severity of the log message
|
|
4105
|
+
* @param message - The message to log.
|
|
4106
4106
|
*/
|
|
4107
4107
|
function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
4108
4108
|
|
|
@@ -4579,8 +4579,8 @@ declare namespace ApplicationInsights {
|
|
|
4579
4579
|
*
|
|
4580
4580
|
* Special ES3 Notes:
|
|
4581
4581
|
* Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the
|
|
4582
|
-
* properties of "referenced" object will work (target.context.newValue = 10
|
|
4583
|
-
* same object). ES3 Failures: assigning target.myProp = 3
|
|
4582
|
+
* properties of "referenced" object will work (target.context.newValue = 10 =\> will be reflected in the source.context as it's the
|
|
4583
|
+
* same object). ES3 Failures: assigning target.myProp = 3 -\> Won't change source.myProp = 3, likewise the reverse would also fail.
|
|
4584
4584
|
* @param target - The target object to be assigned with the source properties and functions
|
|
4585
4585
|
* @param source - The source object which will be assigned / called by setting / calling the targets proxies
|
|
4586
4586
|
* @param chkSet - An optional callback to determine whether a specific property/function should be proxied
|
|
@@ -4630,9 +4630,9 @@ declare namespace ApplicationInsights {
|
|
|
4630
4630
|
|
|
4631
4631
|
/**
|
|
4632
4632
|
* Trys to remove event handler(s) for the specified event/namespace to the window, body and document
|
|
4633
|
-
* @param eventName -
|
|
4633
|
+
* @param eventName - The name of the event, with optional namespaces or just the namespaces,
|
|
4634
4634
|
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
4635
|
-
* @param callback -
|
|
4635
|
+
* @param callback - The callback function that needs to be removed from the given event, when using a
|
|
4636
4636
|
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
4637
4637
|
* otherwise this will only remove events with this specific handler.
|
|
4638
4638
|
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
@@ -4950,8 +4950,8 @@ declare namespace ApplicationInsights {
|
|
|
4950
4950
|
* support minification as logger.throwInternal() will not compress the publish "throwInternal" used throughout
|
|
4951
4951
|
* the code.
|
|
4952
4952
|
* @param logger - The Diagnostic Logger instance to use.
|
|
4953
|
-
* @param severity -
|
|
4954
|
-
* @param message
|
|
4953
|
+
* @param severity - The severity of the log message
|
|
4954
|
+
* @param message - The log message.
|
|
4955
4955
|
*/
|
|
4956
4956
|
function _throwInternal(logger: IDiagnosticLogger, severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
4957
4957
|
|
|
@@ -5001,7 +5001,7 @@ declare namespace ApplicationInsights {
|
|
|
5001
5001
|
/**
|
|
5002
5002
|
* This is a helper method which will call warnToConsole on the passed logger with the provided message.
|
|
5003
5003
|
* @param logger - The Diagnostic Logger instance to use.
|
|
5004
|
-
* @param message
|
|
5004
|
+
* @param message - The log message.
|
|
5005
5005
|
*/
|
|
5006
5006
|
function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
|
|
5007
5007
|
|