@microsoft/applicationinsights-core-js 3.0.2-nightly3.2305-09 → 3.0.2-nightly3.2305-12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/es5/applicationinsights-core-js.cjs.js +152 -70
- package/browser/es5/applicationinsights-core-js.cjs.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.cjs.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.cjs.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.js +154 -72
- package/browser/es5/applicationinsights-core-js.gbl.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.gbl.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.gbl.min.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.integrity.json +25 -25
- package/browser/es5/applicationinsights-core-js.js +154 -72
- package/browser/es5/applicationinsights-core-js.js.map +1 -1
- package/browser/es5/applicationinsights-core-js.min.js +2 -2
- package/browser/es5/applicationinsights-core-js.min.js.map +1 -1
- package/dist/es5/applicationinsights-core-js.js +152 -70
- package/dist/es5/applicationinsights-core-js.js.map +1 -1
- package/dist/es5/applicationinsights-core-js.min.js +2 -2
- package/dist/es5/applicationinsights-core-js.min.js.map +1 -1
- package/dist-es5/Config/ConfigDefaultHelpers.js +17 -5
- package/dist-es5/Config/ConfigDefaultHelpers.js.map +1 -1
- package/dist-es5/Config/ConfigDefaults.js +9 -2
- package/dist-es5/Config/ConfigDefaults.js.map +1 -1
- package/dist-es5/Config/DynamicConfig.js +24 -9
- package/dist-es5/Config/DynamicConfig.js.map +1 -1
- package/dist-es5/Config/DynamicProperty.js +82 -34
- package/dist-es5/Config/DynamicProperty.js.map +1 -1
- package/dist-es5/Config/DynamicState.js +7 -5
- package/dist-es5/Config/DynamicState.js.map +1 -1
- package/dist-es5/Config/DynamicSupport.js +4 -4
- package/dist-es5/Config/DynamicSupport.js.map +1 -1
- package/dist-es5/Config/IConfigDefaults.js +1 -1
- package/dist-es5/Config/IDynamicConfigHandler.js +1 -1
- package/dist-es5/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-es5/Config/IDynamicWatcher.js +1 -1
- package/dist-es5/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-es5/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-es5/JavaScriptSDK/AppInsightsCore.js +17 -18
- package/dist-es5/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-es5/JavaScriptSDK/AsyncUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK/Constants.js +1 -1
- package/dist-es5/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-es5/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-es5/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-es5/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/DiagnosticLogger.js +22 -25
- package/dist-es5/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
- package/dist-es5/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-es5/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-es5/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-es5/JavaScriptSDK/InstrumentHooks.js +1 -1
- package/dist-es5/JavaScriptSDK/InternalConstants.js +1 -3
- package/dist-es5/JavaScriptSDK/InternalConstants.js.map +1 -1
- package/dist-es5/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-es5/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-es5/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-es5/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-es5/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-es5/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-es5/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/dist-es5/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/LoggingEnums.js +3 -2
- package/dist-es5/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
- package/dist-es5/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IChannelControlsHost.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
- package/dist-es5/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-es5/__DynamicConstants.js +9 -6
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-core-js.js +2 -2
- package/dist-es5/applicationinsights-core-js.js.map +1 -1
- package/package.json +1 -1
- package/types/applicationinsights-core-js.d.ts +73 -16
- package/types/applicationinsights-core-js.namespaced.d.ts +73 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.2-nightly3.2305-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.2-nightly3.2305-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -12,19 +12,22 @@
|
|
|
12
12
|
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
13
13
|
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
14
|
export var _DYN_TO_LOWER_CASE = "toLowerCase"; // Count: 9
|
|
15
|
+
export var _DYN_BLK_VAL = "blkVal"; // Count: 5
|
|
15
16
|
export var _DYN_LENGTH = "length"; // Count: 42
|
|
16
17
|
export var _DYN_RD_ONLY = "rdOnly"; // Count: 4
|
|
17
18
|
export var _DYN_NOTIFY = "notify"; // Count: 4
|
|
18
|
-
export var
|
|
19
|
+
export var _DYN_WARN_TO_CONSOLE = "warnToConsole"; // Count: 4
|
|
20
|
+
export var _DYN_THROW_INTERNAL = "throwInternal"; // Count: 5
|
|
19
21
|
export var _DYN_SET_DF = "setDf"; // Count: 6
|
|
20
22
|
export var _DYN_WATCH = "watch"; // Count: 9
|
|
21
|
-
export var _DYN_LOGGER = "logger"; // Count:
|
|
23
|
+
export var _DYN_LOGGER = "logger"; // Count: 21
|
|
22
24
|
export var _DYN_APPLY = "apply"; // Count: 7
|
|
23
|
-
export var _DYN_PUSH = "push"; // Count:
|
|
25
|
+
export var _DYN_PUSH = "push"; // Count: 31
|
|
24
26
|
export var _DYN_SPLICE = "splice"; // Count: 8
|
|
27
|
+
export var _DYN_HDLR = "hdlr"; // Count: 6
|
|
25
28
|
export var _DYN_CANCEL = "cancel"; // Count: 5
|
|
26
29
|
export var _DYN_INITIALIZE = "initialize"; // Count: 4
|
|
27
|
-
export var _DYN_IDENTIFIER = "identifier"; // Count:
|
|
30
|
+
export var _DYN_IDENTIFIER = "identifier"; // Count: 8
|
|
28
31
|
export var _DYN_IS_INITIALIZED = "isInitialized"; // Count: 10
|
|
29
32
|
export var _DYN_GET_PLUGIN = "getPlugin"; // Count: 6
|
|
30
33
|
export var _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs"; // Count: 2
|
|
@@ -39,7 +42,7 @@ export var _DYN_ENABLED = "enabled"; // Count: 6
|
|
|
39
42
|
export var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs"; // Count: 2
|
|
40
43
|
export var _DYN_UNLOAD = "unload"; // Count: 9
|
|
41
44
|
export var _DYN_ON_COMPLETE = "onComplete"; // Count: 5
|
|
42
|
-
export var _DYN_VERSION = "version"; // Count:
|
|
45
|
+
export var _DYN_VERSION = "version"; // Count: 6
|
|
43
46
|
export var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole"; // Count: 2
|
|
44
47
|
export var _DYN_CREATE_NEW = "createNew"; // Count: 7
|
|
45
48
|
export var _DYN_TEARDOWN = "teardown"; // Count: 9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 9\r\nexport var _DYN_LENGTH = \"length\"; // Count: 42\r\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\r\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\r\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count:
|
|
1
|
+
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 9\r\nexport var _DYN_BLK_VAL = \"blkVal\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 42\r\nexport var _DYN_RD_ONLY = \"rdOnly\"; // Count: 4\r\nexport var _DYN_NOTIFY = \"notify\"; // Count: 4\r\nexport var _DYN_WARN_TO_CONSOLE = \"warnToConsole\"; // Count: 4\r\nexport var _DYN_THROW_INTERNAL = \"throwInternal\"; // Count: 5\r\nexport var _DYN_SET_DF = \"setDf\"; // Count: 6\r\nexport var _DYN_WATCH = \"watch\"; // Count: 9\r\nexport var _DYN_LOGGER = \"logger\"; // Count: 21\r\nexport var _DYN_APPLY = \"apply\"; // Count: 7\r\nexport var _DYN_PUSH = \"push\"; // Count: 31\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 8\r\nexport var _DYN_HDLR = \"hdlr\"; // Count: 6\r\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 4\r\nexport var _DYN_IDENTIFIER = \"identifier\"; // Count: 8\r\nexport var _DYN_IS_INITIALIZED = \"isInitialized\"; // Count: 10\r\nexport var _DYN_GET_PLUGIN = \"getPlugin\"; // Count: 6\r\nexport var _DYN_POLL_INTERNAL_LOGS = \"pollInternalLogs\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 11\r\nexport var _DYN_TIME = \"time\"; // Count: 6\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 15\r\nexport var _DYN_GET_PROCESS_TEL_CONT0 = \"getProcessTelContext\"; // Count: 2\r\nexport var _DYN_GET_NOTIFY_MGR = \"getNotifyMgr\"; // Count: 5\r\nexport var _DYN_ADD_NOTIFICATION_LIS1 = \"addNotificationListener\"; // Count: 4\r\nexport var _DYN_REMOVE_NOTIFICATION_2 = \"removeNotificationListener\"; // Count: 4\r\nexport var _DYN_ENABLED = \"enabled\"; // Count: 6\r\nexport var _DYN_STOP_POLLING_INTERNA3 = \"stopPollingInternalLogs\"; // Count: 2\r\nexport var _DYN_UNLOAD = \"unload\"; // Count: 9\r\nexport var _DYN_ON_COMPLETE = \"onComplete\"; // Count: 5\r\nexport var _DYN_VERSION = \"version\"; // Count: 6\r\nexport var _DYN_LOGGING_LEVEL_CONSOL4 = \"loggingLevelConsole\"; // Count: 2\r\nexport var _DYN_CREATE_NEW = \"createNew\"; // Count: 7\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 9\r\nexport var _DYN_MESSAGE_ID = \"messageId\"; // Count: 4\r\nexport var _DYN_MESSAGE = \"message\"; // Count: 6\r\nexport var _DYN_IS_ASYNC = \"isAsync\"; // Count: 6\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 10\r\nexport var _DYN__DO_TEARDOWN = \"_doTeardown\"; // Count: 4\r\nexport var _DYN_UPDATE = \"update\"; // Count: 6\r\nexport var _DYN_GET_NEXT = \"getNext\"; // Count: 12\r\nexport var _DYN_SET_NEXT_PLUGIN = \"setNextPlugin\"; // Count: 5\r\nexport var _DYN_USER_AGENT = \"userAgent\"; // Count: 5\r\nexport var _DYN_SPLIT = \"split\"; // Count: 5\r\nexport var _DYN_NODE_TYPE = \"nodeType\"; // Count: 3\r\nexport var _DYN_REPLACE = \"replace\"; // Count: 8\r\nexport var _DYN_LOG_INTERNAL_MESSAGE = \"logInternalMessage\"; // Count: 2\r\nexport var _DYN_TYPE = \"type\"; // Count: 14\r\nexport var _DYN_HANDLER = \"handler\"; // Count: 5\r\nexport var _DYN_IS_CHILD_EVT = \"isChildEvt\"; // Count: 3\r\nexport var _DYN_GET_CTX = \"getCtx\"; // Count: 6\r\nexport var _DYN_SET_CTX = \"setCtx\"; // Count: 10\r\nexport var _DYN_COMPLETE = \"complete\"; // Count: 3\r\nexport var _DYN_TRACE_ID = \"traceId\"; // Count: 5\r\nexport var _DYN_SPAN_ID = \"spanId\"; // Count: 5\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 6\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.2-nightly3.2305-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.2-nightly3.2305-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
export { MinChannelPriorty } from "./JavaScriptSDK.Interfaces/IChannelControls";
|
|
@@ -33,5 +33,5 @@ export { createUnloadHookContainer } from "./JavaScriptSDK/UnloadHookContainer";
|
|
|
33
33
|
export { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "./JavaScriptSDK/W3cTraceParent";
|
|
34
34
|
export { createDynamicConfig, onConfigChange } from "./Config/DynamicConfig";
|
|
35
35
|
export { getDynamicConfigHandler, blockDynamicConversion, forceDynamicConversion } from "./Config/DynamicSupport";
|
|
36
|
-
export { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet } from "./Config/ConfigDefaultHelpers";
|
|
36
|
+
export { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet, cfgDfBlockPropValue } from "./Config/ConfigDefaultHelpers";
|
|
37
37
|
//# sourceMappingURL=applicationinsights-core-js.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { throwAggregationError } from \"./JavaScriptSDK/AggregationError\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { Undefined, newGuid, generateW3CId } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { runTargetUnload, doUnloadAll } from \"./JavaScriptSDK/AsyncUtils\";\r\nexport { normalizeJsName, toISOString, getExceptionName, strContains, setValue, getSetValue, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objExtend } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { isArray, isTypeof, isUndefined, isNullOrUndefined, objHasOwnProperty as hasOwnProperty, isObject, isFunction, strEndsWith, strStartsWith, isDate, isError, isString, isNumber, isBoolean, arrForEach, arrIndexOf, arrReduce, arrMap, strTrim, objKeys, objDefineAccessors, throwError, isSymbol, isNotTruthy, isTruthy, objFreeze, objSeal, objToString, objDeepFreeze as deepFreeze, getInst as getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, hasNavigator, getNavigator, hasHistory, getHistory, dumpObj, asString, objForEachKey, getPerformance, utcNow as dateNow, perfNow } from \"@nevware21/ts-utils\";\r\nexport { createEnumStyle, createValueMap } from \"./JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getCrypto, getMsCrypto, getLocation, hasJSON, getJSON, isReactNative, getConsole, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported, findMetaTag, findNamedServerTiming } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs, InstrumentEvent } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\nexport { createUnloadHookContainer } from \"./JavaScriptSDK/UnloadHookContainer\";\r\nexport { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"./JavaScriptSDK/W3cTraceParent\";\r\nexport { createDynamicConfig, onConfigChange } from \"./Config/DynamicConfig\";\r\nexport { getDynamicConfigHandler, blockDynamicConversion, forceDynamicConversion } from \"./Config/DynamicSupport\";\r\nexport { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet } from \"./Config/ConfigDefaultHelpers\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"applicationinsights-core-js.js.map","sources":["applicationinsights-core-js.js"],"sourcesContent":["export { MinChannelPriorty } from \"./JavaScriptSDK.Interfaces/IChannelControls\";\r\nexport { EventsDiscardedReason } from \"./JavaScriptSDK.Enums/EventsDiscardedReason\";\r\nexport { throwAggregationError } from \"./JavaScriptSDK/AggregationError\";\r\nexport { AppInsightsCore } from \"./JavaScriptSDK/AppInsightsCore\";\r\nexport { BaseTelemetryPlugin } from \"./JavaScriptSDK/BaseTelemetryPlugin\";\r\nexport { randomValue, random32, mwcRandomSeed, mwcRandom32, newId } from \"./JavaScriptSDK/RandomHelper\";\r\nexport { Undefined, newGuid, generateW3CId } from \"./JavaScriptSDK/CoreUtils\";\r\nexport { runTargetUnload, doUnloadAll } from \"./JavaScriptSDK/AsyncUtils\";\r\nexport { normalizeJsName, toISOString, getExceptionName, strContains, setValue, getSetValue, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objExtend } from \"./JavaScriptSDK/HelperFuncs\";\r\nexport { isArray, isTypeof, isUndefined, isNullOrUndefined, objHasOwnProperty as hasOwnProperty, isObject, isFunction, strEndsWith, strStartsWith, isDate, isError, isString, isNumber, isBoolean, arrForEach, arrIndexOf, arrReduce, arrMap, strTrim, objKeys, objDefineAccessors, throwError, isSymbol, isNotTruthy, isTruthy, objFreeze, objSeal, objToString, objDeepFreeze as deepFreeze, getInst as getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, hasNavigator, getNavigator, hasHistory, getHistory, dumpObj, asString, objForEachKey, getPerformance, utcNow as dateNow, perfNow } from \"@nevware21/ts-utils\";\r\nexport { createEnumStyle, createValueMap } from \"./JavaScriptSDK.Enums/EnumHelperFuncs\";\r\nexport { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, __getRegisteredEvents } from \"./JavaScriptSDK/EventHelpers\";\r\nexport { getCrypto, getMsCrypto, getLocation, hasJSON, getJSON, isReactNative, getConsole, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported, findMetaTag, findNamedServerTiming } from \"./JavaScriptSDK/EnvUtils\";\r\nexport { getGlobal, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from \"@microsoft/applicationinsights-shims\";\r\nexport { NotificationManager } from \"./JavaScriptSDK/NotificationManager\";\r\nexport { PerfEvent, PerfManager, doPerf, getGblPerfMgr, setGblPerfMgr } from \"./JavaScriptSDK/PerfManager\";\r\nexport { safeGetLogger, DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole, _logInternalMessage } from \"./JavaScriptSDK/DiagnosticLogger\";\r\nexport { ProcessTelemetryContext, createProcessTelemetryContext\r\n// Explicitly NOT exporting createProcessTelemetryUnloadContext() and createProcessTelemetryUpdateContext() as these should only be created internally\r\n } from \"./JavaScriptSDK/ProcessTelemetryContext\";\r\nexport { initializePlugins, sortPlugins, unloadComponents } from \"./JavaScriptSDK/TelemetryHelpers\";\r\nexport { LoggingSeverity } from \"./JavaScriptSDK.Enums/LoggingEnums\";\r\nexport { InstrumentProto, InstrumentProtos, InstrumentFunc, InstrumentFuncs, InstrumentEvent } from \"./JavaScriptSDK/InstrumentHooks\";\r\nexport { createCookieMgr, safeGetCookieMgr, uaDisallowsSameSiteNone, areCookiesSupported } from \"./JavaScriptSDK/CookieMgr\";\r\nexport { getDebugListener, getDebugExt } from \"./JavaScriptSDK/DbgExtensionUtils\";\r\nexport { createUniqueNamespace } from \"./JavaScriptSDK/DataCacheHelper\";\r\nexport { createUnloadHandlerContainer } from \"./JavaScriptSDK/UnloadHandlerContainer\";\r\nexport { createUnloadHookContainer } from \"./JavaScriptSDK/UnloadHookContainer\";\r\nexport { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"./JavaScriptSDK/W3cTraceParent\";\r\nexport { createDynamicConfig, onConfigChange } from \"./Config/DynamicConfig\";\r\nexport { getDynamicConfigHandler, blockDynamicConversion, forceDynamicConversion } from \"./Config/DynamicSupport\";\r\nexport { cfgDfValidate, cfgDfMerge, cfgDfBoolean, cfgDfFunc, cfgDfString, cfgDfSet, cfgDfBlockPropValue } from \"./Config/ConfigDefaultHelpers\";\r\n//# sourceMappingURL=applicationinsights-core-js.js.map"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
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.2-nightly3.2305-
|
|
4
|
+
"version": "3.0.2-nightly3.2305-12",
|
|
5
5
|
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
6
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
7
|
"keywords": [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -447,10 +447,17 @@ export declare abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
|
|
|
447
447
|
*/
|
|
448
448
|
export declare function blockDynamicConversion<T>(value: T): T;
|
|
449
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Helper which returns an IConfigDefaultCheck instance identifying that value associated with this property
|
|
452
|
+
* should not have it's properties converted into a dynamic config properties.
|
|
453
|
+
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
454
|
+
* @returns a new IConfigDefaultCheck structure
|
|
455
|
+
*/
|
|
456
|
+
export declare function cfgDfBlockPropValue<V, T = IConfiguration, C = IConfiguration>(defaultValue: V | IConfigDefaults<V, T>): IConfigDefaultCheck<T, V, C>;
|
|
457
|
+
|
|
450
458
|
/**
|
|
451
459
|
* Helper which returns an IConfigDefaultCheck instance that will validate and convert the user
|
|
452
460
|
* provided value to a boolean from a string or boolean value
|
|
453
|
-
* @param validator - The IConfigCheckFn function to validate the user provided value
|
|
454
461
|
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
455
462
|
* @param fallBackName - The fallback configuration name if the current value is not available
|
|
456
463
|
* @returns a new IConfigDefaultCheck structure
|
|
@@ -466,8 +473,8 @@ export declare function cfgDfBoolean<T, C = IConfiguration>(defaultValue?: boole
|
|
|
466
473
|
export declare function cfgDfFunc<V, T, C = IConfiguration>(defaultValue?: V): IConfigDefaultCheck<T, V, C>;
|
|
467
474
|
|
|
468
475
|
/**
|
|
469
|
-
* Helper which returns an IConfigDefaultCheck instance with the
|
|
470
|
-
*
|
|
476
|
+
* Helper which returns an IConfigDefaultCheck instance with the field defined as an object
|
|
477
|
+
* that should be merged
|
|
471
478
|
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
472
479
|
* @returns a new IConfigDefaultCheck structure
|
|
473
480
|
*/
|
|
@@ -514,7 +521,7 @@ export declare function createCookieMgr(rootConfig?: IConfiguration, logger?: ID
|
|
|
514
521
|
* @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true
|
|
515
522
|
* @returns The dynamic config handler for the config (whether new or existing)
|
|
516
523
|
*/
|
|
517
|
-
export declare function createDynamicConfig<T
|
|
524
|
+
export declare function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
|
|
518
525
|
|
|
519
526
|
/**
|
|
520
527
|
* Create an enum style object which has both the key => value and value => key mappings
|
|
@@ -603,6 +610,11 @@ export declare class DiagnosticLogger implements IDiagnosticLogger {
|
|
|
603
610
|
* @param message - {_InternalLogMessage} - The log message.
|
|
604
611
|
*/
|
|
605
612
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
613
|
+
/**
|
|
614
|
+
* This will write a debug message to the console if possible
|
|
615
|
+
* @param message - {string} - The debug message
|
|
616
|
+
*/
|
|
617
|
+
debugToConsole(message: string): void;
|
|
606
618
|
/**
|
|
607
619
|
* This will write a warning to the console if possible
|
|
608
620
|
* @param message - {string} - The warning message
|
|
@@ -789,7 +801,12 @@ export declare const enum eLoggingSeverity {
|
|
|
789
801
|
/**
|
|
790
802
|
* Error will NOT be sent as internal telemetry, and will only be shown in browser console
|
|
791
803
|
*/
|
|
792
|
-
WARNING = 2
|
|
804
|
+
WARNING = 2,
|
|
805
|
+
/**
|
|
806
|
+
* The Error will NOT be sent as an internal telemetry, and will only be shown in the browser
|
|
807
|
+
* console if the logging level allows it.
|
|
808
|
+
*/
|
|
809
|
+
DEBUG = 3
|
|
793
810
|
}
|
|
794
811
|
|
|
795
812
|
export declare type EnumValue<E = any> = EnumCls<E>;
|
|
@@ -902,7 +919,7 @@ export { getDocument }
|
|
|
902
919
|
* @param value
|
|
903
920
|
* @returns
|
|
904
921
|
*/
|
|
905
|
-
export declare function getDynamicConfigHandler<T>(value:
|
|
922
|
+
export declare function getDynamicConfigHandler<T = IConfiguration, V = IConfiguration>(value: V | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
|
|
906
923
|
|
|
907
924
|
/**
|
|
908
925
|
* Returns the name of object if it's an Error. Otherwise, returns empty string.
|
|
@@ -1283,6 +1300,12 @@ export declare interface IConfigDefaultCheck<T, V, C = IConfiguration> {
|
|
|
1283
1300
|
* @returns The referenced properties current value
|
|
1284
1301
|
*/
|
|
1285
1302
|
rdOnly?: boolean;
|
|
1303
|
+
/**
|
|
1304
|
+
* Block the value associated with this property from having it's properties / values converted into
|
|
1305
|
+
* dynamic properties, this is generally used to block objects or arrays provided by external libraries
|
|
1306
|
+
* which may be a plain object with readonly (non-configurable) or const properties.
|
|
1307
|
+
*/
|
|
1308
|
+
blkVal?: boolean;
|
|
1286
1309
|
}
|
|
1287
1310
|
|
|
1288
1311
|
/**
|
|
@@ -1586,6 +1609,11 @@ export declare interface IDiagnosticLogger {
|
|
|
1586
1609
|
* @param message - The log message.
|
|
1587
1610
|
*/
|
|
1588
1611
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
1612
|
+
/**
|
|
1613
|
+
* This will write a debug message to the console if possible
|
|
1614
|
+
* @param message - {string} - The debug message
|
|
1615
|
+
*/
|
|
1616
|
+
debugToConsole?(message: string): void;
|
|
1589
1617
|
/**
|
|
1590
1618
|
* This will write a warning to the console if possible
|
|
1591
1619
|
* @param message - The warning message
|
|
@@ -1671,7 +1699,7 @@ export declare interface IDistributedTraceContext {
|
|
|
1671
1699
|
/**
|
|
1672
1700
|
* This interface identifies the config which can track changes
|
|
1673
1701
|
*/
|
|
1674
|
-
export declare interface IDynamicConfigHandler<T
|
|
1702
|
+
export declare interface IDynamicConfigHandler<T = IConfiguration> {
|
|
1675
1703
|
/**
|
|
1676
1704
|
* Unique Id for this config handler
|
|
1677
1705
|
*/
|
|
@@ -1681,7 +1709,7 @@ export declare interface IDynamicConfigHandler<T extends IConfiguration> {
|
|
|
1681
1709
|
*/
|
|
1682
1710
|
cfg: T;
|
|
1683
1711
|
/**
|
|
1684
|
-
* The logger instance to use to
|
|
1712
|
+
* The logger instance to use to logger any issues
|
|
1685
1713
|
*/
|
|
1686
1714
|
logger: IDiagnosticLogger;
|
|
1687
1715
|
/**
|
|
@@ -1708,7 +1736,9 @@ export declare interface IDynamicConfigHandler<T extends IConfiguration> {
|
|
|
1708
1736
|
/**
|
|
1709
1737
|
* Set this named property of the target as referenced, which will cause any object or array instances
|
|
1710
1738
|
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
1711
|
-
* @
|
|
1739
|
+
* @param target - The object which has (or will have) the named property
|
|
1740
|
+
* @param name - The name of the property in the target
|
|
1741
|
+
* @returns The referenced properties current value.
|
|
1712
1742
|
*/
|
|
1713
1743
|
ref: <C, V = any>(target: C, name: string) => V;
|
|
1714
1744
|
/**
|
|
@@ -1716,12 +1746,39 @@ export declare interface IDynamicConfigHandler<T extends IConfiguration> {
|
|
|
1716
1746
|
* ever being changed for the target instance.
|
|
1717
1747
|
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
1718
1748
|
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
1719
|
-
* @
|
|
1749
|
+
* @param target - The object which has (or will have) the named property
|
|
1750
|
+
* @param name - The name of the property in the target
|
|
1751
|
+
* @returns The referenced properties current value.
|
|
1720
1752
|
*/
|
|
1721
1753
|
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
1754
|
+
/**
|
|
1755
|
+
* Set the `value` that is or will be assigned to this named property of the target will not have it's
|
|
1756
|
+
* properties converted into dynamic properties, this means that any changes the values properties will
|
|
1757
|
+
* not be monitored for changes and therefore will not cause any listeners to be notified in any value
|
|
1758
|
+
* is changed. If the value associated with the `target[name]` is change this is still dynamic and will
|
|
1759
|
+
* cause listeners to be notified.
|
|
1760
|
+
* @param target - The object which has (or will have) the named property
|
|
1761
|
+
* @param name - The name of the property in the target
|
|
1762
|
+
* @returns The referenced properties current value.
|
|
1763
|
+
* @example
|
|
1764
|
+
* ```ts
|
|
1765
|
+
* let localValue = target[name]; // If within a listener this will cause the listener to be called again
|
|
1766
|
+
* target[name] = newValue; // This will notify listeners that accessed target[name]
|
|
1767
|
+
*
|
|
1768
|
+
* // This will not cause lsiteners to be called because propa is not converted and value of target[name]
|
|
1769
|
+
* // did not change.
|
|
1770
|
+
* target[name].propa = 1;
|
|
1771
|
+
* target[name].propb = 2;
|
|
1772
|
+
*
|
|
1773
|
+
* // If within a listener this will caused the listener to be called again only if target[name] is reassigned
|
|
1774
|
+
* // not if the value associated with propa is changed.
|
|
1775
|
+
* let localValue = target[name].propa;
|
|
1776
|
+
* ```
|
|
1777
|
+
*/
|
|
1778
|
+
blkVal: <C, V = any>(target: C, name: string) => V;
|
|
1722
1779
|
}
|
|
1723
1780
|
|
|
1724
|
-
export declare interface IDynamicPropertyHandler<T> {
|
|
1781
|
+
export declare interface IDynamicPropertyHandler<T = IConfiguration> {
|
|
1725
1782
|
/**
|
|
1726
1783
|
* Identifies the name of the field that is handled by this handler
|
|
1727
1784
|
*/
|
|
@@ -2528,7 +2585,7 @@ export declare interface IUnloadHookContainer {
|
|
|
2528
2585
|
run: (logger?: IDiagnosticLogger) => void;
|
|
2529
2586
|
}
|
|
2530
2587
|
|
|
2531
|
-
export declare interface IWatchDetails<T
|
|
2588
|
+
export declare interface IWatchDetails<T = IConfiguration> {
|
|
2532
2589
|
/**
|
|
2533
2590
|
* The current config object
|
|
2534
2591
|
*/
|
|
@@ -2562,7 +2619,7 @@ export declare interface IWatchDetails<T extends IConfiguration> {
|
|
|
2562
2619
|
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
2563
2620
|
}
|
|
2564
2621
|
|
|
2565
|
-
export declare interface IWatcherHandler<T
|
|
2622
|
+
export declare interface IWatcherHandler<T = IConfiguration> extends IUnloadHook {
|
|
2566
2623
|
fn: WatcherFunction<T>;
|
|
2567
2624
|
rm: () => void;
|
|
2568
2625
|
}
|
|
@@ -2701,7 +2758,7 @@ export { objToString }
|
|
|
2701
2758
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
2702
2759
|
* @throws TypeError if the provided config is not a dynamic config instance
|
|
2703
2760
|
*/
|
|
2704
|
-
export declare function onConfigChange<T>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
|
|
2761
|
+
export declare function onConfigChange<T = IConfiguration>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
|
|
2705
2762
|
|
|
2706
2763
|
/**
|
|
2707
2764
|
* A helper function to assist with JIT performance for objects that have properties added / removed dynamically
|
|
@@ -3177,6 +3234,6 @@ export declare function useXDomainRequest(): boolean | undefined;
|
|
|
3177
3234
|
*/
|
|
3178
3235
|
export declare function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
|
|
3179
3236
|
|
|
3180
|
-
export declare type WatcherFunction<T
|
|
3237
|
+
export declare type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
3181
3238
|
|
|
3182
3239
|
export { }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.2-nightly3.2305-12
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -442,10 +442,17 @@ declare namespace ApplicationInsights {
|
|
|
442
442
|
*/
|
|
443
443
|
function blockDynamicConversion<T>(value: T): T;
|
|
444
444
|
|
|
445
|
+
/**
|
|
446
|
+
* Helper which returns an IConfigDefaultCheck instance identifying that value associated with this property
|
|
447
|
+
* should not have it's properties converted into a dynamic config properties.
|
|
448
|
+
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
449
|
+
* @returns a new IConfigDefaultCheck structure
|
|
450
|
+
*/
|
|
451
|
+
function cfgDfBlockPropValue<V, T = IConfiguration, C = IConfiguration>(defaultValue: V | IConfigDefaults<V, T>): IConfigDefaultCheck<T, V, C>;
|
|
452
|
+
|
|
445
453
|
/**
|
|
446
454
|
* Helper which returns an IConfigDefaultCheck instance that will validate and convert the user
|
|
447
455
|
* provided value to a boolean from a string or boolean value
|
|
448
|
-
* @param validator - The IConfigCheckFn function to validate the user provided value
|
|
449
456
|
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
450
457
|
* @param fallBackName - The fallback configuration name if the current value is not available
|
|
451
458
|
* @returns a new IConfigDefaultCheck structure
|
|
@@ -461,8 +468,8 @@ declare namespace ApplicationInsights {
|
|
|
461
468
|
function cfgDfFunc<V, T, C = IConfiguration>(defaultValue?: V): IConfigDefaultCheck<T, V, C>;
|
|
462
469
|
|
|
463
470
|
/**
|
|
464
|
-
* Helper which returns an IConfigDefaultCheck instance with the
|
|
465
|
-
*
|
|
471
|
+
* Helper which returns an IConfigDefaultCheck instance with the field defined as an object
|
|
472
|
+
* that should be merged
|
|
466
473
|
* @param defaultValue - The default value to apply it not provided or it's not valid
|
|
467
474
|
* @returns a new IConfigDefaultCheck structure
|
|
468
475
|
*/
|
|
@@ -509,7 +516,7 @@ declare namespace ApplicationInsights {
|
|
|
509
516
|
* @param inPlace - Should the config be converted in-place into a dynamic config or a new instance returned, defaults to true
|
|
510
517
|
* @returns The dynamic config handler for the config (whether new or existing)
|
|
511
518
|
*/
|
|
512
|
-
function createDynamicConfig<T
|
|
519
|
+
function createDynamicConfig<T = IConfiguration>(config: T, defaultConfig?: IConfigDefaults<T>, logger?: IDiagnosticLogger, inPlace?: boolean): IDynamicConfigHandler<T>;
|
|
513
520
|
|
|
514
521
|
/**
|
|
515
522
|
* Create an enum style object which has both the key => value and value => key mappings
|
|
@@ -598,6 +605,11 @@ declare namespace ApplicationInsights {
|
|
|
598
605
|
* @param message - {_InternalLogMessage} - The log message.
|
|
599
606
|
*/
|
|
600
607
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
608
|
+
/**
|
|
609
|
+
* This will write a debug message to the console if possible
|
|
610
|
+
* @param message - {string} - The debug message
|
|
611
|
+
*/
|
|
612
|
+
debugToConsole(message: string): void;
|
|
601
613
|
/**
|
|
602
614
|
* This will write a warning to the console if possible
|
|
603
615
|
* @param message - {string} - The warning message
|
|
@@ -784,7 +796,12 @@ declare namespace ApplicationInsights {
|
|
|
784
796
|
/**
|
|
785
797
|
* Error will NOT be sent as internal telemetry, and will only be shown in browser console
|
|
786
798
|
*/
|
|
787
|
-
WARNING = 2
|
|
799
|
+
WARNING = 2,
|
|
800
|
+
/**
|
|
801
|
+
* The Error will NOT be sent as an internal telemetry, and will only be shown in the browser
|
|
802
|
+
* console if the logging level allows it.
|
|
803
|
+
*/
|
|
804
|
+
DEBUG = 3
|
|
788
805
|
}
|
|
789
806
|
|
|
790
807
|
type EnumValue<E = any> = EnumCls<E>;
|
|
@@ -897,7 +914,7 @@ declare namespace ApplicationInsights {
|
|
|
897
914
|
* @param value
|
|
898
915
|
* @returns
|
|
899
916
|
*/
|
|
900
|
-
function getDynamicConfigHandler<T>(value:
|
|
917
|
+
function getDynamicConfigHandler<T = IConfiguration, V = IConfiguration>(value: V | IDynamicConfigHandler<T>): IDynamicConfigHandler<T> | null;
|
|
901
918
|
|
|
902
919
|
/**
|
|
903
920
|
* Returns the name of object if it's an Error. Otherwise, returns empty string.
|
|
@@ -1278,6 +1295,12 @@ declare namespace ApplicationInsights {
|
|
|
1278
1295
|
* @returns The referenced properties current value
|
|
1279
1296
|
*/
|
|
1280
1297
|
rdOnly?: boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Block the value associated with this property from having it's properties / values converted into
|
|
1300
|
+
* dynamic properties, this is generally used to block objects or arrays provided by external libraries
|
|
1301
|
+
* which may be a plain object with readonly (non-configurable) or const properties.
|
|
1302
|
+
*/
|
|
1303
|
+
blkVal?: boolean;
|
|
1281
1304
|
}
|
|
1282
1305
|
|
|
1283
1306
|
/**
|
|
@@ -1581,6 +1604,11 @@ declare namespace ApplicationInsights {
|
|
|
1581
1604
|
* @param message - The log message.
|
|
1582
1605
|
*/
|
|
1583
1606
|
throwInternal(severity: LoggingSeverity, msgId: _InternalMessageId, msg: string, properties?: Object, isUserAct?: boolean): void;
|
|
1607
|
+
/**
|
|
1608
|
+
* This will write a debug message to the console if possible
|
|
1609
|
+
* @param message - {string} - The debug message
|
|
1610
|
+
*/
|
|
1611
|
+
debugToConsole?(message: string): void;
|
|
1584
1612
|
/**
|
|
1585
1613
|
* This will write a warning to the console if possible
|
|
1586
1614
|
* @param message - The warning message
|
|
@@ -1666,7 +1694,7 @@ declare namespace ApplicationInsights {
|
|
|
1666
1694
|
/**
|
|
1667
1695
|
* This interface identifies the config which can track changes
|
|
1668
1696
|
*/
|
|
1669
|
-
interface IDynamicConfigHandler<T
|
|
1697
|
+
interface IDynamicConfigHandler<T = IConfiguration> {
|
|
1670
1698
|
/**
|
|
1671
1699
|
* Unique Id for this config handler
|
|
1672
1700
|
*/
|
|
@@ -1676,7 +1704,7 @@ declare namespace ApplicationInsights {
|
|
|
1676
1704
|
*/
|
|
1677
1705
|
cfg: T;
|
|
1678
1706
|
/**
|
|
1679
|
-
* The logger instance to use to
|
|
1707
|
+
* The logger instance to use to logger any issues
|
|
1680
1708
|
*/
|
|
1681
1709
|
logger: IDiagnosticLogger;
|
|
1682
1710
|
/**
|
|
@@ -1703,7 +1731,9 @@ declare namespace ApplicationInsights {
|
|
|
1703
1731
|
/**
|
|
1704
1732
|
* Set this named property of the target as referenced, which will cause any object or array instances
|
|
1705
1733
|
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
1706
|
-
* @
|
|
1734
|
+
* @param target - The object which has (or will have) the named property
|
|
1735
|
+
* @param name - The name of the property in the target
|
|
1736
|
+
* @returns The referenced properties current value.
|
|
1707
1737
|
*/
|
|
1708
1738
|
ref: <C, V = any>(target: C, name: string) => V;
|
|
1709
1739
|
/**
|
|
@@ -1711,12 +1741,39 @@ declare namespace ApplicationInsights {
|
|
|
1711
1741
|
* ever being changed for the target instance.
|
|
1712
1742
|
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
1713
1743
|
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
1714
|
-
* @
|
|
1744
|
+
* @param target - The object which has (or will have) the named property
|
|
1745
|
+
* @param name - The name of the property in the target
|
|
1746
|
+
* @returns The referenced properties current value.
|
|
1715
1747
|
*/
|
|
1716
1748
|
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
1749
|
+
/**
|
|
1750
|
+
* Set the `value` that is or will be assigned to this named property of the target will not have it's
|
|
1751
|
+
* properties converted into dynamic properties, this means that any changes the values properties will
|
|
1752
|
+
* not be monitored for changes and therefore will not cause any listeners to be notified in any value
|
|
1753
|
+
* is changed. If the value associated with the `target[name]` is change this is still dynamic and will
|
|
1754
|
+
* cause listeners to be notified.
|
|
1755
|
+
* @param target - The object which has (or will have) the named property
|
|
1756
|
+
* @param name - The name of the property in the target
|
|
1757
|
+
* @returns The referenced properties current value.
|
|
1758
|
+
* @example
|
|
1759
|
+
* ```ts
|
|
1760
|
+
* let localValue = target[name]; // If within a listener this will cause the listener to be called again
|
|
1761
|
+
* target[name] = newValue; // This will notify listeners that accessed target[name]
|
|
1762
|
+
*
|
|
1763
|
+
* // This will not cause lsiteners to be called because propa is not converted and value of target[name]
|
|
1764
|
+
* // did not change.
|
|
1765
|
+
* target[name].propa = 1;
|
|
1766
|
+
* target[name].propb = 2;
|
|
1767
|
+
*
|
|
1768
|
+
* // If within a listener this will caused the listener to be called again only if target[name] is reassigned
|
|
1769
|
+
* // not if the value associated with propa is changed.
|
|
1770
|
+
* let localValue = target[name].propa;
|
|
1771
|
+
* ```
|
|
1772
|
+
*/
|
|
1773
|
+
blkVal: <C, V = any>(target: C, name: string) => V;
|
|
1717
1774
|
}
|
|
1718
1775
|
|
|
1719
|
-
interface IDynamicPropertyHandler<T> {
|
|
1776
|
+
interface IDynamicPropertyHandler<T = IConfiguration> {
|
|
1720
1777
|
/**
|
|
1721
1778
|
* Identifies the name of the field that is handled by this handler
|
|
1722
1779
|
*/
|
|
@@ -2523,7 +2580,7 @@ declare namespace ApplicationInsights {
|
|
|
2523
2580
|
run: (logger?: IDiagnosticLogger) => void;
|
|
2524
2581
|
}
|
|
2525
2582
|
|
|
2526
|
-
interface IWatchDetails<T
|
|
2583
|
+
interface IWatchDetails<T = IConfiguration> {
|
|
2527
2584
|
/**
|
|
2528
2585
|
* The current config object
|
|
2529
2586
|
*/
|
|
@@ -2557,7 +2614,7 @@ declare namespace ApplicationInsights {
|
|
|
2557
2614
|
rdOnly: <C, V = any>(target: C, name: string) => V;
|
|
2558
2615
|
}
|
|
2559
2616
|
|
|
2560
|
-
interface IWatcherHandler<T
|
|
2617
|
+
interface IWatcherHandler<T = IConfiguration> extends IUnloadHook {
|
|
2561
2618
|
fn: WatcherFunction<T>;
|
|
2562
2619
|
rm: () => void;
|
|
2563
2620
|
}
|
|
@@ -2696,7 +2753,7 @@ declare namespace ApplicationInsights {
|
|
|
2696
2753
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
2697
2754
|
* @throws TypeError if the provided config is not a dynamic config instance
|
|
2698
2755
|
*/
|
|
2699
|
-
function onConfigChange<T>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
|
|
2756
|
+
function onConfigChange<T = IConfiguration>(config: T, configHandler: WatcherFunction<T>, logger?: IDiagnosticLogger): IWatcherHandler<T>;
|
|
2700
2757
|
|
|
2701
2758
|
/**
|
|
2702
2759
|
* A helper function to assist with JIT performance for objects that have properties added / removed dynamically
|
|
@@ -3172,7 +3229,7 @@ declare namespace ApplicationInsights {
|
|
|
3172
3229
|
*/
|
|
3173
3230
|
function _warnToConsole(logger: IDiagnosticLogger, message: string): void;
|
|
3174
3231
|
|
|
3175
|
-
type WatcherFunction<T
|
|
3232
|
+
type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
3176
3233
|
|
|
3177
3234
|
|
|
3178
3235
|
}
|