@microsoft/applicationinsights-teechannel-js 3.3.0-nightly3.2406-06 → 3.3.0-nightly3.2406-08

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 (45) hide show
  1. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.cjs.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.cjs.js} +3 -3
  2. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.cjs.js.map +1 -0
  3. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.cjs.min.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.cjs.min.js} +3 -3
  4. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.gbl.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.gbl.js} +5 -5
  6. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.gbl.js.map +1 -0
  7. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.gbl.min.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.gbl.min.js} +3 -3
  8. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.js} +5 -5
  11. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.js.map +1 -0
  12. package/browser/es5/{applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.min.js → applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.min.js} +3 -3
  13. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-08.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js +2 -2
  15. package/browser/es5/applicationinsights-teechannel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-teechannel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js +4 -4
  19. package/browser/es5/applicationinsights-teechannel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-teechannel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-teechannel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-teechannel-js.3.js +4 -4
  24. package/browser/es5/applicationinsights-teechannel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-teechannel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-teechannel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-teechannel-js.js +2 -2
  28. package/dist/es5/applicationinsights-teechannel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-teechannel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-teechannel-js.min.js.map +1 -1
  31. package/dist-es5/ChannelController.js +1 -1
  32. package/dist-es5/Interfaces/ITeeChannelConfig.js +1 -1
  33. package/dist-es5/TeeChannel.js +1 -1
  34. package/dist-es5/__DynamicConstants.js +1 -1
  35. package/dist-es5/applicationinsights-teechannel-js.js +1 -1
  36. package/package.json +3 -3
  37. package/types/applicationinsights-teechannel-js.d.ts +1 -1
  38. package/types/applicationinsights-teechannel-js.namespaced.d.ts +52 -5
  39. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.cjs.js.map +0 -1
  40. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.cjs.min.js.map +0 -1
  41. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.gbl.js.map +0 -1
  42. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.gbl.min.js.map +0 -1
  43. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.integrity.json +0 -66
  44. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.js.map +0 -1
  45. package/browser/es5/applicationinsights-teechannel-js.3.3.0-nightly3.2406-06.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Application Insights JavaScript SDK - Tee Channel, 3.3.0-nightly3.2406-08
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-teechannel-js",
3
- "version": "3.3.0-nightly3.2406-06",
3
+ "version": "3.3.0-nightly3.2406-08",
4
4
  "description": "Microsoft Application Insights JavaScript SDK Tee Channel",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -54,8 +54,8 @@
54
54
  "dependencies": {
55
55
  "@microsoft/dynamicproto-js": "^2.0.3",
56
56
  "@microsoft/applicationinsights-shims": "3.0.1",
57
- "@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-06",
58
- "@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-06",
57
+ "@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-08",
58
+ "@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-08",
59
59
  "@nevware21/ts-utils": ">= 0.11.1 < 2.x",
60
60
  "@nevware21/ts-async": ">= 0.5.1 < 2.x"
61
61
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Microsoft Application Insights JavaScript SDK Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Tee Channel, 3.3.0-nightly3.2406-06
2
+ * Microsoft Application Insights JavaScript SDK Tee Channel, 3.3.0-nightly3.2406-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -110,6 +110,23 @@ declare namespace ApplicationInsights {
110
110
 
111
111
  type DistributedTracingModes = number | eDistributedTracingModes;
112
112
 
113
+ const enum eActiveStatus {
114
+ NONE = 0,
115
+ /**
116
+ * inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
117
+ */
118
+ INACTIVE = 1,
119
+ /**
120
+ * active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
121
+ */
122
+ ACTIVE = 2,
123
+ /**
124
+ * Waiting for promises to be resolved
125
+ * NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
126
+ */
127
+ PENDING = 3
128
+ }
129
+
113
130
  const enum eDistributedTracingModes {
114
131
  /**
115
132
  * (Default) Send Application Insights correlation headers
@@ -214,7 +231,8 @@ declare namespace ApplicationInsights {
214
231
  DynamicConfigException = 108,
215
232
  DefaultThrottleMsgKey = 109,
216
233
  CdnDeprecation = 110,
217
- SdkLdrUpdate = 111
234
+ SdkLdrUpdate = 111,
235
+ InitPromiseException = 112
218
236
  }
219
237
 
220
238
  const enum eLoggingSeverity {
@@ -414,6 +432,21 @@ declare namespace ApplicationInsights {
414
432
  * Function used to identify the get w parameter used to identify status bit to some channels
415
433
  */
416
434
  getWParam: () => number;
435
+ /**
436
+ * Watches and tracks status of initialization process
437
+ * @returns ActiveStatus
438
+ * @since 3.3.0
439
+ * If returned status is active, it means initialization process is completed.
440
+ * If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
441
+ * If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
442
+ */
443
+ activeStatus?: () => eActiveStatus | number;
444
+ /**
445
+ * Set Active Status to pending, which will block the incoming changes until internal promises are resolved
446
+ * @internal Internal use
447
+ * @since 3.3.0
448
+ */
449
+ _setPendingStatus?: () => void;
417
450
  }
418
451
 
419
452
  interface IBaseProcessingContext {
@@ -933,11 +966,11 @@ declare namespace ApplicationInsights {
933
966
  /**
934
967
  * Instrumentation key of resource. Either this or connectionString must be specified.
935
968
  */
936
- instrumentationKey?: string;
969
+ instrumentationKey?: string | IPromise<string>;
937
970
  /**
938
971
  * Connection string of resource. Either this or instrumentationKey must be specified.
939
972
  */
940
- connectionString?: string;
973
+ connectionString?: string | IPromise<string>;
941
974
  /**
942
975
  * Set the timer interval (in ms) for internal logging queue, this is the
943
976
  * amount of time to wait after logger.queue messages are detected to be sent.
@@ -981,7 +1014,7 @@ declare namespace ApplicationInsights {
981
1014
  /**
982
1015
  * Endpoint where telemetry data is sent
983
1016
  */
984
- endpointUrl?: string;
1017
+ endpointUrl?: string | IPromise<string>;
985
1018
  /**
986
1019
  * Extension configs loaded in SDK
987
1020
  */
@@ -1083,6 +1116,20 @@ declare namespace ApplicationInsights {
1083
1116
  * @defaultValue undefined
1084
1117
  */
1085
1118
  featureOptIn?: IFeatureOptIn;
1119
+ /**
1120
+ * If your connection string, instrumentation key and endpoint url are promises,
1121
+ * this config is to manually set timeout for those promises.
1122
+ * Default: 50000ms
1123
+ * @since 3.3.0
1124
+ */
1125
+ initTimeOut?: number;
1126
+ /**
1127
+ * If your connection string, instrumentation key and endpoint url are promises,
1128
+ * this config is to manually set in memory proxy track calls count limit before promises finished.
1129
+ * Default: 100
1130
+ * @since 3.3.0
1131
+ */
1132
+ initInMemoMaxSize?: number;
1086
1133
  }
1087
1134
 
1088
1135
  interface ICookieMgr {