@microsoft/applicationinsights-web-basic 3.0.0-beta.2303-03 → 3.0.0-beta.2303-04

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.0.0-beta.2303-03
2
+ * Microsoft.ApplicationInsights, 3.0.0-beta.2303-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -19,9 +19,8 @@ import { isNullOrUndefined } from '@nevware21/ts-utils';
19
19
  import { ITimerHandler } from '@nevware21/ts-utils';
20
20
  import { throwError } from '@nevware21/ts-utils';
21
21
 
22
- export declare class AppInsightsCore implements IAppInsightsCore {
23
- static defaultConfig: IConfiguration;
24
- config: IConfiguration;
22
+ export declare class AppInsightsCore<CfgType extends IConfiguration = IConfiguration> implements IAppInsightsCore<CfgType> {
23
+ config: CfgType;
25
24
  logger: IDiagnosticLogger;
26
25
  /**
27
26
  * An array of the installed plugins that provide a version
@@ -40,7 +39,7 @@ export declare class AppInsightsCore implements IAppInsightsCore {
40
39
  */
41
40
  getWParam: () => number;
42
41
  constructor();
43
- initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
42
+ initialize(config: CfgType, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
44
43
  getChannels(): IChannelControls[];
45
44
  track(telemetryItem: ITelemetryItem): void;
46
45
  getProcessTelContext(): IProcessTelemetryContext;
@@ -109,7 +108,7 @@ export declare class AppInsightsCore implements IAppInsightsCore {
109
108
  * @param newConfig - The new configuration is apply
110
109
  * @param mergeExisting - Should the new configuration merge with the existing or just replace it. Default is to true.
111
110
  */
112
- updateCfg<T extends IConfiguration = IConfiguration>(newConfig: T, mergeExisting?: boolean): void;
111
+ updateCfg(newConfig: CfgType, mergeExisting?: boolean): void;
113
112
  /**
114
113
  * Returns the unique event namespace that should be used
115
114
  */
@@ -148,7 +147,7 @@ export declare class AppInsightsCore implements IAppInsightsCore {
148
147
  * @param handler
149
148
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
150
149
  */
151
- onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
150
+ onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
152
151
  protected releaseQueue(): void;
153
152
  /**
154
153
  * Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
@@ -486,9 +485,12 @@ export declare const enum eSeverityLevel {
486
485
  Critical = 4
487
486
  }
488
487
 
489
- export declare interface IAppInsightsCore extends IPerfManagerProvider {
490
- config: IConfiguration;
491
- logger: IDiagnosticLogger;
488
+ export declare interface IAppInsightsCore<CfgType extends IConfiguration = IConfiguration> extends IPerfManagerProvider {
489
+ readonly config: CfgType;
490
+ /**
491
+ * The current logger instance for this instance.
492
+ */
493
+ readonly logger: IDiagnosticLogger;
492
494
  /**
493
495
  * An array of the installed plugins that provide a version
494
496
  */
@@ -501,7 +503,7 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
501
503
  * Returns a value that indicates whether the instance has already been previously initialized.
502
504
  */
503
505
  isInitialized?: () => boolean;
504
- initialize(config: IConfiguration, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
506
+ initialize(config: CfgType, extensions: IPlugin[], logger?: IDiagnosticLogger, notificationManager?: INotificationManager): void;
505
507
  getChannels(): IChannelControls[];
506
508
  track(telemetryItem: ITelemetryItem): void;
507
509
  /**
@@ -573,7 +575,7 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
573
575
  * @param newConfig - The new configuration is apply
574
576
  * @param mergeExisting - Should the new configuration merge with the existing or just replace it. Default is to merge.
575
577
  */
576
- updateCfg<T extends IConfiguration = IConfiguration>(newConfig: T, mergeExisting?: boolean): void;
578
+ updateCfg(newConfig: CfgType, mergeExisting?: boolean): void;
577
579
  /**
578
580
  * Returns the unique event namespace that should be used when registering events
579
581
  */
@@ -613,7 +615,7 @@ export declare interface IAppInsightsCore extends IPerfManagerProvider {
613
615
  * @param handler
614
616
  * @returns A watcher handler instance that can be used to remove itself when being unloaded
615
617
  */
616
- onCfgChange<T extends IConfiguration = IConfiguration>(handler: WatcherFunction<T>): IUnloadHook;
618
+ onCfgChange(handler: WatcherFunction<CfgType>): IUnloadHook;
617
619
  /**
618
620
  * Function used to identify the get w parameter used to identify status bit to some channels
619
621
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-03
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/dist-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-03
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2303-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-web-basic",
3
- "version": "3.0.0-beta.2303-03",
3
+ "version": "3.0.0-beta.2303-04",
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.2303-03",
57
- "@microsoft/applicationinsights-channel-js": "3.0.0-beta.2303-03",
58
- "@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-03",
56
+ "@microsoft/applicationinsights-common": "3.0.0-beta.2303-04",
57
+ "@microsoft/applicationinsights-channel-js": "3.0.0-beta.2303-04",
58
+ "@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-04",
59
59
  "@nevware21/ts-utils": ">= 0.8.1 < 2.x"
60
60
  },
61
61
  "license": "MIT",
@@ -1,26 +0,0 @@
1
- {
2
- "name": "aib",
3
- "version": "3.0.0-beta.2303-03",
4
- "ext": {
5
- "@js": {
6
- "file": "aib.3.0.0-beta.2303-03.js",
7
- "type": "text/javascript; charset=utf-8",
8
- "integrity": "sha256-eEpyJcAB4du9bIX4F790IVgIOgg6K8xeS3tDU8n19Wk= sha384-J61MbxwhSASyfBSepZ2n98JzMyq/KH4UdXl4rpgKxvEY/AOKtJ4CaBM/H3+PO8yj sha512-nKCJyzQFUGGb2ZN/I3fvHtNI1uo76iX1wNztrZgQVID++eHCF0PXKP8b9rbxBSrvlG5fK4qzzksiGnB23/e/pQ==",
9
- "hashes": {
10
- "sha256": "eEpyJcAB4du9bIX4F790IVgIOgg6K8xeS3tDU8n19Wk=",
11
- "sha384": "J61MbxwhSASyfBSepZ2n98JzMyq/KH4UdXl4rpgKxvEY/AOKtJ4CaBM/H3+PO8yj",
12
- "sha512": "nKCJyzQFUGGb2ZN/I3fvHtNI1uo76iX1wNztrZgQVID++eHCF0PXKP8b9rbxBSrvlG5fK4qzzksiGnB23/e/pQ=="
13
- }
14
- },
15
- "@min.js": {
16
- "file": "aib.3.0.0-beta.2303-03.min.js",
17
- "type": "text/javascript; charset=utf-8",
18
- "integrity": "sha256-xBsVHFseyD3iMjvbXL6icgcPlPp3szoy+lzWFQayhf4= sha384-WXxEyalbT4qLSLk+wwGEdM3HkGdErkvTc5WTRy2kbU7AIlF9Mxz/LBMOB1/N49kC sha512-d0gtO/AJQCssZ6FaTYI8IUvCwDQbUY44lctVOJDFZnrxYunAYrgHjWOAT6ahMlVbjV1MhbNnJzeFFkRAK8SKOw==",
19
- "hashes": {
20
- "sha256": "xBsVHFseyD3iMjvbXL6icgcPlPp3szoy+lzWFQayhf4=",
21
- "sha384": "WXxEyalbT4qLSLk+wwGEdM3HkGdErkvTc5WTRy2kbU7AIlF9Mxz/LBMOB1/N49kC",
22
- "sha512": "d0gtO/AJQCssZ6FaTYI8IUvCwDQbUY44lctVOJDFZnrxYunAYrgHjWOAT6ahMlVbjV1MhbNnJzeFFkRAK8SKOw=="
23
- }
24
- }
25
- }
26
- }