@microsoft/applicationinsights-core-js 3.0.0-beta.2302-01 → 3.0.0-beta.2302-02
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/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +65 -28
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +9 -9
- package/dist/applicationinsights-core-js.d.ts +1 -1
- package/dist/applicationinsights-core-js.js +65 -28
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +1 -1
- package/dist-esm/Config/ConfigDefaults.js +1 -1
- package/dist-esm/Config/DynamicConfig.js +1 -1
- package/dist-esm/Config/DynamicProperty.js +1 -1
- package/dist-esm/Config/DynamicState.js +1 -1
- package/dist-esm/Config/DynamicSupport.js +1 -1
- package/dist-esm/Config/IConfigDefaults.js +1 -1
- package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
- package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-esm/Config/IDynamicWatcher.js +1 -1
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/Constants.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +4 -4
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +4 -4
- package/src/JavaScriptSDK/AggregationError.ts +6 -6
- package/src/JavaScriptSDK/AppInsightsCore.ts +55 -55
- package/src/JavaScriptSDK/BaseTelemetryPlugin.ts +31 -31
- package/src/JavaScriptSDK/CookieMgr.ts +19 -19
- package/src/JavaScriptSDK/CoreUtils.ts +9 -9
- package/src/JavaScriptSDK/DataCacheHelper.ts +9 -9
- package/src/JavaScriptSDK/DbgExtensionUtils.ts +10 -10
- package/src/JavaScriptSDK/DiagnosticLogger.ts +16 -16
- package/src/JavaScriptSDK/EnvUtils.ts +10 -10
- package/src/JavaScriptSDK/EventHelpers.ts +7 -7
- package/src/JavaScriptSDK/HelperFuncs.ts +10 -10
- package/src/JavaScriptSDK/InstrumentHooks.ts +11 -11
- package/src/JavaScriptSDK/NotificationManager.ts +13 -13
- package/src/JavaScriptSDK/PerfManager.ts +10 -10
- package/src/JavaScriptSDK/ProcessTelemetryContext.ts +30 -30
- package/src/JavaScriptSDK/RandomHelper.ts +7 -7
- package/src/JavaScriptSDK/TelemetryHelpers.ts +18 -18
- package/src/JavaScriptSDK/TelemetryInitializerPlugin.ts +16 -16
- package/src/JavaScriptSDK/UnloadHandlerContainer.ts +10 -10
- package/src/JavaScriptSDK/W3cTraceParent.ts +7 -7
- package/types/Config/IConfigDefaults.d.ts +3 -3
- package/types/Config/IDynamicWatcher.d.ts +1 -1
- package/types/JavaScriptSDK/UnloadHandlerContainer.d.ts +1 -1
- package/types/JavaScriptSDK.Enums/EventsDiscardedReason.d.ts +1 -1
- package/types/JavaScriptSDK.Enums/LoggingEnums.d.ts +2 -2
- package/types/JavaScriptSDK.Interfaces/IInstrumentHooks.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-core-js",
|
|
3
3
|
"author": "Microsoft Application Insights Team",
|
|
4
|
-
"version": "3.0.0-beta.2302-
|
|
4
|
+
"version": "3.0.0-beta.2302-02",
|
|
5
5
|
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
6
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
7
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@microsoft/api-extractor": "^7.18.1",
|
|
45
45
|
"grunt": "^1.5.3",
|
|
46
46
|
"grunt-cli": "^1.4.3",
|
|
47
|
-
"grunt-contrib-qunit": "^
|
|
47
|
+
"grunt-contrib-qunit": "^6.2.1",
|
|
48
48
|
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
49
49
|
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
50
50
|
"globby": "^11.0.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@rollup/plugin-replace": "^2.3.3",
|
|
56
56
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
57
57
|
"rollup": "^2.32.0",
|
|
58
|
-
"typescript": "^4.3
|
|
58
|
+
"typescript": "^4.9.3",
|
|
59
59
|
"tslib": "^2.0.0",
|
|
60
60
|
"qunit": "^2.11.2",
|
|
61
61
|
"sinon": "^7.3.1"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
68
68
|
"@microsoft/dynamicproto-js": "^1.1.7",
|
|
69
|
-
"@nevware21/ts-utils": "^0.
|
|
69
|
+
"@nevware21/ts-utils": "^0.7.0"
|
|
70
70
|
},
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"tag": "beta"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { CustomErrorConstructor, arrForEach, createCustomError, dumpObj } from "@nevware21/ts-utils";
|
|
5
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { CustomErrorConstructor, arrForEach, createCustomError, dumpObj } from "@nevware21/ts-utils";
|
|
5
|
+
|
|
6
6
|
let aggregationErrorType: AggregationError;
|
|
7
7
|
|
|
8
8
|
interface AggregationError extends CustomErrorConstructor {
|
|
@@ -33,4 +33,4 @@ export function throwAggregationError(message: string, sourceErrors: any[]): nev
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
throw new aggregationErrorType(message, sourceErrors || []);
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
-
import {
|
|
7
|
-
ITimerHandler, arrAppend, arrForEach, arrIndexOf, deepExtend, hasDocument, isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze,
|
|
8
|
-
objDefineProp, objForEachKey, objFreeze, objHasOwn, scheduleInterval, scheduleTimeout, throwError
|
|
9
|
-
} from "@nevware21/ts-utils";
|
|
10
|
-
import { createDynamicConfig, onConfigChange } from "../Config/DynamicConfig";
|
|
11
|
-
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
12
|
-
import { IDynamicConfigHandler, _IInternalDynamicConfigHandler } from "../Config/IDynamicConfigHandler";
|
|
13
|
-
import { IWatchDetails, WatcherFunction } from "../Config/IDynamicWatcher";
|
|
14
|
-
import { eEventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";
|
|
15
|
-
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
16
|
-
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
17
|
-
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
18
|
-
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
19
|
-
import { IAppInsightsCore, ILoadedPlugin } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
20
|
-
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
21
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
22
|
-
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
23
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
24
|
-
import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
|
|
25
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
26
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
27
|
-
import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
28
|
-
import { IProcessTelemetryContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
29
|
-
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "../JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
30
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
31
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
32
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
33
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
34
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
35
|
-
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
36
|
-
import { ChannelControllerPriority } from "./Constants";
|
|
37
|
-
import { createCookieMgr } from "./CookieMgr";
|
|
38
|
-
import { createUniqueNamespace } from "./DataCacheHelper";
|
|
39
|
-
import { getDebugListener } from "./DbgExtensionUtils";
|
|
40
|
-
import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
|
|
41
|
-
import { getSetValue, proxyFunctionAs, proxyFunctions, toISOString } from "./HelperFuncs";
|
|
42
|
-
import {
|
|
43
|
-
STR_CHANNELS, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EMPTY, STR_EXTENSIONS, STR_EXTENSION_CONFIG, UNDEFINED_VALUE
|
|
44
|
-
} from "./InternalConstants";
|
|
45
|
-
import { NotificationManager } from "./NotificationManager";
|
|
46
|
-
import { PerfManager, doPerf, getGblPerfMgr } from "./PerfManager";
|
|
47
|
-
import {
|
|
48
|
-
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain
|
|
49
|
-
} from "./ProcessTelemetryContext";
|
|
50
|
-
import { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from "./TelemetryHelpers";
|
|
51
|
-
import { TelemetryInitializerPlugin } from "./TelemetryInitializerPlugin";
|
|
52
|
-
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
53
|
-
import { IUnloadHookContainer, createUnloadHookContainer } from "./UnloadHookContainer";
|
|
54
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
+
import {
|
|
7
|
+
ITimerHandler, arrAppend, arrForEach, arrIndexOf, deepExtend, hasDocument, isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze,
|
|
8
|
+
objDefineProp, objForEachKey, objFreeze, objHasOwn, scheduleInterval, scheduleTimeout, throwError
|
|
9
|
+
} from "@nevware21/ts-utils";
|
|
10
|
+
import { createDynamicConfig, onConfigChange } from "../Config/DynamicConfig";
|
|
11
|
+
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
12
|
+
import { IDynamicConfigHandler, _IInternalDynamicConfigHandler } from "../Config/IDynamicConfigHandler";
|
|
13
|
+
import { IWatchDetails, WatcherFunction } from "../Config/IDynamicWatcher";
|
|
14
|
+
import { eEventsDiscardedReason } from "../JavaScriptSDK.Enums/EventsDiscardedReason";
|
|
15
|
+
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
16
|
+
import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
|
|
17
|
+
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
18
|
+
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
19
|
+
import { IAppInsightsCore, ILoadedPlugin } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
20
|
+
import { IChannelControls } from "../JavaScriptSDK.Interfaces/IChannelControls";
|
|
21
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
22
|
+
import { ICookieMgr } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
23
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
24
|
+
import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
|
|
25
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
26
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
27
|
+
import { IPerfManager } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
28
|
+
import { IProcessTelemetryContext, IProcessTelemetryUpdateContext } from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
29
|
+
import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "../JavaScriptSDK.Interfaces/ITelemetryInitializers";
|
|
30
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
31
|
+
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
32
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
33
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
34
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
35
|
+
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
36
|
+
import { ChannelControllerPriority } from "./Constants";
|
|
37
|
+
import { createCookieMgr } from "./CookieMgr";
|
|
38
|
+
import { createUniqueNamespace } from "./DataCacheHelper";
|
|
39
|
+
import { getDebugListener } from "./DbgExtensionUtils";
|
|
40
|
+
import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
|
|
41
|
+
import { getSetValue, proxyFunctionAs, proxyFunctions, toISOString } from "./HelperFuncs";
|
|
42
|
+
import {
|
|
43
|
+
STR_CHANNELS, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EMPTY, STR_EXTENSIONS, STR_EXTENSION_CONFIG, UNDEFINED_VALUE
|
|
44
|
+
} from "./InternalConstants";
|
|
45
|
+
import { NotificationManager } from "./NotificationManager";
|
|
46
|
+
import { PerfManager, doPerf, getGblPerfMgr } from "./PerfManager";
|
|
47
|
+
import {
|
|
48
|
+
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain
|
|
49
|
+
} from "./ProcessTelemetryContext";
|
|
50
|
+
import { _getPluginState, createDistributedTraceContext, initializePlugins, sortPlugins } from "./TelemetryHelpers";
|
|
51
|
+
import { TelemetryInitializerPlugin } from "./TelemetryInitializerPlugin";
|
|
52
|
+
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
53
|
+
import { IUnloadHookContainer, createUnloadHookContainer } from "./UnloadHookContainer";
|
|
54
|
+
|
|
55
55
|
const strValidationError = "Plugins must provide initialize method";
|
|
56
56
|
const strNotificationManager = "_notificationManager";
|
|
57
57
|
const strSdkUnloadingError = "SDK is still unloading...";
|
|
@@ -1319,4 +1319,4 @@ export class AppInsightsCore implements IAppInsightsCore {
|
|
|
1319
1319
|
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
|
|
1320
1320
|
return false;
|
|
1321
1321
|
}
|
|
1322
|
-
}
|
|
1322
|
+
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
-
import { isFunction, objDefine } from "@nevware21/ts-utils";
|
|
7
|
-
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
8
|
-
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
9
|
-
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
10
|
-
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
11
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
12
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
13
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
14
|
-
import {
|
|
15
|
-
IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
16
|
-
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
17
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
18
|
-
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
19
|
-
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
20
|
-
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
21
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
22
|
-
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
23
|
-
import { isNotNullOrUndefined, proxyFunctionAs } from "./HelperFuncs";
|
|
24
|
-
import { STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
25
|
-
import {
|
|
26
|
-
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext
|
|
27
|
-
} from "./ProcessTelemetryContext";
|
|
28
|
-
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
29
|
-
import { IUnloadHookContainer, createUnloadHookContainer } from "./UnloadHookContainer";
|
|
30
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
6
|
+
import { isFunction, objDefine } from "@nevware21/ts-utils";
|
|
7
|
+
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
8
|
+
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
9
|
+
import { TelemetryUnloadReason } from "../JavaScriptSDK.Enums/TelemetryUnloadReason";
|
|
10
|
+
import { TelemetryUpdateReason } from "../JavaScriptSDK.Enums/TelemetryUpdateReason";
|
|
11
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
12
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
13
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
14
|
+
import {
|
|
15
|
+
IProcessTelemetryContext, IProcessTelemetryUnloadContext, IProcessTelemetryUpdateContext
|
|
16
|
+
} from "../JavaScriptSDK.Interfaces/IProcessTelemetryContext";
|
|
17
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
18
|
+
import { IPlugin, ITelemetryPlugin } from "../JavaScriptSDK.Interfaces/ITelemetryPlugin";
|
|
19
|
+
import { ITelemetryPluginChain } from "../JavaScriptSDK.Interfaces/ITelemetryPluginChain";
|
|
20
|
+
import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
|
|
21
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
22
|
+
import { ILegacyUnloadHook, IUnloadHook } from "../JavaScriptSDK.Interfaces/IUnloadHook";
|
|
23
|
+
import { isNotNullOrUndefined, proxyFunctionAs } from "./HelperFuncs";
|
|
24
|
+
import { STR_EXTENSION_CONFIG } from "./InternalConstants";
|
|
25
|
+
import {
|
|
26
|
+
createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext
|
|
27
|
+
} from "./ProcessTelemetryContext";
|
|
28
|
+
import { IUnloadHandlerContainer, UnloadHandler, createUnloadHandlerContainer } from "./UnloadHandlerContainer";
|
|
29
|
+
import { IUnloadHookContainer, createUnloadHookContainer } from "./UnloadHookContainer";
|
|
30
|
+
|
|
31
31
|
let strGetPlugin = "getPlugin";
|
|
32
32
|
|
|
33
33
|
const defaultValues: IConfigDefaults<IConfiguration> = {
|
|
@@ -340,4 +340,4 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
340
340
|
protected _addHook(hooks: IUnloadHook | IUnloadHook[] | Iterator<IUnloadHook> | ILegacyUnloadHook | ILegacyUnloadHook[] | Iterator<ILegacyUnloadHook>): void {
|
|
341
341
|
// @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
|
|
342
342
|
}
|
|
343
|
-
}
|
|
343
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
4
|
-
arrForEach, arrIndexOf, dumpObj, getDocument, getNavigator, isArray, isFunction, isNullOrUndefined, isString, isTruthy, isUndefined,
|
|
5
|
-
objDeepFreeze, objForEachKey, strEndsWith, strIndexOf, strLeft, strSubstring, strTrim, utcNow
|
|
6
|
-
} from "@nevware21/ts-utils";
|
|
7
|
-
import { createDynamicConfig, onConfigChange } from "../Config/DynamicConfig";
|
|
8
|
-
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
9
|
-
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
10
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
11
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
12
|
-
import { ICookieMgr, ICookieMgrConfig } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
13
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
14
|
-
import { _throwInternal } from "./DiagnosticLogger";
|
|
15
|
-
import { getLocation, isIE } from "./EnvUtils";
|
|
16
|
-
import { getExceptionName, isNotNullOrUndefined, setValue, strContains } from "./HelperFuncs";
|
|
17
|
-
import { STR_DOMAIN, STR_EMPTY, STR_PATH, UNDEFINED_VALUE } from "./InternalConstants";
|
|
18
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import {
|
|
4
|
+
arrForEach, arrIndexOf, dumpObj, getDocument, getNavigator, isArray, isFunction, isNullOrUndefined, isString, isTruthy, isUndefined,
|
|
5
|
+
objDeepFreeze, objForEachKey, strEndsWith, strIndexOf, strLeft, strSubstring, strTrim, utcNow
|
|
6
|
+
} from "@nevware21/ts-utils";
|
|
7
|
+
import { createDynamicConfig, onConfigChange } from "../Config/DynamicConfig";
|
|
8
|
+
import { IConfigDefaults } from "../Config/IConfigDefaults";
|
|
9
|
+
import { _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
10
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
11
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
12
|
+
import { ICookieMgr, ICookieMgrConfig } from "../JavaScriptSDK.Interfaces/ICookieMgr";
|
|
13
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
14
|
+
import { _throwInternal } from "./DiagnosticLogger";
|
|
15
|
+
import { getLocation, isIE } from "./EnvUtils";
|
|
16
|
+
import { getExceptionName, isNotNullOrUndefined, setValue, strContains } from "./HelperFuncs";
|
|
17
|
+
import { STR_DOMAIN, STR_EMPTY, STR_PATH, UNDEFINED_VALUE } from "./InternalConstants";
|
|
18
|
+
|
|
19
19
|
const strToGMTString = "toGMTString";
|
|
20
20
|
const strToUTCString = "toUTCString";
|
|
21
21
|
const strCookie = "cookie";
|
|
@@ -445,4 +445,4 @@ export function uaDisallowsSameSiteNone(userAgent: string) {
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
return false;
|
|
448
|
-
}
|
|
448
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
import { strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import { strSubstr, strSubstring } from "@nevware21/ts-utils";
|
|
6
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
-
import { random32 } from "./RandomHelper";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
import { strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import { strSubstr, strSubstring } from "@nevware21/ts-utils";
|
|
6
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
+
import { random32 } from "./RandomHelper";
|
|
8
|
+
|
|
9
9
|
// Added to help with minfication
|
|
10
10
|
export const Undefined = strShimUndefined;
|
|
11
11
|
|
|
@@ -55,4 +55,4 @@ export function generateW3CId(): string {
|
|
|
55
55
|
// "Set the two most significant bits (bits 6 and 7) of the clock_seq_hi_and_reserved to zero and one, respectively"
|
|
56
56
|
const clockSequenceHi = hexValues[8 + (random32() & 0x03) | 0];
|
|
57
57
|
return strSubstr(oct, 0, 8) + strSubstr(oct, 9, 4) + "4" + strSubstr(oct, 13, 3) + clockSequenceHi +strSubstr(oct, 16, 3) + strSubstr(oct, 19, 12);
|
|
58
|
-
}
|
|
58
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { ObjDefineProperty } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import { normalizeJsName } from "./HelperFuncs";
|
|
6
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
-
import { newId } from "./RandomHelper";
|
|
8
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { ObjDefineProperty } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import { normalizeJsName } from "./HelperFuncs";
|
|
6
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
7
|
+
import { newId } from "./RandomHelper";
|
|
8
|
+
|
|
9
9
|
const _objDefineProperty = ObjDefineProperty;
|
|
10
10
|
|
|
11
11
|
const version = "#version#";
|
|
@@ -104,4 +104,4 @@ export function createElmNodeData(name?: string) {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
return data;
|
|
107
|
-
}
|
|
107
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { getInst } from "@nevware21/ts-utils";
|
|
5
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
-
import { IDbgExtension } from "../JavaScriptSDK.Interfaces/IDbgExtension";
|
|
7
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
8
|
-
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
9
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { getInst } from "@nevware21/ts-utils";
|
|
5
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
6
|
+
import { IDbgExtension } from "../JavaScriptSDK.Interfaces/IDbgExtension";
|
|
7
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
8
|
+
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
9
|
+
|
|
10
10
|
const listenerFuncs = [ STR_EVENTS_SENT, STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_PERF_EVENT ];
|
|
11
11
|
|
|
12
12
|
let _aiNamespace: any = null;
|
|
@@ -53,4 +53,4 @@ export function getDebugListener(config: IConfiguration): INotificationListener
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return _debugListener;
|
|
56
|
-
}
|
|
56
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict"
|
|
4
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
-
import { dumpObj, isFunction, isUndefined } from "@nevware21/ts-utils";
|
|
6
|
-
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
7
|
-
import { LoggingSeverity, _InternalMessageId, _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
8
|
-
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
9
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
-
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
11
|
-
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
12
|
-
import { getDebugExt } from "./DbgExtensionUtils";
|
|
13
|
-
import { getConsole, getJSON, hasJSON } from "./EnvUtils";
|
|
14
|
-
import { STR_EMPTY, STR_ERROR_TO_CONSOLE, STR_WARN_TO_CONSOLE } from "./InternalConstants";
|
|
15
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict"
|
|
4
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
5
|
+
import { dumpObj, isFunction, isUndefined } from "@nevware21/ts-utils";
|
|
6
|
+
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
7
|
+
import { LoggingSeverity, _InternalMessageId, _eInternalMessageId, eLoggingSeverity } from "../JavaScriptSDK.Enums/LoggingEnums";
|
|
8
|
+
import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
|
|
9
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
10
|
+
import { IDiagnosticLogger } from "../JavaScriptSDK.Interfaces/IDiagnosticLogger";
|
|
11
|
+
import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
|
|
12
|
+
import { getDebugExt } from "./DbgExtensionUtils";
|
|
13
|
+
import { getConsole, getJSON, hasJSON } from "./EnvUtils";
|
|
14
|
+
import { STR_EMPTY, STR_ERROR_TO_CONSOLE, STR_WARN_TO_CONSOLE } from "./InternalConstants";
|
|
15
|
+
|
|
16
16
|
/**
|
|
17
17
|
* For user non actionable traces use AI Internal prefix.
|
|
18
18
|
*/
|
|
@@ -377,4 +377,4 @@ export function _warnToConsole(logger: IDiagnosticLogger, message: string) {
|
|
|
377
377
|
*/
|
|
378
378
|
export function _logInternalMessage(logger: IDiagnosticLogger, severity: LoggingSeverity, message: _InternalLogMessage) {
|
|
379
379
|
_getLogger(logger).logInternalMessage(severity, message);
|
|
380
|
-
}
|
|
380
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
import { strShimObject, strShimPrototype, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
6
|
-
import { getDocument, getInst, getNavigator, getPerformance, hasNavigator, isString, isUndefined, strIndexOf } from "@nevware21/ts-utils";
|
|
7
|
-
import { strContains } from "./HelperFuncs";
|
|
8
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
9
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
import { strShimObject, strShimPrototype, strShimUndefined } from "@microsoft/applicationinsights-shims";
|
|
6
|
+
import { getDocument, getInst, getNavigator, getPerformance, hasNavigator, isString, isUndefined, strIndexOf } from "@nevware21/ts-utils";
|
|
7
|
+
import { strContains } from "./HelperFuncs";
|
|
8
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
9
|
+
|
|
10
10
|
// TypeScript removed this interface so we need to declare the global so we can check for it's existence.
|
|
11
11
|
declare var XDomainRequest: any;
|
|
12
12
|
|
|
@@ -309,4 +309,4 @@ export function findNamedServerTiming(name: string): any {
|
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
return value;
|
|
312
|
-
}
|
|
312
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { arrForEach, arrIndexOf, getDocument, getWindow, isArray, objForEachKey, objKeys } from "@nevware21/ts-utils";
|
|
4
|
-
import { createElmNodeData, createUniqueNamespace } from "./DataCacheHelper";
|
|
5
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
6
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { arrForEach, arrIndexOf, getDocument, getWindow, isArray, objForEachKey, objKeys } from "@nevware21/ts-utils";
|
|
4
|
+
import { createElmNodeData, createUniqueNamespace } from "./DataCacheHelper";
|
|
5
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
6
|
+
|
|
7
7
|
// Added to help with minfication
|
|
8
8
|
const strOnPrefix = "on";
|
|
9
9
|
const strAttachEvent = "attachEvent";
|
|
@@ -547,4 +547,4 @@ export function removePageShowEventListener(listener: any, evtNamespace?: string
|
|
|
547
547
|
let newNamespaces = mergeEvtNamespace(strPageShowNamespace, evtNamespace);
|
|
548
548
|
removeEventListeners([strPageShow], listener, newNamespaces);
|
|
549
549
|
removeEventListeners([strVisibilityChangeEvt], null, newNamespaces);
|
|
550
|
-
}
|
|
550
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import { ObjAssign, ObjClass } from "@microsoft/applicationinsights-shims";
|
|
4
|
-
import {
|
|
5
|
-
arrForEach, asString as asString21, isArray, isBoolean, isError, isFunction, isNullOrUndefined, isObject, isPlainObject, isString,
|
|
6
|
-
isUndefined, objDeepFreeze, objDefineAccessors, objForEachKey, objHasOwn, strIndexOf
|
|
7
|
-
} from "@nevware21/ts-utils";
|
|
8
|
-
import { STR_EMPTY } from "./InternalConstants";
|
|
9
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { ObjAssign, ObjClass } from "@microsoft/applicationinsights-shims";
|
|
4
|
+
import {
|
|
5
|
+
arrForEach, asString as asString21, isArray, isBoolean, isError, isFunction, isNullOrUndefined, isObject, isPlainObject, isString,
|
|
6
|
+
isUndefined, objDeepFreeze, objDefineAccessors, objForEachKey, objHasOwn, strIndexOf
|
|
7
|
+
} from "@nevware21/ts-utils";
|
|
8
|
+
import { STR_EMPTY } from "./InternalConstants";
|
|
9
|
+
|
|
10
10
|
// RESTRICT and AVOID circular dependencies you should not import other contained modules or export the contents of this file directly
|
|
11
11
|
|
|
12
12
|
// Added to help with minification
|
|
@@ -359,4 +359,4 @@ export function objExtend<T1, T2, T3, T4, T5, T6>(obj1?: T1 | any, obj2?: T2, ob
|
|
|
359
359
|
return extended;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
export const asString = asString21;
|
|
362
|
+
export const asString = asString21;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
|
|
5
|
-
import { getInst, objHasOwnProperty } from "@nevware21/ts-utils";
|
|
6
|
-
import {
|
|
7
|
-
IInstrumentCallDetails, IInstrumentHook, IInstrumentHooks, IInstrumentHooksCallbacks, InstrumentorHooksCallback
|
|
8
|
-
} from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
9
|
-
import { _getObjProto } from "./HelperFuncs";
|
|
10
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import { strShimFunction, strShimPrototype } from "@microsoft/applicationinsights-shims";
|
|
5
|
+
import { getInst, objHasOwnProperty } from "@nevware21/ts-utils";
|
|
6
|
+
import {
|
|
7
|
+
IInstrumentCallDetails, IInstrumentHook, IInstrumentHooks, IInstrumentHooksCallbacks, InstrumentorHooksCallback
|
|
8
|
+
} from "../JavaScriptSDK.Interfaces/IInstrumentHooks";
|
|
9
|
+
import { _getObjProto } from "./HelperFuncs";
|
|
10
|
+
|
|
11
11
|
const aiInstrumentHooks = "_aiHooks";
|
|
12
12
|
|
|
13
13
|
const enum CallbackType {
|
|
@@ -274,4 +274,4 @@ export function InstrumentEvent(target: any, evtName: string, callbacks: IInstru
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
return null;
|
|
277
|
-
}
|
|
277
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
-
import { arrForEach, arrIndexOf, scheduleTimeout } from "@nevware21/ts-utils";
|
|
5
|
-
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
6
|
-
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
7
|
-
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
8
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
9
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
10
|
-
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
11
|
-
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
12
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
+
import { arrForEach, arrIndexOf, scheduleTimeout } from "@nevware21/ts-utils";
|
|
5
|
+
import { createDynamicConfig } from "../Config/DynamicConfig";
|
|
6
|
+
import { IConfiguration } from "../JavaScriptSDK.Interfaces/IConfiguration";
|
|
7
|
+
import { INotificationListener } from "../JavaScriptSDK.Interfaces/INotificationListener";
|
|
8
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
9
|
+
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
10
|
+
import { ITelemetryItem } from "../JavaScriptSDK.Interfaces/ITelemetryItem";
|
|
11
|
+
import { STR_EVENTS_DISCARDED, STR_EVENTS_SEND_REQUEST, STR_EVENTS_SENT, STR_PERF_EVENT } from "./InternalConstants";
|
|
12
|
+
|
|
13
13
|
const defaultValues = {
|
|
14
14
|
perfEvtsSendAll: false
|
|
15
15
|
};
|
|
@@ -162,4 +162,4 @@ export class NotificationManager implements INotificationManager {
|
|
|
162
162
|
* @param perfEvent
|
|
163
163
|
*/
|
|
164
164
|
perfEvent?(perfEvent: IPerfEvent): void;
|
|
165
|
-
}
|
|
165
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
-
import { isArray, isFunction, objDefineAccessors, utcNow } from "@nevware21/ts-utils";
|
|
5
|
-
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
6
|
-
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
7
|
-
import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
8
|
-
import { STR_GET_PERF_MGR } from "./InternalConstants";
|
|
9
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
4
|
+
import { isArray, isFunction, objDefineAccessors, utcNow } from "@nevware21/ts-utils";
|
|
5
|
+
import { INotificationManager } from "../JavaScriptSDK.Interfaces/INotificationManager";
|
|
6
|
+
import { IPerfEvent } from "../JavaScriptSDK.Interfaces/IPerfEvent";
|
|
7
|
+
import { IPerfManager, IPerfManagerProvider } from "../JavaScriptSDK.Interfaces/IPerfManager";
|
|
8
|
+
import { STR_GET_PERF_MGR } from "./InternalConstants";
|
|
9
|
+
|
|
10
10
|
const strExecutionContextKey = "ctx";
|
|
11
11
|
const strParentContextKey = "ParentContextKey";
|
|
12
12
|
const strChildrenContextKey = "ChildrenContextKey";
|
|
@@ -285,4 +285,4 @@ export function setGblPerfMgr(perfManager: IPerfManager) {
|
|
|
285
285
|
*/
|
|
286
286
|
export function getGblPerfMgr(): IPerfManager {
|
|
287
287
|
return _defaultPerfManager;
|
|
288
|
-
}
|
|
288
|
+
}
|