@microsoft/applicationinsights-core-js 3.0.0-beta.2210-21 → 3.0.0-beta.2211-01
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 +73 -14
- 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 +197 -36
- package/dist/applicationinsights-core-js.api.md +7 -3
- package/dist/applicationinsights-core-js.d.ts +33 -2
- package/dist/applicationinsights-core-js.js +73 -14
- 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 +33 -2
- 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 +71 -9
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.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/W3cTraceParent.js +5 -6
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +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 +6 -7
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/AppInsightsCore.ts +100 -10
- package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +15 -0
- package/src/JavaScriptSDK.Interfaces/IConfiguration.ts +6 -0
- package/types/JavaScriptSDK/AppInsightsCore.d.ts +15 -1
- package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +12 -0
- package/types/JavaScriptSDK.Interfaces/IConfiguration.d.ts +5 -0
- package/types/__DynamicConstants.d.ts +1 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -138,8 +138,22 @@ export declare class AppInsightsCore implements IAppInsightsCore {
|
|
|
138
138
|
static defaultConfig: IConfiguration;
|
|
139
139
|
config: IConfiguration;
|
|
140
140
|
logger: IDiagnosticLogger;
|
|
141
|
-
|
|
141
|
+
/**
|
|
142
|
+
* An array of the installed plugins that provide a version
|
|
143
|
+
*/
|
|
144
|
+
readonly pluginVersionStringArr: string[];
|
|
145
|
+
/**
|
|
146
|
+
* The formatted string of the installed plugins that contain a version number
|
|
147
|
+
*/
|
|
148
|
+
readonly pluginVersionString: string;
|
|
149
|
+
/**
|
|
150
|
+
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
151
|
+
*/
|
|
142
152
|
isInitialized: () => boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
155
|
+
*/
|
|
156
|
+
getWParam: () => number;
|
|
143
157
|
constructor();
|
|
144
158
|
initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
|
|
145
159
|
getTransmissionControls(): IChannelControls[][];
|
|
@@ -832,6 +846,14 @@ export { hasWindow }
|
|
|
832
846
|
export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
833
847
|
config: IConfiguration;
|
|
834
848
|
logger: IDiagnosticLogger;
|
|
849
|
+
/**
|
|
850
|
+
* An array of the installed plugins that provide a version
|
|
851
|
+
*/
|
|
852
|
+
readonly pluginVersionStringArr: string[];
|
|
853
|
+
/**
|
|
854
|
+
* The formatted string of the installed plugins that contain a version number
|
|
855
|
+
*/
|
|
856
|
+
readonly pluginVersionString: string;
|
|
835
857
|
/**
|
|
836
858
|
* Returns a value that indicates whether the instance has already been previously initialized.
|
|
837
859
|
*/
|
|
@@ -949,6 +971,10 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
949
971
|
* @returns A watcher handler instance that can be used to remove itself when being unloaded
|
|
950
972
|
*/
|
|
951
973
|
onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
|
|
974
|
+
/**
|
|
975
|
+
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
976
|
+
*/
|
|
977
|
+
getWParam: () => number;
|
|
952
978
|
}
|
|
953
979
|
|
|
954
980
|
export declare interface IBaseProcessingContext {
|
|
@@ -1227,6 +1253,11 @@ export declare interface IConfiguration {
|
|
|
1227
1253
|
* this will not send any notifications.
|
|
1228
1254
|
*/
|
|
1229
1255
|
disableDbgExt?: boolean;
|
|
1256
|
+
/**
|
|
1257
|
+
* Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
|
|
1258
|
+
* Default is false
|
|
1259
|
+
*/
|
|
1260
|
+
enableWParam?: boolean;
|
|
1230
1261
|
}
|
|
1231
1262
|
|
|
1232
1263
|
export declare interface ICookieMgr {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.0-beta.
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2211-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
var _a;
|
|
9
9
|
import { __spreadArrayFn as __spreadArray } from "@microsoft/applicationinsights-shims";
|
|
10
10
|
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
11
|
-
import { arrAppend, arrForEach, arrIndexOf, deepExtend, dumpObj, isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze, objDefineProp, objForEachKey, objFreeze, objHasOwn, throwError } from "@nevware21/ts-utils";
|
|
11
|
+
import { arrAppend, arrForEach, arrIndexOf, deepExtend, dumpObj, hasDocument, isFunction, isNullOrUndefined, isPlainObject, objDeepFreeze, objDefineProp, objForEachKey, objFreeze, objHasOwn, throwError } from "@nevware21/ts-utils";
|
|
12
12
|
import { createDynamicConfig, onConfigChange } from "../Config/DynamicConfig";
|
|
13
|
-
import { _DYN_ADD_NOTIFICATION_LIS1, _DYN_CALL, _DYN_CONFIGURABLE, _DYN_ENUMERABLE, _DYN_FLUSH, _DYN_GET_NOTIFY_MGR, _DYN_GET_PLUGIN, _DYN_GET_PROCESS_TEL_CONT0, _DYN_IDENTIFIER, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_LOGGING_LEVEL_CONSOL4, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_NAME, _DYN_NOTIFY, _DYN_ON_COMPLETE, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SET_DF, _DYN_SPLICE, _DYN_STOP_POLLING_INTERNA3, _DYN_TEARDOWN, _DYN_TIME,
|
|
13
|
+
import { _DYN_ADD_NOTIFICATION_LIS1, _DYN_CALL, _DYN_CONFIGURABLE, _DYN_ENUMERABLE, _DYN_FLUSH, _DYN_GET_NOTIFY_MGR, _DYN_GET_PLUGIN, _DYN_GET_PROCESS_TEL_CONT0, _DYN_IDENTIFIER, _DYN_INITIALIZE, _DYN_IS_ASYNC, _DYN_IS_INITIALIZED, _DYN_LENGTH, _DYN_LOGGER, _DYN_LOGGING_LEVEL_CONSOL4, _DYN_MESSAGE, _DYN_MESSAGE_ID, _DYN_NAME, _DYN_NOTIFY, _DYN_ON_COMPLETE, _DYN_PROCESS_NEXT, _DYN_PUSH, _DYN_REMOVE_NOTIFICATION_2, _DYN_SET_DF, _DYN_SPLICE, _DYN_STOP_POLLING_INTERNA3, _DYN_TEARDOWN, _DYN_TIME, _DYN_VERSION, _DYN_WATCH } from "../__DynamicConstants";
|
|
14
14
|
import { ChannelControllerPriority, createChannelControllerPlugin, createChannelQueues } from "./ChannelController";
|
|
15
15
|
import { createCookieMgr } from "./CookieMgr";
|
|
16
16
|
import { createUniqueNamespace } from "./DataCacheHelper";
|
|
17
17
|
import { getDebugListener } from "./DbgExtensionUtils";
|
|
18
18
|
import { DiagnosticLogger, _InternalLogMessage, _throwInternal, _warnToConsole } from "./DiagnosticLogger";
|
|
19
19
|
import { getSetValue, proxyFunctionAs, proxyFunctions, toISOString } from "./HelperFuncs";
|
|
20
|
-
import { STR_CHANNELS, STR_CORE, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EVENTS_DISCARDED, STR_EXTENSIONS, STR_EXTENSION_CONFIG, STR_GET_PERF_MGR, STR_PRIORITY, UNDEFINED_VALUE } from "./InternalConstants";
|
|
20
|
+
import { STR_CHANNELS, STR_CORE, STR_CREATE_PERF_MGR, STR_DISABLED, STR_EMPTY, STR_EVENTS_DISCARDED, STR_EXTENSIONS, STR_EXTENSION_CONFIG, STR_GET_PERF_MGR, STR_PRIORITY, UNDEFINED_VALUE } from "./InternalConstants";
|
|
21
21
|
import { NotificationManager } from "./NotificationManager";
|
|
22
22
|
import { PerfManager, doPerf, getGblPerfMgr } from "./PerfManager";
|
|
23
23
|
import { createProcessTelemetryContext, createProcessTelemetryUnloadContext, createProcessTelemetryUpdateContext, createTelemetryProxyChain } from "./ProcessTelemetryContext";
|
|
@@ -183,6 +183,9 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
183
183
|
var _traceCtx;
|
|
184
184
|
var _instrumentationKey;
|
|
185
185
|
var _cfgListeners;
|
|
186
|
+
var _extensions;
|
|
187
|
+
var _pluginVersionStringArr;
|
|
188
|
+
var _pluginVersionString;
|
|
186
189
|
/**
|
|
187
190
|
* Internal log poller
|
|
188
191
|
*/
|
|
@@ -190,6 +193,10 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
190
193
|
dynamicProto(AppInsightsCore, this, function (_self) {
|
|
191
194
|
// Set the default values (also called during teardown)
|
|
192
195
|
_initDefaults();
|
|
196
|
+
// Special internal method to allow the unit tests and DebugPlugin to hook embedded objects
|
|
197
|
+
_self["_getDbgPlgTargets"] = function () {
|
|
198
|
+
return [_extensions];
|
|
199
|
+
};
|
|
193
200
|
_self[_DYN_IS_INITIALIZED /* @min:%2eisInitialized */] = function () { return _isInitialized; };
|
|
194
201
|
// Creating the self.initialize = ()
|
|
195
202
|
_self[_DYN_INITIALIZE /* @min:%2einitialize */] = function (config, extensions, logger, notificationManager) {
|
|
@@ -532,8 +539,34 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
532
539
|
}
|
|
533
540
|
};
|
|
534
541
|
};
|
|
542
|
+
_self.getWParam = function () {
|
|
543
|
+
return (hasDocument() || !!_configHandler.cfg.enableWParam) ? 0 : -1;
|
|
544
|
+
};
|
|
545
|
+
function _setPluginVersions() {
|
|
546
|
+
_pluginVersionStringArr = [];
|
|
547
|
+
if (_channelConfig) {
|
|
548
|
+
arrForEach(_channelConfig, function (channels) {
|
|
549
|
+
if (channels) {
|
|
550
|
+
arrForEach(channels, function (channel) {
|
|
551
|
+
if (channel[_DYN_IDENTIFIER /* @min:%2eidentifier */] && channel[_DYN_VERSION /* @min:%2eversion */]) {
|
|
552
|
+
var ver = channel[_DYN_IDENTIFIER /* @min:%2eidentifier */] + "=" + channel[_DYN_VERSION /* @min:%2eversion */];
|
|
553
|
+
_pluginVersionStringArr[_DYN_PUSH /* @min:%2epush */](ver);
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
if (_configExtensions) {
|
|
560
|
+
arrForEach(_configExtensions, function (ext) {
|
|
561
|
+
if (ext && ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] && ext[_DYN_VERSION /* @min:%2eversion */]) {
|
|
562
|
+
var ver = ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] + "=" + ext[_DYN_VERSION /* @min:%2eversion */];
|
|
563
|
+
_pluginVersionStringArr[_DYN_PUSH /* @min:%2epush */](ver);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}
|
|
535
568
|
function _initDefaults() {
|
|
536
|
-
var _a;
|
|
569
|
+
var _a, _b, _c;
|
|
537
570
|
_isInitialized = false;
|
|
538
571
|
// Use a default logger so initialization errors are not dropped on the floor with full logging
|
|
539
572
|
_configHandler = createDynamicConfig({}, defaultConfig, _self[_DYN_LOGGER /* @min:%2elogger */]);
|
|
@@ -548,8 +581,31 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
548
581
|
_self.updateCfg(newValue, false);
|
|
549
582
|
},
|
|
550
583
|
_a));
|
|
584
|
+
objDefineProp(_self, "pluginVersionStringArr", (_b = {},
|
|
585
|
+
_b[_DYN_CONFIGURABLE /* @min:configurable */] = true,
|
|
586
|
+
_b[_DYN_ENUMERABLE /* @min:enumerable */] = true,
|
|
587
|
+
_b.get = function () {
|
|
588
|
+
if (!_pluginVersionStringArr) {
|
|
589
|
+
_setPluginVersions();
|
|
590
|
+
}
|
|
591
|
+
return _pluginVersionStringArr;
|
|
592
|
+
},
|
|
593
|
+
_b));
|
|
594
|
+
objDefineProp(_self, "pluginVersionString", (_c = {},
|
|
595
|
+
_c[_DYN_CONFIGURABLE /* @min:configurable */] = true,
|
|
596
|
+
_c[_DYN_ENUMERABLE /* @min:enumerable */] = true,
|
|
597
|
+
_c.get = function () {
|
|
598
|
+
if (!_pluginVersionString) {
|
|
599
|
+
if (!_pluginVersionStringArr) {
|
|
600
|
+
_setPluginVersions();
|
|
601
|
+
}
|
|
602
|
+
_pluginVersionString = _pluginVersionStringArr.join(";");
|
|
603
|
+
}
|
|
604
|
+
return _pluginVersionString || STR_EMPTY;
|
|
605
|
+
},
|
|
606
|
+
_c));
|
|
551
607
|
_self[_DYN_LOGGER /* @min:%2elogger */] = new DiagnosticLogger(_configHandler.cfg);
|
|
552
|
-
|
|
608
|
+
_extensions = [];
|
|
553
609
|
_telemetryInitializerPlugin = new TelemetryInitializerPlugin();
|
|
554
610
|
_eventQueue = [];
|
|
555
611
|
_notificationManager = null;
|
|
@@ -570,6 +626,8 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
570
626
|
_instrumentationKey = null;
|
|
571
627
|
_hooks = [];
|
|
572
628
|
_cfgListeners = [];
|
|
629
|
+
_pluginVersionString = null;
|
|
630
|
+
_pluginVersionStringArr = null;
|
|
573
631
|
}
|
|
574
632
|
function _createTelCtx() {
|
|
575
633
|
return createProcessTelemetryContext(_getPluginChain(), _configHandler.cfg, _self);
|
|
@@ -580,6 +638,8 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
580
638
|
var theExtensions = _validateExtensions(_self[_DYN_LOGGER /* @min:%2elogger */], ChannelControllerPriority, _configExtensions);
|
|
581
639
|
_coreExtensions = theExtensions[STR_CORE /* @min:%2ecore */];
|
|
582
640
|
_pluginChain = null;
|
|
641
|
+
_pluginVersionString = null;
|
|
642
|
+
_pluginVersionStringArr = null;
|
|
583
643
|
// Sort the complete set of extensions by priority
|
|
584
644
|
var allExtensions = theExtensions.all;
|
|
585
645
|
// Initialize the Channel Queues and the channel plugins first
|
|
@@ -606,12 +666,12 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
606
666
|
allExtensions[_DYN_PUSH /* @min:%2epush */](_channelControl);
|
|
607
667
|
_coreExtensions[_DYN_PUSH /* @min:%2epush */](_channelControl);
|
|
608
668
|
// Required to allow plugins to call core.getPlugin() during their own initialization
|
|
609
|
-
|
|
669
|
+
_extensions = sortPlugins(allExtensions);
|
|
610
670
|
// Initialize the controls
|
|
611
671
|
_channelControl[_DYN_INITIALIZE /* @min:%2einitialize */](_configHandler.cfg, _self, allExtensions);
|
|
612
672
|
initializePlugins(_createTelCtx(), allExtensions);
|
|
613
673
|
// Now reset the extensions to just those being managed by AppInsightsCore
|
|
614
|
-
|
|
674
|
+
_extensions = objFreeze(sortPlugins(_coreExtensions || [])).slice();
|
|
615
675
|
if (updateState) {
|
|
616
676
|
_doUpdate(updateState);
|
|
617
677
|
}
|
|
@@ -619,7 +679,7 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
619
679
|
function _getPlugin(pluginIdentifier) {
|
|
620
680
|
var theExt = null;
|
|
621
681
|
var thePlugin = null;
|
|
622
|
-
arrForEach(
|
|
682
|
+
arrForEach(_extensions, function (ext) {
|
|
623
683
|
if (ext[_DYN_IDENTIFIER /* @min:%2eidentifier */] === pluginIdentifier && ext !== _channelControl && ext !== _telemetryInitializerPlugin) {
|
|
624
684
|
thePlugin = ext;
|
|
625
685
|
return -1;
|
|
@@ -692,6 +752,8 @@ var AppInsightsCore = /** @class */ (function () {
|
|
|
692
752
|
}
|
|
693
753
|
});
|
|
694
754
|
_configExtensions = newConfigExtensions;
|
|
755
|
+
_pluginVersionString = null;
|
|
756
|
+
_pluginVersionStringArr = null;
|
|
695
757
|
// Re-Create the channel config
|
|
696
758
|
var newChannelConfig = [];
|
|
697
759
|
if (_channelConfig) {
|