@microsoft/applicationinsights-debugplugin-js 3.3.0-nightly3.2406-07 → 3.3.0-nightly3.2406-09

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 (53) hide show
  1. package/browser/es5/{ai.dbg.3.3.0-nightly3.2406-07.cjs.js → ai.dbg.3.3.0-nightly3.2406-09.cjs.js} +47 -50
  2. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.cjs.js.map +1 -0
  3. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.cjs.min.js +6 -0
  4. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.dbg.3.3.0-nightly3.2406-07.gbl.js → ai.dbg.3.3.0-nightly3.2406-09.gbl.js} +49 -52
  6. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.gbl.js.map +1 -0
  7. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.gbl.min.js +6 -0
  8. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.integrity.json +66 -0
  10. package/browser/es5/{ai.dbg.3.3.0-nightly3.2406-07.js → ai.dbg.3.3.0-nightly3.2406-09.js} +49 -52
  11. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.js.map +1 -0
  12. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.min.js +6 -0
  13. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-09.min.js.map +1 -0
  14. package/browser/es5/ai.dbg.3.cjs.js +46 -49
  15. package/browser/es5/ai.dbg.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.dbg.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.dbg.3.gbl.js +48 -51
  19. package/browser/es5/ai.dbg.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.dbg.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.dbg.3.integrity.json +25 -25
  23. package/browser/es5/ai.dbg.3.js +48 -51
  24. package/browser/es5/ai.dbg.3.js.map +1 -1
  25. package/browser/es5/ai.dbg.3.min.js +2 -2
  26. package/browser/es5/ai.dbg.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-debugplugin-js.js +46 -49
  28. package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-debugplugin-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -1
  31. package/dist-es5/DebugPlugin.js +1 -1
  32. package/dist-es5/__DynamicConstants.js +1 -1
  33. package/dist-es5/applicationinsights-debugplugin-js.js +1 -1
  34. package/dist-es5/components/Dashboard.js +1 -1
  35. package/dist-es5/components/LogEntry.js +1 -1
  36. package/dist-es5/components/debugBins.js +1 -1
  37. package/dist-es5/components/filterList.js +1 -1
  38. package/dist-es5/components/helpers.js +1 -1
  39. package/dist-es5/components/styleNodeSrc.js +1 -1
  40. package/dist-es5/interfaces/IDebugPluginConfig.js +1 -1
  41. package/package.json +3 -3
  42. package/types/applicationinsights-debugplugin-js.d.ts +1 -1
  43. package/types/applicationinsights-debugplugin-js.namespaced.d.ts +52 -5
  44. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.cjs.js.map +0 -1
  45. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.cjs.min.js +0 -6
  46. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.cjs.min.js.map +0 -1
  47. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.gbl.js.map +0 -1
  48. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.gbl.min.js +0 -6
  49. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.gbl.min.js.map +0 -1
  50. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.integrity.json +0 -66
  51. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.js.map +0 -1
  52. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.min.js +0 -6
  53. package/browser/es5/ai.dbg.3.3.0-nightly3.2406-07.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import dynamicProto from "@microsoft/dynamicproto-js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { isArray, isBoolean, isError, isNumber, isObject, isString, objToString } from "@microsoft/applicationinsights-core-js";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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 - Debug Plugin, 3.3.0-nightly3.2406-07
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.3.0-nightly3.2406-09
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-debugplugin-js",
3
- "version": "3.3.0-nightly3.2406-07",
3
+ "version": "3.3.0-nightly3.2406-09",
4
4
  "description": "Microsoft Application Insights JavaScript SDK - Debug Plugin extension",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -52,8 +52,8 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@microsoft/dynamicproto-js": "^2.0.3",
55
- "@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-07",
56
- "@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-07",
55
+ "@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-09",
56
+ "@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-09",
57
57
  "@microsoft/applicationinsights-shims": "3.0.1",
58
58
  "@nevware21/ts-utils": ">= 0.11.1 < 2.x"
59
59
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 3.3.0-nightly3.2406-07
2
+ * Microsoft.ApplicationInsights, 3.3.0-nightly3.2406-09
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.ApplicationInsights, 3.3.0-nightly3.2406-07
2
+ * Microsoft.ApplicationInsights, 3.3.0-nightly3.2406-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -114,6 +114,23 @@ declare namespace ApplicationInsights {
114
114
  processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
115
115
  }
116
116
 
117
+ const enum eActiveStatus {
118
+ NONE = 0,
119
+ /**
120
+ * inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
121
+ */
122
+ INACTIVE = 1,
123
+ /**
124
+ * active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
125
+ */
126
+ ACTIVE = 2,
127
+ /**
128
+ * Waiting for promises to be resolved
129
+ * NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
130
+ */
131
+ PENDING = 3
132
+ }
133
+
117
134
  const enum _eInternalMessageId {
118
135
  BrowserDoesNotSupportLocalStorage = 0,
119
136
  BrowserCannotReadLocalStorage = 1,
@@ -203,7 +220,8 @@ declare namespace ApplicationInsights {
203
220
  DynamicConfigException = 108,
204
221
  DefaultThrottleMsgKey = 109,
205
222
  CdnDeprecation = 110,
206
- SdkLdrUpdate = 111
223
+ SdkLdrUpdate = 111,
224
+ InitPromiseException = 112
207
225
  }
208
226
 
209
227
  const enum eLoggingSeverity {
@@ -403,6 +421,21 @@ declare namespace ApplicationInsights {
403
421
  * Function used to identify the get w parameter used to identify status bit to some channels
404
422
  */
405
423
  getWParam: () => number;
424
+ /**
425
+ * Watches and tracks status of initialization process
426
+ * @returns ActiveStatus
427
+ * @since 3.3.0
428
+ * If returned status is active, it means initialization process is completed.
429
+ * If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
430
+ * If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
431
+ */
432
+ activeStatus?: () => eActiveStatus | number;
433
+ /**
434
+ * Set Active Status to pending, which will block the incoming changes until internal promises are resolved
435
+ * @internal Internal use
436
+ * @since 3.3.0
437
+ */
438
+ _setPendingStatus?: () => void;
406
439
  }
407
440
 
408
441
  interface IBaseProcessingContext {
@@ -589,11 +622,11 @@ declare namespace ApplicationInsights {
589
622
  /**
590
623
  * Instrumentation key of resource. Either this or connectionString must be specified.
591
624
  */
592
- instrumentationKey?: string;
625
+ instrumentationKey?: string | IPromise<string>;
593
626
  /**
594
627
  * Connection string of resource. Either this or instrumentationKey must be specified.
595
628
  */
596
- connectionString?: string;
629
+ connectionString?: string | IPromise<string>;
597
630
  /**
598
631
  * Set the timer interval (in ms) for internal logging queue, this is the
599
632
  * amount of time to wait after logger.queue messages are detected to be sent.
@@ -637,7 +670,7 @@ declare namespace ApplicationInsights {
637
670
  /**
638
671
  * Endpoint where telemetry data is sent
639
672
  */
640
- endpointUrl?: string;
673
+ endpointUrl?: string | IPromise<string>;
641
674
  /**
642
675
  * Extension configs loaded in SDK
643
676
  */
@@ -739,6 +772,20 @@ declare namespace ApplicationInsights {
739
772
  * @defaultValue undefined
740
773
  */
741
774
  featureOptIn?: IFeatureOptIn;
775
+ /**
776
+ * If your connection string, instrumentation key and endpoint url are promises,
777
+ * this config is to manually set timeout for those promises.
778
+ * Default: 50000ms
779
+ * @since 3.3.0
780
+ */
781
+ initTimeOut?: number;
782
+ /**
783
+ * If your connection string, instrumentation key and endpoint url are promises,
784
+ * this config is to manually set in memory proxy track calls count limit before promises finished.
785
+ * Default: 100
786
+ * @since 3.3.0
787
+ */
788
+ initInMemoMaxSize?: number;
742
789
  }
743
790
 
744
791
  interface ICookieMgr {