@microsoft/applicationinsights-core-js 3.0.0-beta.2303-11 → 3.0.0-beta.2304-09
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 +5477 -0
- package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.cjs.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.gbl.js +5481 -0
- package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.gbl.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.integrity.json +66 -0
- package/browser/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
- package/browser/es5/applicationinsights-core-js.js.map +1 -0
- package/browser/es5/applicationinsights-core-js.min.js +6 -0
- package/browser/es5/applicationinsights-core-js.min.js.map +1 -0
- package/dist/{applicationinsights-core-js.js → es5/applicationinsights-core-js.js} +259 -223
- package/dist/es5/applicationinsights-core-js.js.map +1 -0
- package/dist/es5/applicationinsights-core-js.min.js +6 -0
- package/dist/es5/applicationinsights-core-js.min.js.map +1 -0
- package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js +1 -1
- package/{dist-esm → dist-es5}/Config/ConfigDefaults.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicConfig.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicProperty.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicState.js +1 -1
- package/{dist-esm → dist-es5}/Config/DynamicSupport.js +1 -1
- package/dist-es5/Config/IConfigDefaults.js +8 -0
- package/dist-es5/Config/IDynamicConfigHandler.js +8 -0
- package/dist-es5/Config/IDynamicPropertyHandler.js +8 -0
- package/dist-es5/Config/IDynamicWatcher.js +8 -0
- package/dist-es5/Config/_IDynamicConfigHandlerState.js +6 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/AggregationError.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/CookieMgr.js +14 -8
- package/dist-es5/JavaScriptSDK/CookieMgr.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/{dist-esm → dist-es5}/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/RandomHelper.js +7 -5
- package/dist-es5/JavaScriptSDK/RandomHelper.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryInitializerPlugin.js +44 -38
- package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +6 -0
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +8 -0
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +6 -0
- package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +7 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +6 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +9 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +8 -0
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +8 -0
- package/{dist-esm → dist-es5}/__DynamicConstants.js +2 -2
- package/{dist-esm → dist-es5}/__DynamicConstants.js.map +1 -1
- package/{dist-esm → dist-es5}/applicationinsights-core-js.js +2 -2
- package/dist-es5/applicationinsights-core-js.js.map +1 -0
- package/package.json +15 -14
- package/tsconfig.json +5 -4
- package/types/applicationinsights-core-js.d.ts +3074 -58
- package/{dist/applicationinsights-core-js.d.ts → types/applicationinsights-core-js.namespaced.d.ts} +1 -4
- package/browser/applicationinsights-core-js.integrity.json +0 -26
- package/browser/applicationinsights-core-js.js.map +0 -1
- package/browser/applicationinsights-core-js.min.js +0 -6
- package/browser/applicationinsights-core-js.min.js.map +0 -1
- package/dist/applicationinsights-core-js.api.json +0 -25423
- package/dist/applicationinsights-core-js.api.md +0 -1374
- package/dist/applicationinsights-core-js.js.map +0 -1
- package/dist/applicationinsights-core-js.min.js +0 -6
- package/dist/applicationinsights-core-js.min.js.map +0 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +0 -3078
- package/dist-esm/Config/IConfigDefaults.js +0 -8
- package/dist-esm/Config/IDynamicConfigHandler.js +0 -8
- package/dist-esm/Config/IDynamicPropertyHandler.js +0 -8
- package/dist-esm/Config/IDynamicWatcher.js +0 -8
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +0 -6
- package/dist-esm/JavaScriptSDK/CookieMgr.js.map +0 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js.map +0 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +0 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +0 -6
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControlsHost.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +0 -7
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +0 -6
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +0 -9
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +0 -8
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +0 -8
- package/dist-esm/applicationinsights-core-js.js.map +0 -1
- package/types/Config/ConfigDefaultHelpers.d.ts +0 -47
- package/types/Config/ConfigDefaults.d.ts +0 -9
- package/types/Config/DynamicConfig.d.ts +0 -23
- package/types/Config/DynamicProperty.d.ts +0 -3
- package/types/Config/DynamicState.d.ts +0 -3
- package/types/Config/DynamicSupport.d.ts +0 -82
- package/types/Config/IConfigDefaults.d.ts +0 -63
- package/types/Config/IDynamicConfigHandler.d.ts +0 -69
- package/types/Config/IDynamicPropertyHandler.d.ts +0 -11
- package/types/Config/IDynamicWatcher.d.ts +0 -61
- package/types/Config/_IDynamicConfigHandlerState.d.ts +0 -52
- package/types/JavaScriptSDK/AggregationError.d.ts +0 -6
- package/types/JavaScriptSDK/AppInsightsCore.d.ts +0 -158
- package/types/JavaScriptSDK/BaseTelemetryPlugin.d.ts +0 -110
- package/types/JavaScriptSDK/Constants.d.ts +0 -1
- package/types/JavaScriptSDK/CookieMgr.d.ts +0 -15
- package/types/JavaScriptSDK/CoreUtils.d.ts +0 -13
- package/types/JavaScriptSDK/DataCacheHelper.d.ts +0 -13
- package/types/JavaScriptSDK/DbgExtensionUtils.d.ts +0 -5
- package/types/JavaScriptSDK/DiagnosticLogger.d.ts +0 -76
- package/types/JavaScriptSDK/EnvUtils.d.ts +0 -81
- package/types/JavaScriptSDK/EventHelpers.d.ts +0 -154
- package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -106
- package/types/JavaScriptSDK/InstrumentHooks.d.ts +0 -43
- package/types/JavaScriptSDK/InternalConstants.d.ts +0 -20
- package/types/JavaScriptSDK/NotificationManager.d.ts +0 -46
- package/types/JavaScriptSDK/PerfManager.d.ts +0 -93
- package/types/JavaScriptSDK/ProcessTelemetryContext.d.ts +0 -119
- package/types/JavaScriptSDK/RandomHelper.d.ts +0 -29
- package/types/JavaScriptSDK/TelemetryHelpers.d.ts +0 -38
- package/types/JavaScriptSDK/TelemetryInitializerPlugin.d.ts +0 -16
- package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +0 -8
- package/types/JavaScriptSDK/UnloadHookContainer.d.ts +0 -16
- package/types/JavaScriptSDK/W3cTraceParent.d.ts +0 -59
- package/types/JavaScriptSDK.Enums/EnumHelperFuncs.d.ts +0 -22
- package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +0 -34
- package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +0 -104
- package/types/JavaScriptSDK.Enums/SendRequestReason.d.ts +0 -45
- package/types/JavaScriptSDK.Enums/TelemetryUnloadReason.d.ts +0 -21
- package/types/JavaScriptSDK.Enums/TelemetryUpdateReason.d.ts +0 -21
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +0 -171
- package/types/JavaScriptSDK.Interfaces/IChannelControls.d.ts +0 -36
- package/types/JavaScriptSDK.Interfaces/IChannelControlsHost.d.ts +0 -9
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +0 -150
- package/types/JavaScriptSDK.Interfaces/ICookieMgr.d.ts +0 -97
- package/types/JavaScriptSDK.Interfaces/IDbgExtension.d.ts +0 -10
- package/types/JavaScriptSDK.Interfaces/IDiagnosticLogger.d.ts +0 -48
- package/types/JavaScriptSDK.Interfaces/IDistributedTraceContext.d.ts +0 -43
- package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +0 -81
- package/types/JavaScriptSDK.Interfaces/INotificationListener.d.ts +0 -32
- package/types/JavaScriptSDK.Interfaces/INotificationManager.d.ts +0 -43
- package/types/JavaScriptSDK.Interfaces/IPerfEvent.d.ts +0 -56
- package/types/JavaScriptSDK.Interfaces/IPerfManager.d.ts +0 -45
- package/types/JavaScriptSDK.Interfaces/IProcessTelemetryContext.d.ts +0 -129
- package/types/JavaScriptSDK.Interfaces/ITelemetryInitializers.d.ts +0 -14
- package/types/JavaScriptSDK.Interfaces/ITelemetryItem.d.ts +0 -51
- package/types/JavaScriptSDK.Interfaces/ITelemetryPlugin.d.ts +0 -80
- package/types/JavaScriptSDK.Interfaces/ITelemetryPluginChain.d.ts +0 -23
- package/types/JavaScriptSDK.Interfaces/ITelemetryUnloadState.d.ts +0 -6
- package/types/JavaScriptSDK.Interfaces/ITelemetryUpdateState.d.ts +0 -33
- package/types/JavaScriptSDK.Interfaces/ITraceParent.d.ts +0 -32
- package/types/JavaScriptSDK.Interfaces/IUnloadHook.d.ts +0 -18
- package/types/JavaScriptSDK.Interfaces/IUnloadableComponent.d.ts +0 -13
- package/types/__DynamicConstants.d.ts +0 -53
- package/types/tsdoc-metadata.json +0 -11
- /package/{dist-esm → dist-es5}/Config/ConfigDefaultHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/ConfigDefaults.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicConfig.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicProperty.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicState.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/DynamicSupport.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IConfigDefaults.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicConfigHandler.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicPropertyHandler.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/IDynamicWatcher.js.map +0 -0
- /package/{dist-esm → dist-es5}/Config/_IDynamicConfigHandlerState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/AppInsightsCore.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/BaseTelemetryPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/Constants.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/CoreUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/DbgExtensionUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/DiagnosticLogger.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/EnvUtils.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/EventHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/HelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/InstrumentHooks.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/InternalConstants.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/NotificationManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/PerfManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/ProcessTelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/TelemetryHelpers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHandlerContainer.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/UnloadHookContainer.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK/W3cTraceParent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EnumHelperFuncs.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/LoggingEnums.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/SendRequestReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUnloadReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Enums/TelemetryUpdateReason.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IAppInsightsCore.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControls.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IChannelControlsHost.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IConfiguration.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ICookieMgr.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDbgExtension.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDiagnosticLogger.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IDistributedTraceContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IInstrumentHooks.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationListener.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/INotificationManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfEvent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IPerfManager.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryInitializers.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryItem.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPlugin.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/ITraceParent.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadHook.js.map +0 -0
- /package/{dist-esm → dist-es5}/JavaScriptSDK.Interfaces/IUnloadableComponent.js.map +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enable the lookup of test mock objects if requested
|
|
3
|
-
* @param enabled
|
|
4
|
-
*/
|
|
5
|
-
export declare function setEnableEnvMocks(enabled: boolean): void;
|
|
6
|
-
/**
|
|
7
|
-
* Returns the global location object if it is present otherwise null.
|
|
8
|
-
* This helper is used to access the location object without causing an exception
|
|
9
|
-
* "Uncaught ReferenceError: location is not defined"
|
|
10
|
-
*/
|
|
11
|
-
export declare function getLocation(checkForMock?: boolean): Location | null;
|
|
12
|
-
/**
|
|
13
|
-
* Returns the global console object
|
|
14
|
-
*/
|
|
15
|
-
export declare function getConsole(): Console | null;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if JSON object is available, this is required as we support the API running without a
|
|
18
|
-
* window /document (eg. Node server, electron webworkers) and if we attempt to assign a history
|
|
19
|
-
* object to a local variable or pass as an argument an "Uncaught ReferenceError: JSON is not defined"
|
|
20
|
-
* exception will be thrown.
|
|
21
|
-
* Defined as a function to support lazy / late binding environments.
|
|
22
|
-
*/
|
|
23
|
-
export declare function hasJSON(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Returns the global JSON object if it is present otherwise null.
|
|
26
|
-
* This helper is used to access the JSON object without causing an exception
|
|
27
|
-
* "Uncaught ReferenceError: JSON is not defined"
|
|
28
|
-
*/
|
|
29
|
-
export declare function getJSON(): JSON | null;
|
|
30
|
-
/**
|
|
31
|
-
* Returns the crypto object if it is present otherwise null.
|
|
32
|
-
* This helper is used to access the crypto object from the current
|
|
33
|
-
* global instance which could be window or globalThis for a web worker
|
|
34
|
-
*/
|
|
35
|
-
export declare function getCrypto(): Crypto | null;
|
|
36
|
-
/**
|
|
37
|
-
* Returns the crypto object if it is present otherwise null.
|
|
38
|
-
* This helper is used to access the crypto object from the current
|
|
39
|
-
* global instance which could be window or globalThis for a web worker
|
|
40
|
-
*/
|
|
41
|
-
export declare function getMsCrypto(): Crypto | null;
|
|
42
|
-
/**
|
|
43
|
-
* Returns whether the environment is reporting that we are running in a React Native Environment
|
|
44
|
-
*/
|
|
45
|
-
export declare function isReactNative(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Identifies whether the current environment appears to be IE
|
|
48
|
-
*/
|
|
49
|
-
export declare function isIE(): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Gets IE version returning the document emulation mode if we are running on IE, or null otherwise
|
|
52
|
-
*/
|
|
53
|
-
export declare function getIEVersion(userAgentStr?: string): number;
|
|
54
|
-
export declare function isSafari(userAgentStr?: string): boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Checks if HTML5 Beacons are supported in the current environment.
|
|
57
|
-
* @returns True if supported, false otherwise.
|
|
58
|
-
*/
|
|
59
|
-
export declare function isBeaconsSupported(): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Checks if the Fetch API is supported in the current environment.
|
|
62
|
-
* @param withKeepAlive - [Optional] If True, check if fetch is available and it supports the keepalive feature, otherwise only check if fetch is supported
|
|
63
|
-
* @returns True if supported, otherwise false
|
|
64
|
-
*/
|
|
65
|
-
export declare function isFetchSupported(withKeepAlive?: boolean): boolean;
|
|
66
|
-
export declare function useXDomainRequest(): boolean | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* Checks if XMLHttpRequest is supported
|
|
69
|
-
* @returns True if supported, otherwise false
|
|
70
|
-
*/
|
|
71
|
-
export declare function isXhrSupported(): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Helper function to fetch the named meta-tag from the page.
|
|
74
|
-
* @param name
|
|
75
|
-
*/
|
|
76
|
-
export declare function findMetaTag(name: string): any;
|
|
77
|
-
/**
|
|
78
|
-
* Helper function to fetch the named server timing value from the page response (first navigation event).
|
|
79
|
-
* @param name
|
|
80
|
-
*/
|
|
81
|
-
export declare function findNamedServerTiming(name: string): any;
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
export interface _IRegisteredEvents {
|
|
2
|
-
name: string;
|
|
3
|
-
handler: any;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Get all of the registered events on the target object, this is primarily used for testing cleanup but may also be used by
|
|
7
|
-
* applications to remove their own events
|
|
8
|
-
* @param target - The EventTarget that has registered events
|
|
9
|
-
* @param eventName - [Optional] The name of the event to return the registered handlers and full name (with namespaces)
|
|
10
|
-
* @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
|
|
11
|
-
* if the eventName also includes a namespace the namespace(s) are merged into a single namespace
|
|
12
|
-
*/
|
|
13
|
-
export declare function __getRegisteredEvents(target: any, eventName?: string, evtNamespace?: string | string[]): _IRegisteredEvents[];
|
|
14
|
-
export declare function mergeEvtNamespace(theNamespace: string, namespaces?: string | string[] | null): string | string[];
|
|
15
|
-
/**
|
|
16
|
-
* Binds the specified function to an event, so that the function gets called whenever the event fires on the object
|
|
17
|
-
* @param obj - Object to add the event too.
|
|
18
|
-
* @param eventName - String that specifies any of the standard DHTML Events without "on" prefix, if may also include an optional (dot "." prefixed)
|
|
19
|
-
* namespaces "click" "click.mynamespace" in addition to specific namespaces.
|
|
20
|
-
* @param handlerRef - Pointer that specifies the function to call when event fires
|
|
21
|
-
* @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
|
|
22
|
-
* if the eventName also includes a namespace the namespace(s) are merged into a single namespace
|
|
23
|
-
* @param useCapture - [Optional] Defaults to false
|
|
24
|
-
* @returns True if the function was bound successfully to the event, otherwise false
|
|
25
|
-
*/
|
|
26
|
-
export declare function eventOn<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Removes an event handler for the specified event
|
|
29
|
-
* @param Object - to remove the event from
|
|
30
|
-
* @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,
|
|
31
|
-
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
32
|
-
* @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a
|
|
33
|
-
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
34
|
-
* otherwise this will only remove events with this specific handler.
|
|
35
|
-
* @param evtNamespace - [Optional] Additional namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace,
|
|
36
|
-
* if the eventName also includes a namespace the namespace(s) are merged into a single namespace
|
|
37
|
-
* @param useCapture - [Optional] Defaults to false
|
|
38
|
-
*/
|
|
39
|
-
export declare function eventOff<T>(target: T, eventName: string, handlerRef: any, evtNamespace?: string | string[] | null, useCapture?: boolean): void;
|
|
40
|
-
/**
|
|
41
|
-
* Binds the specified function to an event, so that the function gets called whenever the event fires on the object
|
|
42
|
-
* @param obj - Object to add the event too.
|
|
43
|
-
* @param eventNameWithoutOn - String that specifies any of the standard DHTML Events without "on" prefix and optional (dot "." prefixed) namespaces "click" "click.mynamespace".
|
|
44
|
-
* @param handlerRef - Pointer that specifies the function to call when event fires
|
|
45
|
-
* @param useCapture - [Optional] Defaults to false
|
|
46
|
-
* @returns True if the function was bound successfully to the event, otherwise false
|
|
47
|
-
*/
|
|
48
|
-
export declare function attachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Removes an event handler for the specified event
|
|
51
|
-
* @param Object - to remove the event from
|
|
52
|
-
* @param eventNameWithoutOn - {string} - The name of the event, with optional namespaces or just the namespaces,
|
|
53
|
-
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
54
|
-
* @param handlerRef - {any} - The callback function that needs to be removed from the given event, when using a
|
|
55
|
-
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
56
|
-
* otherwise this will only remove events with this specific handler.
|
|
57
|
-
* @param useCapture - [Optional] Defaults to false
|
|
58
|
-
*/
|
|
59
|
-
export declare function detachEvent(obj: any, eventNameWithoutOn: string, handlerRef: any, useCapture?: boolean): void;
|
|
60
|
-
/**
|
|
61
|
-
* Trys to add an event handler for the specified event to the window, body and document
|
|
62
|
-
* @param eventName - {string} - The name of the event
|
|
63
|
-
* @param callback - {any} - The callback function that needs to be executed for the given event
|
|
64
|
-
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
65
|
-
* @return {boolean} - true if the handler was successfully added
|
|
66
|
-
*/
|
|
67
|
-
export declare function addEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Trys to remove event handler(s) for the specified event/namespace to the window, body and document
|
|
70
|
-
* @param eventName - {string} - The name of the event, with optional namespaces or just the namespaces,
|
|
71
|
-
* such as "click", "click.mynamespace" or ".mynamespace"
|
|
72
|
-
* @param callback - {any} - - The callback function that needs to be removed from the given event, when using a
|
|
73
|
-
* namespace (with or without a qualifying event) this may be null to remove all previously attached event handlers
|
|
74
|
-
* otherwise this will only remove events with this specific handler.
|
|
75
|
-
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
76
|
-
*/
|
|
77
|
-
export declare function removeEventHandler(eventName: string, callback: any, evtNamespace?: string | string[] | null): void;
|
|
78
|
-
/**
|
|
79
|
-
* Bind the listener to the array of events
|
|
80
|
-
* @param events - An string array of event names to bind the listener to
|
|
81
|
-
* @param listener - The event callback to call when the event is triggered
|
|
82
|
-
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
|
|
83
|
-
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
84
|
-
* @returns true - when at least one of the events was registered otherwise false
|
|
85
|
-
*/
|
|
86
|
-
export declare function addEventListeners(events: string[], listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Remove the listener from the array of events
|
|
89
|
-
* @param events - An string array of event names to bind the listener to
|
|
90
|
-
* @param listener - The event callback to call when the event is triggered
|
|
91
|
-
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
92
|
-
*/
|
|
93
|
-
export declare function removeEventListeners(events: string[], listener: any, evtNamespace?: string | string[]): void;
|
|
94
|
-
/**
|
|
95
|
-
* Listen to the 'beforeunload', 'unload' and 'pagehide' events which indicates a page unload is occurring,
|
|
96
|
-
* this does NOT listen to the 'visibilitychange' event as while it does indicate that the page is being hidden
|
|
97
|
-
* it does not *necessarily* mean that the page is being completely unloaded, it can mean that the user is
|
|
98
|
-
* just navigating to a different Tab and may come back (without unloading the page). As such you may also
|
|
99
|
-
* need to listen to the 'addPageHideEventListener' and 'addPageShowEventListener' events.
|
|
100
|
-
* @param listener - The event callback to call when a page unload event is triggered
|
|
101
|
-
* @param excludeEvents - [Optional] An array of events that should not be hooked, unless no other events can be.
|
|
102
|
-
* @param evtNamespace - [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.
|
|
103
|
-
* @returns true - when at least one of the events was registered otherwise false
|
|
104
|
-
*/
|
|
105
|
-
export declare function addPageUnloadEventListener(listener: any, excludeEvents?: string[], evtNamespace?: string | string[]): boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Remove any matching 'beforeunload', 'unload' and 'pagehide' events that may have been added via addEventListener,
|
|
108
|
-
* addEventListeners, addPageUnloadEventListener or addPageHideEventListener.
|
|
109
|
-
* @param listener - The specific event callback to to be removed
|
|
110
|
-
* @param evtNamespace - [Optional] Namespace(s) uniquely identified and removed based on this namespace.
|
|
111
|
-
* @returns true - when at least one of the events was registered otherwise false
|
|
112
|
-
*/
|
|
113
|
-
export declare function removePageUnloadEventListener(listener: any, evtNamespace?: string | string[]): void;
|
|
114
|
-
/**
|
|
115
|
-
* Listen to the pagehide and visibility changing to 'hidden' events, because the 'visibilitychange' uses
|
|
116
|
-
* an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call
|
|
117
|
-
* removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.
|
|
118
|
-
* @param listener - The event callback to call when a page hide event is triggered
|
|
119
|
-
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
|
|
120
|
-
* @param evtNamespace - [Optional] A Namespace to append to the event listeners so they can be uniquely identified and removed
|
|
121
|
-
* based on this namespace. This call also adds an additional unique "pageshow" namespace to the events
|
|
122
|
-
* so that only the matching "removePageHideEventListener" can remove these events.
|
|
123
|
-
* Suggestion: pass as true if you are also calling addPageUnloadEventListener as that also hooks pagehide
|
|
124
|
-
* @returns true - when at least one of the events was registered otherwise false
|
|
125
|
-
*/
|
|
126
|
-
export declare function addPageHideEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Removes the pageHide event listeners added by addPageHideEventListener, because the 'visibilitychange' uses
|
|
129
|
-
* an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageHideEventListener
|
|
130
|
-
* as the remove ignores the listener argument for the 'visibilitychange' event.
|
|
131
|
-
* @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')
|
|
132
|
-
* @param evtNamespace - The unique namespace used when calling addPageShowEventListener
|
|
133
|
-
*/
|
|
134
|
-
export declare function removePageHideEventListener(listener: any, evtNamespace?: string | string[] | null): void;
|
|
135
|
-
/**
|
|
136
|
-
* Listen to the pageshow and visibility changing to 'visible' events, because the 'visibilitychange' uses
|
|
137
|
-
* an internal proxy to detect the visibility state you SHOULD use a unique namespace when if you plan to call
|
|
138
|
-
* removePageShowEventListener as the remove ignores the listener argument for the 'visibilitychange' event.
|
|
139
|
-
* @param listener - The event callback to call when a page is show event is triggered
|
|
140
|
-
* @param excludeEvents - [Optional] An array of events that should not be hooked (if possible), unless no other events can be.
|
|
141
|
-
* @param evtNamespace - [Optional/Recommended] A Namespace to append to the event listeners so they can be uniquely
|
|
142
|
-
* identified and removed based on this namespace. This call also adds an additional unique "pageshow" namespace to the events
|
|
143
|
-
* so that only the matching "removePageShowEventListener" can remove these events.
|
|
144
|
-
* @returns true - when at least one of the events was registered otherwise false
|
|
145
|
-
*/
|
|
146
|
-
export declare function addPageShowEventListener(listener: any, excludeEvents?: string[] | null, evtNamespace?: string | string[] | null): boolean;
|
|
147
|
-
/**
|
|
148
|
-
* Removes the pageShow event listeners added by addPageShowEventListener, because the 'visibilitychange' uses
|
|
149
|
-
* an internal proxy to detect the visibility state you SHOULD use a unique namespace when calling addPageShowEventListener
|
|
150
|
-
* as the remove ignores the listener argument for the 'visibilitychange' event.
|
|
151
|
-
* @param listener - The specific listener to remove for the 'pageshow' event only (ignored for 'visibilitychange')
|
|
152
|
-
* @param evtNamespace - The unique namespace used when calling addPageShowEventListener
|
|
153
|
-
*/
|
|
154
|
-
export declare function removePageShowEventListener(listener: any, evtNamespace?: string | string[] | null): void;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export declare let _getObjProto: (o: any) => any;
|
|
2
|
-
export declare function isNotUndefined<T>(value: T): value is T;
|
|
3
|
-
export declare function isNotNullOrUndefined<T>(value: T): value is T;
|
|
4
|
-
/**
|
|
5
|
-
* Validates that the string name conforms to the JS IdentifierName specification and if not
|
|
6
|
-
* normalizes the name so that it would. This method does not identify or change any keywords
|
|
7
|
-
* meaning that if you pass in a known keyword the same value will be returned.
|
|
8
|
-
* This is a simplified version
|
|
9
|
-
* @param name - The name to validate
|
|
10
|
-
*/
|
|
11
|
-
export declare function normalizeJsName(name: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* A simple wrapper (for minification support) to check if the value contains the search string.
|
|
14
|
-
* @param value - The string value to check for the existence of the search value
|
|
15
|
-
* @param search - The value search within the value
|
|
16
|
-
*/
|
|
17
|
-
export declare function strContains(value: string, search: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Convert a date to I.S.O. format in IE8
|
|
20
|
-
*/
|
|
21
|
-
export declare function toISOString(date: Date): string;
|
|
22
|
-
export declare const deepFreeze: <T>(obj: T) => T;
|
|
23
|
-
/**
|
|
24
|
-
* Returns the name of object if it's an Error. Otherwise, returns empty string.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getExceptionName(object: any): string;
|
|
27
|
-
/**
|
|
28
|
-
* Sets the provided value on the target instance using the field name when the provided chk function returns true, the chk
|
|
29
|
-
* function will only be called if the new value is no equal to the original value.
|
|
30
|
-
* @param target - The target object
|
|
31
|
-
* @param field - The key of the target
|
|
32
|
-
* @param value - The value to set
|
|
33
|
-
* @param valChk - [Optional] Callback to check the value that if supplied will be called check if the new value can be set
|
|
34
|
-
* @param srcChk - [Optional] Callback to check to original value that if supplied will be called if the new value should be set (if allowed)
|
|
35
|
-
* @returns The existing or new value, depending what was set
|
|
36
|
-
*/
|
|
37
|
-
export declare function setValue<T, K extends keyof T>(target: T, field: K, value: T[K], valChk?: ((value: T[K]) => boolean) | null, srcChk?: ((value: T[K]) => boolean) | null): T[K];
|
|
38
|
-
/**
|
|
39
|
-
* Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it
|
|
40
|
-
* @param target - The target object to return or set the default value
|
|
41
|
-
* @param field - The key for the field to set on the target
|
|
42
|
-
* @param defValue - [Optional] The value to set if not already present, when not provided a empty object will be added
|
|
43
|
-
*/
|
|
44
|
-
export declare function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
|
|
45
|
-
/**
|
|
46
|
-
* Effectively assigns all enumerable properties (not just own properties) and functions (including inherited prototype) from
|
|
47
|
-
* the source object to the target, it attempts to use proxy getters / setters (if possible) and proxy functions to avoid potential
|
|
48
|
-
* implementation issues by assigning prototype functions as instance ones
|
|
49
|
-
*
|
|
50
|
-
* This method is the primary method used to "update" the snippet proxy with the ultimate implementations.
|
|
51
|
-
*
|
|
52
|
-
* Special ES3 Notes:
|
|
53
|
-
* Updates (setting) of direct property values on the target or indirectly on the source object WILL NOT WORK PROPERLY, updates to the
|
|
54
|
-
* properties of "referenced" object will work (target.context.newValue = 10 => will be reflected in the source.context as it's the
|
|
55
|
-
* same object). ES3 Failures: assigning target.myProp = 3 -> Won't change source.myProp = 3, likewise the reverse would also fail.
|
|
56
|
-
* @param target - The target object to be assigned with the source properties and functions
|
|
57
|
-
* @param source - The source object which will be assigned / called by setting / calling the targets proxies
|
|
58
|
-
* @param chkSet - An optional callback to determine whether a specific property/function should be proxied
|
|
59
|
-
*/
|
|
60
|
-
export declare function proxyAssign<T, S>(target: T, source: S, chkSet?: (name: string, isFunc?: boolean, source?: S, target?: T) => boolean): T;
|
|
61
|
-
/**
|
|
62
|
-
* Creates a proxy function on the target which internally will call the source version with all arguments passed to the target method.
|
|
63
|
-
*
|
|
64
|
-
* @param target - The target object to be assigned with the source properties and functions
|
|
65
|
-
* @param name - The function name that will be added on the target
|
|
66
|
-
* @param source - The source object which will be assigned / called by setting / calling the targets proxies
|
|
67
|
-
* @param theFunc - The function name on the source that will be proxied on the target
|
|
68
|
-
* @param overwriteTarget - If `false` this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
|
|
69
|
-
*/
|
|
70
|
-
export declare function proxyFunctionAs<T, S>(target: T, name: string, source: S | (() => S), theFunc: (keyof S), overwriteTarget?: boolean): void;
|
|
71
|
-
/**
|
|
72
|
-
* Creates proxy functions on the target which internally will call the source version with all arguments passed to the target method.
|
|
73
|
-
*
|
|
74
|
-
* @param target - The target object to be assigned with the source properties and functions
|
|
75
|
-
* @param source - The source object which will be assigned / called by setting / calling the targets proxies
|
|
76
|
-
* @param functionsToProxy - An array of function names that will be proxied on the target
|
|
77
|
-
* @param overwriteTarget - If false this will not replace any pre-existing name otherwise (the default) it will overwrite any existing name
|
|
78
|
-
*/
|
|
79
|
-
export declare function proxyFunctions<T, S>(target: T, source: S | (() => S), functionsToProxy: (keyof S)[], overwriteTarget?: boolean): T;
|
|
80
|
-
/**
|
|
81
|
-
* Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults.
|
|
82
|
-
* Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance
|
|
83
|
-
* @param defaults - Simple helper
|
|
84
|
-
*/
|
|
85
|
-
export declare function createClassFromInterface<T>(defaults?: T): new () => T;
|
|
86
|
-
/**
|
|
87
|
-
* A helper function to assist with JIT performance for objects that have properties added / removed dynamically
|
|
88
|
-
* this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this
|
|
89
|
-
* function after you have finished "updating" the object, calling this within loops reduces or defeats the benefits.
|
|
90
|
-
* This helps when iterating using for..in, objKeys() and objForEach()
|
|
91
|
-
* @param theObject - The object to be optimized if possible
|
|
92
|
-
*/
|
|
93
|
-
export declare function optimizeObject<T>(theObject: T): T;
|
|
94
|
-
/**
|
|
95
|
-
* Pass in the objects to merge as arguments, this will only "merge" (extend) properties that are owned by the object.
|
|
96
|
-
* It will NOT merge inherited or non-enumerable properties.
|
|
97
|
-
* @param obj1 - object to merge. Set this argument to 'true' for a deep extend.
|
|
98
|
-
* @param obj2 - object to merge.
|
|
99
|
-
* @param obj3 - object to merge.
|
|
100
|
-
* @param obj4 - object to merge.
|
|
101
|
-
* @param obj5 - object to merge.
|
|
102
|
-
* @returns The extended first object.
|
|
103
|
-
*/
|
|
104
|
-
export declare function objExtend<T2, T3, T4, T5, T6>(deepExtend?: boolean, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T2 & T3 & T4 & T5 & T6;
|
|
105
|
-
export declare function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: T1, obj2?: T2, obj3?: T3, obj4?: T4, obj5?: T5, obj6?: T6): T1 & T2 & T3 & T4 & T5 & T6;
|
|
106
|
-
export declare const asString: (value: any) => string;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IInstrumentHook, IInstrumentHooksCallbacks } from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
2
|
-
/**
|
|
3
|
-
* Intercept the named prototype functions for the target class / object
|
|
4
|
-
* @param target - The target object
|
|
5
|
-
* @param funcName - The function name
|
|
6
|
-
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
7
|
-
*/
|
|
8
|
-
export declare function InstrumentProto(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks): IInstrumentHook;
|
|
9
|
-
/**
|
|
10
|
-
* Intercept the named prototype functions for the target class / object
|
|
11
|
-
* @param target - The target object
|
|
12
|
-
* @param funcNames - The function names to intercept and call
|
|
13
|
-
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
14
|
-
*/
|
|
15
|
-
export declare function InstrumentProtos(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks): IInstrumentHook[];
|
|
16
|
-
/**
|
|
17
|
-
* Intercept the named prototype functions for the target class / object
|
|
18
|
-
* @param target - The target object
|
|
19
|
-
* @param funcName - The function name
|
|
20
|
-
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
21
|
-
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
22
|
-
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
23
|
-
*/
|
|
24
|
-
export declare function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
25
|
-
/**
|
|
26
|
-
* Intercept the named functions for the target class / object
|
|
27
|
-
* @param target - The target object
|
|
28
|
-
* @param funcNames - The function names to intercept and call
|
|
29
|
-
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
30
|
-
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
31
|
-
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
32
|
-
*/
|
|
33
|
-
export declare function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
|
|
34
|
-
/**
|
|
35
|
-
* Add an instrumentation hook to the provided named "event" for the target class / object, this doesn't check whether the
|
|
36
|
-
* named "event" is in fact a function and just assigns the instrumentation hook to the target[evtName]
|
|
37
|
-
* @param target - The target object
|
|
38
|
-
* @param evtName - The name of the event
|
|
39
|
-
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
40
|
-
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
41
|
-
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
42
|
-
*/
|
|
43
|
-
export declare function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const UNDEFINED_VALUE: any;
|
|
2
|
-
export declare const STR_EMPTY = "";
|
|
3
|
-
export declare const STR_CHANNELS = "channels";
|
|
4
|
-
export declare const STR_CORE = "core";
|
|
5
|
-
export declare const STR_CREATE_PERF_MGR = "createPerfMgr";
|
|
6
|
-
export declare const STR_DISABLED = "disabled";
|
|
7
|
-
export declare const STR_EXTENSION_CONFIG = "extensionConfig";
|
|
8
|
-
export declare const STR_EXTENSIONS = "extensions";
|
|
9
|
-
export declare const STR_PROCESS_TELEMETRY = "processTelemetry";
|
|
10
|
-
export declare const STR_PRIORITY = "priority";
|
|
11
|
-
export declare const STR_EVENTS_SENT = "eventsSent";
|
|
12
|
-
export declare const STR_EVENTS_DISCARDED = "eventsDiscarded";
|
|
13
|
-
export declare const STR_EVENTS_SEND_REQUEST = "eventsSendRequest";
|
|
14
|
-
export declare const STR_PERF_EVENT = "perfEvent";
|
|
15
|
-
export declare const STR_ERROR_TO_CONSOLE = "errorToConsole";
|
|
16
|
-
export declare const STR_WARN_TO_CONSOLE = "warnToConsole";
|
|
17
|
-
export declare const STR_GET_PERF_MGR = "getPerfMgr";
|
|
18
|
-
export declare const STR_DOMAIN = "domain";
|
|
19
|
-
export declare const STR_PATH = "path";
|
|
20
|
-
export declare const STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
2
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
3
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
4
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
5
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
6
|
-
/**
|
|
7
|
-
* Class to manage sending notifications to all the listeners.
|
|
8
|
-
*/
|
|
9
|
-
export declare class NotificationManager implements INotificationManager {
|
|
10
|
-
listeners: INotificationListener[];
|
|
11
|
-
constructor(config?: IConfiguration);
|
|
12
|
-
/**
|
|
13
|
-
* Adds a notification listener.
|
|
14
|
-
* @param listener - The notification listener to be added.
|
|
15
|
-
*/
|
|
16
|
-
addNotificationListener(listener: INotificationListener): void;
|
|
17
|
-
/**
|
|
18
|
-
* Removes all instances of the listener.
|
|
19
|
-
* @param listener - AWTNotificationListener to remove.
|
|
20
|
-
*/
|
|
21
|
-
removeNotificationListener(listener: INotificationListener): void;
|
|
22
|
-
/**
|
|
23
|
-
* Notification for events sent.
|
|
24
|
-
* @param events - The array of events that have been sent.
|
|
25
|
-
*/
|
|
26
|
-
eventsSent(events: ITelemetryItem[]): void;
|
|
27
|
-
/**
|
|
28
|
-
* Notification for events being discarded.
|
|
29
|
-
* @param events - The array of events that have been discarded by the SDK.
|
|
30
|
-
* @param reason - The reason for which the SDK discarded the events. The EventsDiscardedReason
|
|
31
|
-
* constant should be used to check the different values.
|
|
32
|
-
*/
|
|
33
|
-
eventsDiscarded(events: ITelemetryItem[], reason: number): void;
|
|
34
|
-
/**
|
|
35
|
-
* [Optional] A function called when the events have been requested to be sent to the sever.
|
|
36
|
-
* @param sendReason - The reason why the event batch is being sent.
|
|
37
|
-
* @param isAsync - A flag which identifies whether the requests are being sent in an async or sync manner.
|
|
38
|
-
*/
|
|
39
|
-
eventsSendRequest?(sendReason: number, isAsync: boolean): void;
|
|
40
|
-
/**
|
|
41
|
-
* [Optional] This event is sent if you have enabled perf events, they are primarily used to track internal performance testing and debugging
|
|
42
|
-
* the event can be displayed via the debug plugin extension.
|
|
43
|
-
* @param perfEvent
|
|
44
|
-
*/
|
|
45
|
-
perfEvent?(perfEvent: IPerfEvent): void;
|
|
46
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
2
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
3
|
-
import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
4
|
-
export declare class PerfEvent implements IPerfEvent {
|
|
5
|
-
static ParentContextKey: string;
|
|
6
|
-
static ChildrenContextKey: string;
|
|
7
|
-
/**
|
|
8
|
-
* The name of the event
|
|
9
|
-
*/
|
|
10
|
-
name: string;
|
|
11
|
-
/**
|
|
12
|
-
* The start time of the event in ms
|
|
13
|
-
*/
|
|
14
|
-
start: number;
|
|
15
|
-
/**
|
|
16
|
-
* The payload (contents) of the perfEvent, may be null or only set after the event has completed depending on
|
|
17
|
-
* the runtime environment.
|
|
18
|
-
*/
|
|
19
|
-
payload: any;
|
|
20
|
-
/**
|
|
21
|
-
* Is this occurring from an asynchronous event
|
|
22
|
-
*/
|
|
23
|
-
isAsync: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Identifies the total inclusive time spent for this event, including the time spent for child events,
|
|
26
|
-
* this will be undefined until the event is completed
|
|
27
|
-
*/
|
|
28
|
-
time?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Identifies the exclusive time spent in for this event (not including child events),
|
|
31
|
-
* this will be undefined until the event is completed.
|
|
32
|
-
*/
|
|
33
|
-
exTime?: number;
|
|
34
|
-
/**
|
|
35
|
-
* Identifies whether this event is a child event of a parent
|
|
36
|
-
*/
|
|
37
|
-
isChildEvt: () => boolean;
|
|
38
|
-
getCtx?: (key: string) => any | null | undefined;
|
|
39
|
-
setCtx?: (key: string, value: any) => void;
|
|
40
|
-
complete: () => void;
|
|
41
|
-
constructor(name: string, payloadDetails: () => any, isAsync: boolean);
|
|
42
|
-
}
|
|
43
|
-
export declare class PerfManager implements IPerfManager {
|
|
44
|
-
/**
|
|
45
|
-
* General bucket used for execution context set and retrieved via setCtx() and getCtx.
|
|
46
|
-
* Defined as private so it can be visualized via the DebugPlugin
|
|
47
|
-
*/
|
|
48
|
-
private ctx;
|
|
49
|
-
constructor(manager?: INotificationManager);
|
|
50
|
-
/**
|
|
51
|
-
* Create a new event and start timing, the manager may return null/undefined to indicate that it does not
|
|
52
|
-
* want to monitor this source event.
|
|
53
|
-
* @param src - The source name of the event
|
|
54
|
-
* @param payloadDetails - An optional callback function to fetch the payload details for the event.
|
|
55
|
-
* @param isAsync - Is the event occurring from a async event
|
|
56
|
-
*/
|
|
57
|
-
create(src: string, payload?: any, isAsync?: boolean): IPerfEvent | null | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Complete the perfEvent and fire any notifications.
|
|
60
|
-
* @param perfEvent - Fire the event which will also complete the passed event
|
|
61
|
-
*/
|
|
62
|
-
fire(perfEvent: IPerfEvent): void;
|
|
63
|
-
/**
|
|
64
|
-
* Set an execution context value
|
|
65
|
-
* @param key - The context key name
|
|
66
|
-
* @param value - The value
|
|
67
|
-
*/
|
|
68
|
-
setCtx(key: string, value: any): void;
|
|
69
|
-
/**
|
|
70
|
-
* Get the execution context value
|
|
71
|
-
* @param key - The context key
|
|
72
|
-
*/
|
|
73
|
-
getCtx(key: string): any;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Helper function to wrap a function with a perf event
|
|
77
|
-
* @param mgrSource - The Performance Manager or a Performance provider source (may be null)
|
|
78
|
-
* @param getSource - The callback to create the source name for the event (if perf monitoring is enabled)
|
|
79
|
-
* @param func - The function to call and measure
|
|
80
|
-
* @param details - A function to return the payload details
|
|
81
|
-
* @param isAsync - Is the event / function being call asynchronously or synchronously
|
|
82
|
-
*/
|
|
83
|
-
export declare function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
|
|
84
|
-
/**
|
|
85
|
-
* Set the global performance manager to use when there is no core instance or it has not been initialized yet.
|
|
86
|
-
* @param perfManager - The IPerfManager instance to use when no performance manager is supplied.
|
|
87
|
-
*/
|
|
88
|
-
export declare function setGblPerfMgr(perfManager: IPerfManager): void;
|
|
89
|
-
/**
|
|
90
|
-
* Get the current global performance manager that will be used with no performance manager is supplied.
|
|
91
|
-
* @returns - The current default manager
|
|
92
|
-
*/
|
|
93
|
-
export declare function getGblPerfMgr(): IPerfManager;
|