@microsoft/applicationinsights-web-basic 3.0.0-beta.2210-21 → 3.0.0-beta.2211-03

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.
Files changed (30) hide show
  1. package/browser/aib.2.js +131 -46
  2. package/browser/aib.2.js.map +1 -1
  3. package/browser/aib.2.min.js +2 -2
  4. package/browser/aib.2.min.js.map +1 -1
  5. package/browser/aib.3.0.0-beta.2211-03.integrity.json +26 -0
  6. package/browser/{aib.3.0.0-beta.2210-21.js → aib.3.0.0-beta.2211-03.js} +132 -47
  7. package/browser/aib.3.0.0-beta.2211-03.js.map +1 -0
  8. package/browser/aib.3.0.0-beta.2211-03.min.js +6 -0
  9. package/browser/aib.3.0.0-beta.2211-03.min.js.map +1 -0
  10. package/dist/applicationinsights-web-basic.api.json +203 -40
  11. package/dist/applicationinsights-web-basic.api.md +10 -5
  12. package/dist/applicationinsights-web-basic.d.ts +36 -4
  13. package/dist/applicationinsights-web-basic.js +131 -46
  14. package/dist/applicationinsights-web-basic.js.map +1 -1
  15. package/dist/applicationinsights-web-basic.min.js +2 -2
  16. package/dist/applicationinsights-web-basic.min.js.map +1 -1
  17. package/dist/applicationinsights-web-basic.rollup.d.ts +36 -4
  18. package/dist-esm/__DynamicConstants.js +1 -2
  19. package/dist-esm/__DynamicConstants.js.map +1 -1
  20. package/dist-esm/index.js +4 -10
  21. package/dist-esm/index.js.map +1 -1
  22. package/package.json +4 -4
  23. package/src/__DynamicConstants.ts +0 -1
  24. package/src/index.ts +1 -11
  25. package/types/__DynamicConstants.d.ts +0 -1
  26. package/types/tsdoc-metadata.json +1 -1
  27. package/browser/aib.3.0.0-beta.2210-21.integrity.json +0 -26
  28. package/browser/aib.3.0.0-beta.2210-21.js.map +0 -1
  29. package/browser/aib.3.0.0-beta.2210-21.min.js +0 -6
  30. package/browser/aib.3.0.0-beta.2210-21.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.0.0-beta.2210-21
2
+ * Microsoft.ApplicationInsights, 3.0.0-beta.2211-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -16,14 +16,29 @@
16
16
  import { arrForEach } from '@nevware21/ts-utils';
17
17
  import { EnumCls } from '@nevware21/ts-utils';
18
18
  import { isNullOrUndefined } from '@nevware21/ts-utils';
19
+ import { ITimerHandler } from '@nevware21/ts-utils';
19
20
  import { throwError } from '@nevware21/ts-utils';
20
21
 
21
22
  export declare class AppInsightsCore implements IAppInsightsCore {
22
23
  static defaultConfig: IConfiguration;
23
24
  config: IConfiguration;
24
25
  logger: IDiagnosticLogger;
25
- _extensions: IPlugin[];
26
+ /**
27
+ * An array of the installed plugins that provide a version
28
+ */
29
+ readonly pluginVersionStringArr: string[];
30
+ /**
31
+ * The formatted string of the installed plugins that contain a version number
32
+ */
33
+ readonly pluginVersionString: string;
34
+ /**
35
+ * Returns a value that indicates whether the instance has already been previously initialized.
36
+ */
26
37
  isInitialized: () => boolean;
38
+ /**
39
+ * Function used to identify the get w parameter used to identify status bit to some channels
40
+ */
41
+ getWParam: () => number;
27
42
  constructor();
28
43
  initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
29
44
  getTransmissionControls(): IChannelControls[][];
@@ -57,7 +72,7 @@ export declare class AppInsightsCore implements IAppInsightsCore {
57
72
  /**
58
73
  * Periodically check logger.queue for
59
74
  */
60
- pollInternalLogs(eventName?: string): number;
75
+ pollInternalLogs(eventName?: string): ITimerHandler;
61
76
  /**
62
77
  * Periodically check logger.queue for
63
78
  */
@@ -443,6 +458,14 @@ export declare const enum eSeverityLevel {
443
458
  export declare interface IAppInsightsCore extends IPerfManagerProvider {
444
459
  config: IConfiguration;
445
460
  logger: IDiagnosticLogger;
461
+ /**
462
+ * An array of the installed plugins that provide a version
463
+ */
464
+ readonly pluginVersionStringArr: string[];
465
+ /**
466
+ * The formatted string of the installed plugins that contain a version number
467
+ */
468
+ readonly pluginVersionString: string;
446
469
  /**
447
470
  * Returns a value that indicates whether the instance has already been previously initialized.
448
471
  */
@@ -481,7 +504,7 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
481
504
  * @returns - A ITelemetryInitializerHandler to enable the initializer to be removed
482
505
  */
483
506
  addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
484
- pollInternalLogs?(eventName?: string): number;
507
+ pollInternalLogs?(eventName?: string): ITimerHandler;
485
508
  stopPollingInternalLogs?(): void;
486
509
  /**
487
510
  * Return a new instance of the IProcessTelemetryContext for processing events
@@ -560,6 +583,10 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
560
583
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
561
584
  */
562
585
  onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
586
+ /**
587
+ * Function used to identify the get w parameter used to identify status bit to some channels
588
+ */
589
+ getWParam: () => number;
563
590
  }
564
591
 
565
592
  /**
@@ -1240,6 +1267,11 @@ export declare interface IConfiguration {
1240
1267
  * this will not send any notifications.
1241
1268
  */
1242
1269
  disableDbgExt?: boolean;
1270
+ /**
1271
+ * Add "&w=0" parameter to support UA Parsing when web-workers don't have access to Document.
1272
+ * Default is false
1273
+ */
1274
+ enableWParam?: boolean;
1243
1275
  }
1244
1276
 
1245
1277
  declare interface ICookieMgr {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-21
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -11,6 +11,5 @@
11
11
  // ###########################################################################################################################################
12
12
  // Note: DON'T Export these const from the package as we are still targeting IE this will export a mutable variables that someone could change
13
13
  // ###########################################################################################################################################
14
- export var _DYN_INITIALIZE = "initialize"; // Count: 3
15
14
  export var _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
16
15
  //# sourceMappingURL=__DynamicConstants.js.map
@@ -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 IE this will export a mutable variables that someone could change\r\n// ###########################################################################################################################################\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 3\r\nexport var _DYN_DIAGNOSTIC_LOG_INTER0 = \"diagnosticLogInterval\"; // Count: 4\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
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 IE this will export a mutable variables that someone could change\r\n// ###########################################################################################################################################\r\nexport var _DYN_DIAGNOSTIC_LOG_INTER0 = \"diagnosticLogInterval\"; // Count: 4\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
package/dist-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2210-21
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2211-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -8,7 +8,7 @@ import dynamicProto from "@microsoft/dynamicproto-js";
8
8
  import { Sender } from "@microsoft/applicationinsights-channel-js";
9
9
  import { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from "@microsoft/applicationinsights-core-js";
10
10
  import { objDefineProp } from "@nevware21/ts-utils";
11
- import { _DYN_DIAGNOSTIC_LOG_INTER0, _DYN_INITIALIZE } from "./__DynamicConstants";
11
+ import { _DYN_DIAGNOSTIC_LOG_INTER0 } from "./__DynamicConstants";
12
12
  /**
13
13
  * @export
14
14
  * @class ApplicationInsights
@@ -34,7 +34,7 @@ var ApplicationInsights = /** @class */ (function () {
34
34
  get: function () { return config; }
35
35
  });
36
36
  _initialize();
37
- _self[_DYN_INITIALIZE /* @min:%2einitialize */] = _initialize;
37
+ _self.initialize = _initialize;
38
38
  _self.getSKUDefaults = function () {
39
39
  _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =
40
40
  _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] : 10000;
@@ -52,14 +52,8 @@ var ApplicationInsights = /** @class */ (function () {
52
52
  "addUnloadCb"
53
53
  ]);
54
54
  function _initialize() {
55
- var extensions = [];
56
- var appInsightsChannel = new Sender();
57
- extensions.push(appInsightsChannel);
58
55
  // initialize core
59
- core[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, extensions);
60
- // initialize extensions
61
- appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, core, extensions);
62
- core.pollInternalLogs();
56
+ core.initialize(_self.config, [new Sender()]);
63
57
  }
64
58
  });
65
59
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { objDefineProp } from \"@nevware21/ts-utils\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0, _DYN_INITIALIZE } from \"./__DynamicConstants\";\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n isNullOrUndefined(config.instrumentationKey)) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n // Define _self.config\r\n objDefineProp(_self, \"config\", {\r\n configurable: true,\r\n enumerable: true,\r\n get: function () { return config; }\r\n });\r\n _initialize();\r\n _self[_DYN_INITIALIZE /* @min:%2einitialize */] = _initialize;\r\n _self.getSKUDefaults = function () {\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] : 10000;\r\n };\r\n _self.getSKUDefaults();\r\n proxyFunctions(_self, core, [\r\n \"track\",\r\n \"flush\",\r\n \"pollInternalLogs\",\r\n \"stopPollingInternalLogs\",\r\n \"unload\",\r\n \"getPlugin\",\r\n \"addPlugin\",\r\n \"evtNamespace\",\r\n \"addUnloadCb\"\r\n ]);\r\n function _initialize() {\r\n var extensions = [];\r\n var appInsightsChannel = new Sender();\r\n extensions.push(appInsightsChannel);\r\n // initialize core\r\n core[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, extensions);\r\n // initialize extensions\r\n appInsightsChannel[_DYN_INITIALIZE /* @min:%2einitialize */](_self.config, core, extensions);\r\n core.pollInternalLogs();\r\n }\r\n });\r\n }\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n *\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.initialize = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Send a manually constructed custom event\r\n *\r\n * @param item\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Immediately send all batched telemetry\r\n * @param [async=true]\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.pollInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.stopPollingInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.getSKUDefaults = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered\r\n * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous\r\n * unload call return `true` stating that all plugins reported that they also unloaded, the recommended\r\n * approach is to create a new instance and initialize that instance.\r\n * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable\r\n * to successfully remove any global references or they may just be completing the unload process asynchronously.\r\n */\r\n ApplicationInsights.prototype.unload = function (isAsync, unloadComplete) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Find and return the (first) plugin with the specified identifier if present\r\n * @param pluginIdentifier\r\n */\r\n ApplicationInsights.prototype.getPlugin = function (pluginIdentifier) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add a new plugin to the installation\r\n * @param plugin - The new plugin to add\r\n * @param replaceExisting - should any existing plugin be replaced\r\n * @param doAsync - Should the add be performed asynchronously\r\n */\r\n ApplicationInsights.prototype.addPlugin = function (plugin, replaceExisting, doAsync, addCb) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Returns the unique event namespace that should be used\r\n */\r\n ApplicationInsights.prototype.evtNamespace = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add an unload handler that will be called when the SDK is being unloaded\r\n * @param handler - the handler\r\n */\r\n ApplicationInsights.prototype.addUnloadCb = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return ApplicationInsights;\r\n}());\r\nexport { ApplicationInsights };\r\nexport { AppInsightsCore, arrForEach, isNullOrUndefined, throwError, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nexport { SeverityLevel } from \"@microsoft/applicationinsights-common\";\r\nexport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\n//# sourceMappingURL=index.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;;;;;;;;;;8DA6EM,CAAC;;;;;+BACwB;AAC/B;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"index.js.map","sources":["index.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\nimport { AppInsightsCore, isNullOrUndefined, proxyFunctions, throwError } from \"@microsoft/applicationinsights-core-js\";\r\nimport { objDefineProp } from \"@nevware21/ts-utils\";\r\nimport { _DYN_DIAGNOSTIC_LOG_INTER0 } from \"./__DynamicConstants\";\r\n/**\r\n * @export\r\n * @class ApplicationInsights\r\n */\r\nvar ApplicationInsights = /** @class */ (function () {\r\n /**\r\n * Creates an instance of ApplicationInsights.\r\n * @param config\r\n * @memberof ApplicationInsights\r\n */\r\n function ApplicationInsights(config) {\r\n var core = new AppInsightsCore();\r\n // initialize the queue and config in case they are undefined\r\n if (isNullOrUndefined(config) ||\r\n isNullOrUndefined(config.instrumentationKey)) {\r\n throwError(\"Invalid input configuration\");\r\n }\r\n dynamicProto(ApplicationInsights, this, function (_self) {\r\n // Define _self.config\r\n objDefineProp(_self, \"config\", {\r\n configurable: true,\r\n enumerable: true,\r\n get: function () { return config; }\r\n });\r\n _initialize();\r\n _self.initialize = _initialize;\r\n _self.getSKUDefaults = function () {\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] =\r\n _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] && _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] > 0 ? _self.config[_DYN_DIAGNOSTIC_LOG_INTER0 /* @min:%2ediagnosticLogInterval */] : 10000;\r\n };\r\n _self.getSKUDefaults();\r\n proxyFunctions(_self, core, [\r\n \"track\",\r\n \"flush\",\r\n \"pollInternalLogs\",\r\n \"stopPollingInternalLogs\",\r\n \"unload\",\r\n \"getPlugin\",\r\n \"addPlugin\",\r\n \"evtNamespace\",\r\n \"addUnloadCb\"\r\n ]);\r\n function _initialize() {\r\n // initialize core\r\n core.initialize(_self.config, [new Sender()]);\r\n }\r\n });\r\n }\r\n /**\r\n * Initialize this instance of ApplicationInsights\r\n *\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.initialize = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Send a manually constructed custom event\r\n *\r\n * @param item\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Immediately send all batched telemetry\r\n * @param [async=true]\r\n * @memberof ApplicationInsights\r\n */\r\n ApplicationInsights.prototype.flush = function (async) {\r\n if (async === void 0) { async = true; }\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.pollInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.stopPollingInternalLogs = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n ApplicationInsights.prototype.getSKUDefaults = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Unload and Tear down the SDK and any initialized plugins, after calling this the SDK will be considered\r\n * to be un-initialized and non-operational, re-initializing the SDK should only be attempted if the previous\r\n * unload call return `true` stating that all plugins reported that they also unloaded, the recommended\r\n * approach is to create a new instance and initialize that instance.\r\n * This is due to possible unexpected side effects caused by plugins not supporting unload / teardown, unable\r\n * to successfully remove any global references or they may just be completing the unload process asynchronously.\r\n */\r\n ApplicationInsights.prototype.unload = function (isAsync, unloadComplete) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Find and return the (first) plugin with the specified identifier if present\r\n * @param pluginIdentifier\r\n */\r\n ApplicationInsights.prototype.getPlugin = function (pluginIdentifier) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add a new plugin to the installation\r\n * @param plugin - The new plugin to add\r\n * @param replaceExisting - should any existing plugin be replaced\r\n * @param doAsync - Should the add be performed asynchronously\r\n */\r\n ApplicationInsights.prototype.addPlugin = function (plugin, replaceExisting, doAsync, addCb) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n /**\r\n * Returns the unique event namespace that should be used\r\n */\r\n ApplicationInsights.prototype.evtNamespace = function () {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Add an unload handler that will be called when the SDK is being unloaded\r\n * @param handler - the handler\r\n */\r\n ApplicationInsights.prototype.addUnloadCb = function (handler) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return ApplicationInsights;\r\n}());\r\nexport { ApplicationInsights };\r\nexport { AppInsightsCore, arrForEach, isNullOrUndefined, throwError, proxyFunctions } from \"@microsoft/applicationinsights-core-js\";\r\nexport { SeverityLevel } from \"@microsoft/applicationinsights-common\";\r\nexport { Sender } from \"@microsoft/applicationinsights-channel-js\";\r\n//# sourceMappingURL=index.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;;;;;;;;;;8DA6EM,CAAC;;;;;+BACwB;AAC/B;AACA;AACA;AACA;AACA;AACA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-web-basic",
3
- "version": "3.0.0-beta.2210-21",
3
+ "version": "3.0.0-beta.2211-03",
4
4
  "description": "Microsoft Application Insights Javascript SDK core and channel",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -53,9 +53,9 @@
53
53
  "dependencies": {
54
54
  "@microsoft/dynamicproto-js": "^1.1.7",
55
55
  "@microsoft/applicationinsights-shims": "2.0.2",
56
- "@microsoft/applicationinsights-common": "3.0.0-beta.2210-21",
57
- "@microsoft/applicationinsights-channel-js": "3.0.0-beta.2210-21",
58
- "@microsoft/applicationinsights-core-js": "3.0.0-beta.2210-21",
56
+ "@microsoft/applicationinsights-common": "3.0.0-beta.2211-03",
57
+ "@microsoft/applicationinsights-channel-js": "3.0.0-beta.2211-03",
58
+ "@microsoft/applicationinsights-core-js": "3.0.0-beta.2211-03",
59
59
  "@nevware21/ts-utils": "^0.5.0"
60
60
  },
61
61
  "license": "MIT",
@@ -10,5 +10,4 @@
10
10
  // Note: DON'T Export these const from the package as we are still targeting IE this will export a mutable variables that someone could change
11
11
  // ###########################################################################################################################################
12
12
 
13
- export const _DYN_INITIALIZE = "initialize"; // Count: 3
14
13
  export const _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval"; // Count: 4
package/src/index.ts CHANGED
@@ -65,18 +65,8 @@ export class ApplicationInsights {
65
65
  ]);
66
66
 
67
67
  function _initialize(): void {
68
- const extensions = [];
69
- const appInsightsChannel: Sender = new Sender();
70
-
71
- extensions.push(appInsightsChannel);
72
-
73
68
  // initialize core
74
- core.initialize(_self.config, extensions);
75
-
76
- // initialize extensions
77
- appInsightsChannel.initialize(_self.config, core, extensions);
78
-
79
- core.pollInternalLogs();
69
+ core.initialize(_self.config, [new Sender()]);
80
70
  }
81
71
  });
82
72
  }
@@ -1,2 +1 @@
1
- export declare const _DYN_INITIALIZE = "initialize";
2
1
  export declare const _DYN_DIAGNOSTIC_LOG_INTER0 = "diagnosticLogInterval";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.4"
8
+ "packageVersion": "7.33.6"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "aib",
3
- "version": "3.0.0-beta.2210-21",
4
- "ext": {
5
- "@js": {
6
- "file": "aib.3.0.0-beta.2210-21.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-bjUZZY9gxH7F+ELlBMBDmhNVK2Qg9N5cy5Ntgkx4V58= sha384-zHnlU+sDl2/du1O0AitcUXXdNcDqg4ustbWSbgN+derBkVC6sghcdwYcgPhouvpP sha512-3cKwFWb7TVWQg98pfyc78Gw0YivNc4aI/pRS4xP+nX5aselI5ou4D0fluGf4k4+8E4FeMXbv2KmPgxGHsTRsVw==",
9
- "hashes": {
10
- "sha256": "bjUZZY9gxH7F+ELlBMBDmhNVK2Qg9N5cy5Ntgkx4V58=",
11
- "sha384": "zHnlU+sDl2/du1O0AitcUXXdNcDqg4ustbWSbgN+derBkVC6sghcdwYcgPhouvpP",
12
- "sha512": "3cKwFWb7TVWQg98pfyc78Gw0YivNc4aI/pRS4xP+nX5aselI5ou4D0fluGf4k4+8E4FeMXbv2KmPgxGHsTRsVw=="
13
- }
14
- },
15
- "@min.js": {
16
- "file": "aib.3.0.0-beta.2210-21.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-ybUjr14SA651oYGN1/cbz0L76arNGv5uya13/lYDHmc= sha384-JHa54SfkpuNANF7bdyOqBiKodVv8rQVOS93IO1Wr79y/UDxsy6wNbtdArsFNNc9w sha512-0Tlj1wDaoXUGDUr0SpifNW9UMXvdL/4bY7dEF9r/QznjEiYjCNORm96oadoTImrhm5zv+h5kpDqzUIog+tC3ug==",
19
- "hashes": {
20
- "sha256": "ybUjr14SA651oYGN1/cbz0L76arNGv5uya13/lYDHmc=",
21
- "sha384": "JHa54SfkpuNANF7bdyOqBiKodVv8rQVOS93IO1Wr79y/UDxsy6wNbtdArsFNNc9w",
22
- "sha512": "0Tlj1wDaoXUGDUr0SpifNW9UMXvdL/4bY7dEF9r/QznjEiYjCNORm96oadoTImrhm5zv+h5kpDqzUIog+tC3ug=="
23
- }
24
- }
25
- }
26
- }