@microsoft/applicationinsights-common 2.7.5-nightly.2203-03 → 2.7.5

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 (189) hide show
  1. package/browser/applicationinsights-common.integrity.json +9 -9
  2. package/browser/applicationinsights-common.js +244 -853
  3. package/browser/applicationinsights-common.js.map +1 -1
  4. package/browser/applicationinsights-common.min.js +2 -2
  5. package/browser/applicationinsights-common.min.js.map +1 -1
  6. package/dist/applicationinsights-common.api.json +456 -386
  7. package/dist/applicationinsights-common.api.md +8 -21
  8. package/dist/applicationinsights-common.d.ts +12 -33
  9. package/dist/applicationinsights-common.js +244 -853
  10. package/dist/applicationinsights-common.js.map +1 -1
  11. package/dist/applicationinsights-common.min.js +2 -2
  12. package/dist/applicationinsights-common.min.js.map +1 -1
  13. package/dist/applicationinsights-common.rollup.d.ts +12 -33
  14. package/dist-esm/ConnectionStringParser.js +1 -1
  15. package/dist-esm/Constants.js +1 -1
  16. package/dist-esm/DomHelperFuncs.js +1 -1
  17. package/dist-esm/Enums.js +24 -11
  18. package/dist-esm/Enums.js.map +1 -1
  19. package/dist-esm/HelperFuncs.js +6 -7
  20. package/dist-esm/HelperFuncs.js.map +1 -1
  21. package/dist-esm/Interfaces/ConnectionString.js +1 -1
  22. package/dist-esm/Interfaces/Context/IApplication.js +1 -1
  23. package/dist-esm/Interfaces/Context/IDevice.js +1 -1
  24. package/dist-esm/Interfaces/Context/IInternal.js +1 -1
  25. package/dist-esm/Interfaces/Context/ILocation.js +1 -1
  26. package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
  27. package/dist-esm/Interfaces/Context/ISample.js +1 -1
  28. package/dist-esm/Interfaces/Context/ISession.js +1 -1
  29. package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
  30. package/dist-esm/Interfaces/Context/IUser.js +1 -1
  31. package/dist-esm/Interfaces/Context/IWeb.js +1 -1
  32. package/dist-esm/Interfaces/Contracts/Generated/AvailabilityData.js +1 -1
  33. package/dist-esm/Interfaces/Contracts/Generated/Base.js +1 -1
  34. package/dist-esm/Interfaces/Contracts/Generated/ContextTagKeys.js +1 -1
  35. package/dist-esm/Interfaces/Contracts/Generated/Data.js +1 -1
  36. package/dist-esm/Interfaces/Contracts/Generated/DataPoint.js +1 -1
  37. package/dist-esm/Interfaces/Contracts/Generated/DataPointType.js +1 -1
  38. package/dist-esm/Interfaces/Contracts/Generated/DependencyKind.js +1 -1
  39. package/dist-esm/Interfaces/Contracts/Generated/DependencySourceType.js +1 -1
  40. package/dist-esm/Interfaces/Contracts/Generated/Domain.js +1 -1
  41. package/dist-esm/Interfaces/Contracts/Generated/Envelope.js +1 -1
  42. package/dist-esm/Interfaces/Contracts/Generated/EventData.js +1 -1
  43. package/dist-esm/Interfaces/Contracts/Generated/ExceptionData.js +1 -1
  44. package/dist-esm/Interfaces/Contracts/Generated/ExceptionDetails.js +1 -1
  45. package/dist-esm/Interfaces/Contracts/Generated/MessageData.js +1 -1
  46. package/dist-esm/Interfaces/Contracts/Generated/MetricData.js +1 -1
  47. package/dist-esm/Interfaces/Contracts/Generated/PageViewData.js +1 -1
  48. package/dist-esm/Interfaces/Contracts/Generated/PageViewPerfData.js +1 -1
  49. package/dist-esm/Interfaces/Contracts/Generated/RemoteDependencyData.js +1 -1
  50. package/dist-esm/Interfaces/Contracts/Generated/RequestData.js +1 -1
  51. package/dist-esm/Interfaces/Contracts/Generated/SeverityLevel.js +1 -1
  52. package/dist-esm/Interfaces/Contracts/Generated/StackFrame.js +1 -1
  53. package/dist-esm/Interfaces/IAppInsights.js +1 -1
  54. package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
  55. package/dist-esm/Interfaces/IConfig.js +1 -1
  56. package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
  57. package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
  58. package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
  59. package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
  60. package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
  61. package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  62. package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
  63. package/dist-esm/Interfaces/IPartC.js +1 -1
  64. package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
  65. package/dist-esm/Interfaces/IRequestContext.js +1 -1
  66. package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
  67. package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
  68. package/dist-esm/Interfaces/PartAExtensions.js +1 -1
  69. package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
  70. package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
  71. package/dist-esm/RequestResponseHeaders.js +1 -1
  72. package/dist-esm/StorageHelperFuncs.js +12 -27
  73. package/dist-esm/StorageHelperFuncs.js.map +1 -1
  74. package/dist-esm/Telemetry/Common/Base.js +1 -1
  75. package/dist-esm/Telemetry/Common/Data.js +1 -1
  76. package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
  77. package/dist-esm/Telemetry/Common/DataSanitizer.js +8 -8
  78. package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
  79. package/dist-esm/Telemetry/Common/Envelope.js +1 -1
  80. package/dist-esm/Telemetry/Event.js +1 -1
  81. package/dist-esm/Telemetry/Exception.js +1 -1
  82. package/dist-esm/Telemetry/Metric.js +1 -1
  83. package/dist-esm/Telemetry/PageView.js +1 -1
  84. package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
  85. package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
  86. package/dist-esm/Telemetry/Trace.js +1 -1
  87. package/dist-esm/TelemetryItemCreator.js +1 -1
  88. package/dist-esm/UrlHelperFuncs.js +1 -1
  89. package/dist-esm/Util.js +3 -3
  90. package/dist-esm/Util.js.map +1 -1
  91. package/dist-esm/applicationinsights-common.js +2 -2
  92. package/dist-esm/applicationinsights-common.js.map +1 -1
  93. package/package.json +54 -57
  94. package/src/Enums.ts +3 -19
  95. package/src/HelperFuncs.ts +5 -7
  96. package/src/StorageHelperFuncs.ts +17 -34
  97. package/src/Telemetry/Common/DataSanitizer.ts +13 -13
  98. package/src/Telemetry/Exception.ts +15 -27
  99. package/src/TelemetryItemCreator.ts +1 -1
  100. package/src/Util.ts +3 -2
  101. package/src/applicationinsights-common.ts +2 -2
  102. package/types/Enums.d.ts +2 -13
  103. package/types/StorageHelperFuncs.d.ts +2 -14
  104. package/types/applicationinsights-common.d.ts +2 -2
  105. package/types/tsdoc-metadata.json +1 -1
  106. package/dist-esm/Interfaces/Contracts/AvailabilityData.js +0 -52
  107. package/dist-esm/Interfaces/Contracts/AvailabilityData.js.map +0 -1
  108. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +0 -89
  109. package/dist-esm/Interfaces/Contracts/ContextTagKeys.js.map +0 -1
  110. package/dist-esm/Interfaces/Contracts/DataPointType.js +0 -8
  111. package/dist-esm/Interfaces/Contracts/DataPointType.js.map +0 -1
  112. package/dist-esm/Interfaces/Contracts/DependencyKind.js +0 -8
  113. package/dist-esm/Interfaces/Contracts/DependencyKind.js.map +0 -1
  114. package/dist-esm/Interfaces/Contracts/DependencySourceType.js +0 -8
  115. package/dist-esm/Interfaces/Contracts/DependencySourceType.js.map +0 -1
  116. package/dist-esm/Interfaces/Contracts/IBase.js +0 -8
  117. package/dist-esm/Interfaces/Contracts/IBase.js.map +0 -1
  118. package/dist-esm/Interfaces/Contracts/IData.js +0 -8
  119. package/dist-esm/Interfaces/Contracts/IData.js.map +0 -1
  120. package/dist-esm/Interfaces/Contracts/IDataPoint.js +0 -6
  121. package/dist-esm/Interfaces/Contracts/IDataPoint.js.map +0 -1
  122. package/dist-esm/Interfaces/Contracts/IDomain.js +0 -8
  123. package/dist-esm/Interfaces/Contracts/IDomain.js.map +0 -1
  124. package/dist-esm/Interfaces/Contracts/IEnvelope.js +0 -46
  125. package/dist-esm/Interfaces/Contracts/IEnvelope.js.map +0 -1
  126. package/dist-esm/Interfaces/Contracts/IEventData.js +0 -8
  127. package/dist-esm/Interfaces/Contracts/IEventData.js.map +0 -1
  128. package/dist-esm/Interfaces/Contracts/IExceptionData.js +0 -8
  129. package/dist-esm/Interfaces/Contracts/IExceptionData.js.map +0 -1
  130. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +0 -8
  131. package/dist-esm/Interfaces/Contracts/IExceptionDetails.js.map +0 -1
  132. package/dist-esm/Interfaces/Contracts/IMessageData.js +0 -8
  133. package/dist-esm/Interfaces/Contracts/IMessageData.js.map +0 -1
  134. package/dist-esm/Interfaces/Contracts/IMetricData.js +0 -8
  135. package/dist-esm/Interfaces/Contracts/IMetricData.js.map +0 -1
  136. package/dist-esm/Interfaces/Contracts/IPageViewData.js +0 -8
  137. package/dist-esm/Interfaces/Contracts/IPageViewData.js.map +0 -1
  138. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +0 -8
  139. package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js.map +0 -1
  140. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +0 -8
  141. package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js.map +0 -1
  142. package/dist-esm/Interfaces/Contracts/IStackFrame.js +0 -8
  143. package/dist-esm/Interfaces/Contracts/IStackFrame.js.map +0 -1
  144. package/dist-esm/Interfaces/Contracts/RequestData.js +0 -46
  145. package/dist-esm/Interfaces/Contracts/RequestData.js.map +0 -1
  146. package/dist-esm/Interfaces/Contracts/SeverityLevel.js +0 -19
  147. package/dist-esm/Interfaces/Contracts/SeverityLevel.js.map +0 -1
  148. package/src/Interfaces/Contracts/AvailabilityData.ts +0 -57
  149. package/src/Interfaces/Contracts/ContextTagKeys.ts +0 -299
  150. package/src/Interfaces/Contracts/DataPointType.ts +0 -10
  151. package/src/Interfaces/Contracts/DependencyKind.ts +0 -11
  152. package/src/Interfaces/Contracts/DependencySourceType.ts +0 -11
  153. package/src/Interfaces/Contracts/IBase.ts +0 -13
  154. package/src/Interfaces/Contracts/IData.ts +0 -19
  155. package/src/Interfaces/Contracts/IDataPoint.ts +0 -44
  156. package/src/Interfaces/Contracts/IDomain.ts +0 -8
  157. package/src/Interfaces/Contracts/IEnvelope.ts +0 -50
  158. package/src/Interfaces/Contracts/IEventData.ts +0 -30
  159. package/src/Interfaces/Contracts/IExceptionData.ts +0 -37
  160. package/src/Interfaces/Contracts/IExceptionDetails.ts +0 -45
  161. package/src/Interfaces/Contracts/IMessageData.ts +0 -36
  162. package/src/Interfaces/Contracts/IMetricData.ts +0 -31
  163. package/src/Interfaces/Contracts/IPageViewData.ts +0 -26
  164. package/src/Interfaces/Contracts/IPageViewPerfData.ts +0 -35
  165. package/src/Interfaces/Contracts/IRemoteDependencyData.ts +0 -65
  166. package/src/Interfaces/Contracts/IStackFrame.ts +0 -33
  167. package/src/Interfaces/Contracts/RequestData.ts +0 -50
  168. package/src/Interfaces/Contracts/SeverityLevel.ts +0 -15
  169. package/types/Interfaces/Contracts/AvailabilityData.d.ts +0 -0
  170. package/types/Interfaces/Contracts/ContextTagKeys.d.ts +0 -175
  171. package/types/Interfaces/Contracts/DataPointType.d.ts +0 -7
  172. package/types/Interfaces/Contracts/DependencyKind.d.ts +0 -8
  173. package/types/Interfaces/Contracts/DependencySourceType.d.ts +0 -8
  174. package/types/Interfaces/Contracts/IBase.d.ts +0 -9
  175. package/types/Interfaces/Contracts/IData.d.ts +0 -14
  176. package/types/Interfaces/Contracts/IDataPoint.d.ts +0 -34
  177. package/types/Interfaces/Contracts/IDomain.d.ts +0 -5
  178. package/types/Interfaces/Contracts/IEnvelope.d.ts +0 -0
  179. package/types/Interfaces/Contracts/IEventData.d.ts +0 -22
  180. package/types/Interfaces/Contracts/IExceptionData.d.ts +0 -28
  181. package/types/Interfaces/Contracts/IExceptionDetails.d.ts +0 -34
  182. package/types/Interfaces/Contracts/IMessageData.d.ts +0 -27
  183. package/types/Interfaces/Contracts/IMetricData.d.ts +0 -23
  184. package/types/Interfaces/Contracts/IPageViewData.d.ts +0 -18
  185. package/types/Interfaces/Contracts/IPageViewPerfData.d.ts +0 -26
  186. package/types/Interfaces/Contracts/IRemoteDependencyData.d.ts +0 -50
  187. package/types/Interfaces/Contracts/IStackFrame.d.ts +0 -25
  188. package/types/Interfaces/Contracts/RequestData.d.ts +0 -0
  189. package/types/Interfaces/Contracts/SeverityLevel.d.ts +0 -10
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Common JavaScript Library, 2.7.5-nightly.2203-03
2
+ * Microsoft Application Insights Common JavaScript Library, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -212,23 +212,7 @@ export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio
212
212
  */
213
213
  export declare const DisabledPropertyName: string;
214
214
 
215
- export declare const DistributedTracingModes: {
216
- AI: number;
217
- AI_AND_W3C: number;
218
- W3C: number;
219
- };
220
-
221
- export declare type DistributedTracingModes = number | eDistributedTracingModes;
222
-
223
- /**
224
- * The abstract common base of all domains.
225
- */
226
- declare interface Domain {
227
- }
228
-
229
- export declare function dsPadNumber(num: number): string;
230
-
231
- export declare const enum eDistributedTracingModes {
215
+ export declare enum DistributedTracingModes {
232
216
  /**
233
217
  * (Default) Send Application Insights correlation headers
234
218
  */
@@ -243,6 +227,14 @@ export declare const enum eDistributedTracingModes {
243
227
  W3C = 2
244
228
  }
245
229
 
230
+ /**
231
+ * The abstract common base of all domains.
232
+ */
233
+ declare interface Domain {
234
+ }
235
+
236
+ export declare function dsPadNumber(num: number): string;
237
+
246
238
  export declare class Envelope extends Envelope_2 implements IEnvelope {
247
239
  /**
248
240
  * The data contract for serializing this object.
@@ -2334,25 +2326,12 @@ export declare function urlParseUrl(url: string): HTMLAnchorElement;
2334
2326
 
2335
2327
  export declare const Util: IUtil;
2336
2328
 
2337
- /**
2338
- * Returns whether LocalStorage can be used, if the reset parameter is passed a true this will override
2339
- * any previous disable calls.
2340
- * @param reset - Should the usage be reset and determined only based on whether LocalStorage is available
2341
- */
2342
- export declare function utlCanUseLocalStorage(reset?: boolean): boolean;
2329
+ export declare function utlCanUseLocalStorage(): boolean;
2343
2330
 
2344
- export declare function utlCanUseSessionStorage(reset?: boolean): boolean;
2331
+ export declare function utlCanUseSessionStorage(): boolean;
2345
2332
 
2346
- /**
2347
- * Disables the global SDK usage of local or session storage if available
2348
- */
2349
2333
  export declare function utlDisableStorage(): void;
2350
2334
 
2351
- /**
2352
- * Re-enables the global SDK usage of local or session storage if available
2353
- */
2354
- export declare function utlEnableStorage(): void;
2355
-
2356
2335
  export declare function utlGetLocalStorage(logger: IDiagnosticLogger, name: string): string;
2357
2336
 
2358
2337
  export declare function utlGetSessionStorage(logger: IDiagnosticLogger, name: string): string;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/dist-esm/Enums.js CHANGED
@@ -1,17 +1,30 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
6
6
 
7
- import { createEnumStyle } from "@microsoft/applicationinsights-core-js";
8
- export var StorageType = createEnumStyle({
9
- LocalStorage: 0 /* LocalStorage */,
10
- SessionStorage: 1 /* SessionStorage */
11
- });
12
- export var DistributedTracingModes = createEnumStyle({
13
- AI: 0 /* AI */,
14
- AI_AND_W3C: 1 /* AI_AND_W3C */,
15
- W3C: 2 /* W3C */
16
- });
7
+ /**
8
+ * Type of storage to differentiate between local storage and session storage
9
+ */
10
+ export var StorageType;
11
+ (function (StorageType) {
12
+ StorageType[StorageType["LocalStorage"] = 0] = "LocalStorage";
13
+ StorageType[StorageType["SessionStorage"] = 1] = "SessionStorage";
14
+ })(StorageType || (StorageType = {}));
15
+ export var DistributedTracingModes;
16
+ (function (DistributedTracingModes) {
17
+ /**
18
+ * (Default) Send Application Insights correlation headers
19
+ */
20
+ DistributedTracingModes[DistributedTracingModes["AI"] = 0] = "AI";
21
+ /**
22
+ * Send both W3C Trace Context headers and back-compatibility Application Insights headers
23
+ */
24
+ DistributedTracingModes[DistributedTracingModes["AI_AND_W3C"] = 1] = "AI_AND_W3C";
25
+ /**
26
+ * Send W3C Trace Context headers
27
+ */
28
+ DistributedTracingModes[DistributedTracingModes["W3C"] = 2] = "W3C";
29
+ })(DistributedTracingModes || (DistributedTracingModes = {}));
17
30
  //# sourceMappingURL=Enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Enums.js.map","sources":["Enums.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\r\nexport var StorageType = createEnumStyle({\r\n LocalStorage: 0 /* LocalStorage */,\r\n SessionStorage: 1 /* SessionStorage */\r\n});\r\nexport var DistributedTracingModes = createEnumStyle({\r\n AI: 0 /* AI */,\r\n AI_AND_W3C: 1 /* AI_AND_W3C */,\r\n W3C: 2 /* W3C */\r\n});\r\n//# sourceMappingURL=Enums.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
1
+ {"version":3,"file":"Enums.js.map","sources":["Enums.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n/**\r\n * Type of storage to differentiate between local storage and session storage\r\n */\r\nexport var StorageType;\r\n(function (StorageType) {\r\n StorageType[StorageType[\"LocalStorage\"] = 0] = \"LocalStorage\";\r\n StorageType[StorageType[\"SessionStorage\"] = 1] = \"SessionStorage\";\r\n})(StorageType || (StorageType = {}));\r\nexport var DistributedTracingModes;\r\n(function (DistributedTracingModes) {\r\n /**\r\n * (Default) Send Application Insights correlation headers\r\n */\r\n DistributedTracingModes[DistributedTracingModes[\"AI\"] = 0] = \"AI\";\r\n /**\r\n * Send both W3C Trace Context headers and back-compatibility Application Insights headers\r\n */\r\n DistributedTracingModes[DistributedTracingModes[\"AI_AND_W3C\"] = 1] = \"AI_AND_W3C\";\r\n /**\r\n * Send W3C Trace Context headers\r\n */\r\n DistributedTracingModes[DistributedTracingModes[\"W3C\"] = 2] = \"W3C\";\r\n})(DistributedTracingModes || (DistributedTracingModes = {}));\r\n//# sourceMappingURL=Enums.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"}
@@ -1,11 +1,10 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
6
6
 
7
7
  import { arrForEach, isString } from "@microsoft/applicationinsights-core-js";
8
- var strEmpty = "";
9
8
  export function stringToBoolOrDefault(str, defaultValue) {
10
9
  if (defaultValue === void 0) { defaultValue = false; }
11
10
  if (str === undefined || str === null) {
@@ -21,16 +20,16 @@ export function msToTimeSpan(totalms) {
21
20
  totalms = 0;
22
21
  }
23
22
  totalms = Math.round(totalms);
24
- var ms = strEmpty + totalms % 1000;
25
- var sec = strEmpty + Math.floor(totalms / 1000) % 60;
26
- var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;
27
- var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;
23
+ var ms = "" + totalms % 1000;
24
+ var sec = "" + Math.floor(totalms / 1000) % 60;
25
+ var min = "" + Math.floor(totalms / (1000 * 60)) % 60;
26
+ var hour = "" + Math.floor(totalms / (1000 * 60 * 60)) % 24;
28
27
  var days = Math.floor(totalms / (1000 * 60 * 60 * 24));
29
28
  ms = ms.length === 1 ? "00" + ms : ms.length === 2 ? "0" + ms : ms;
30
29
  sec = sec.length < 2 ? "0" + sec : sec;
31
30
  min = min.length < 2 ? "0" + min : min;
32
31
  hour = hour.length < 2 ? "0" + hour : hour;
33
- return (days > 0 ? days + "." : strEmpty) + hour + ":" + min + ":" + sec + "." + ms;
32
+ return (days > 0 ? days + "." : "") + hour + ":" + min + ":" + sec + "." + ms;
34
33
  }
35
34
  export function getExtensionByName(extensions, identifier) {
36
35
  var extension = null;
@@ -1 +1 @@
1
- {"version":3,"file":"HelperFuncs.js.map","sources":["HelperFuncs.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { arrForEach, isString } from \"@microsoft/applicationinsights-core-js\";\r\nvar strEmpty = \"\";\r\nexport function stringToBoolOrDefault(str, defaultValue) {\r\n if (defaultValue === void 0) { defaultValue = false; }\r\n if (str === undefined || str === null) {\r\n return defaultValue;\r\n }\r\n return str.toString().toLowerCase() === \"true\";\r\n}\r\n/**\r\n * Convert ms to c# time span format\r\n */\r\nexport function msToTimeSpan(totalms) {\r\n if (isNaN(totalms) || totalms < 0) {\r\n totalms = 0;\r\n }\r\n totalms = Math.round(totalms);\r\n var ms = strEmpty + totalms % 1000;\r\n var sec = strEmpty + Math.floor(totalms / 1000) % 60;\r\n var min = strEmpty + Math.floor(totalms / (1000 * 60)) % 60;\r\n var hour = strEmpty + Math.floor(totalms / (1000 * 60 * 60)) % 24;\r\n var days = Math.floor(totalms / (1000 * 60 * 60 * 24));\r\n ms = ms.length === 1 ? \"00\" + ms : ms.length === 2 ? \"0\" + ms : ms;\r\n sec = sec.length < 2 ? \"0\" + sec : sec;\r\n min = min.length < 2 ? \"0\" + min : min;\r\n hour = hour.length < 2 ? \"0\" + hour : hour;\r\n return (days > 0 ? days + \".\" : strEmpty) + hour + \":\" + min + \":\" + sec + \".\" + ms;\r\n}\r\nexport function getExtensionByName(extensions, identifier) {\r\n var extension = null;\r\n arrForEach(extensions, function (value) {\r\n if (value.identifier === identifier) {\r\n extension = value;\r\n return -1;\r\n }\r\n });\r\n return extension;\r\n}\r\nexport function isCrossOriginError(message, url, lineNumber, columnNumber, error) {\r\n return !error && isString(message) && (message === \"Script error.\" || message === \"Script error\");\r\n}\r\n//# sourceMappingURL=HelperFuncs.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"}
1
+ {"version":3,"file":"HelperFuncs.js.map","sources":["HelperFuncs.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { arrForEach, isString } from \"@microsoft/applicationinsights-core-js\";\r\nexport function stringToBoolOrDefault(str, defaultValue) {\r\n if (defaultValue === void 0) { defaultValue = false; }\r\n if (str === undefined || str === null) {\r\n return defaultValue;\r\n }\r\n return str.toString().toLowerCase() === \"true\";\r\n}\r\n/**\r\n * Convert ms to c# time span format\r\n */\r\nexport function msToTimeSpan(totalms) {\r\n if (isNaN(totalms) || totalms < 0) {\r\n totalms = 0;\r\n }\r\n totalms = Math.round(totalms);\r\n var ms = \"\" + totalms % 1000;\r\n var sec = \"\" + Math.floor(totalms / 1000) % 60;\r\n var min = \"\" + Math.floor(totalms / (1000 * 60)) % 60;\r\n var hour = \"\" + Math.floor(totalms / (1000 * 60 * 60)) % 24;\r\n var days = Math.floor(totalms / (1000 * 60 * 60 * 24));\r\n ms = ms.length === 1 ? \"00\" + ms : ms.length === 2 ? \"0\" + ms : ms;\r\n sec = sec.length < 2 ? \"0\" + sec : sec;\r\n min = min.length < 2 ? \"0\" + min : min;\r\n hour = hour.length < 2 ? \"0\" + hour : hour;\r\n return (days > 0 ? days + \".\" : \"\") + hour + \":\" + min + \":\" + sec + \".\" + ms;\r\n}\r\nexport function getExtensionByName(extensions, identifier) {\r\n var extension = null;\r\n arrForEach(extensions, function (value) {\r\n if (value.identifier === identifier) {\r\n extension = value;\r\n return -1;\r\n }\r\n });\r\n return extension;\r\n}\r\nexport function isCrossOriginError(message, url, lineNumber, columnNumber, error) {\r\n return !error && isString(message) && (message === \"Script error.\" || message === \"Script error\");\r\n}\r\n//# sourceMappingURL=HelperFuncs.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"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  "use strict";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  import { ContextTagKeys } from "./Contracts/Generated/ContextTagKeys";
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
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 - Common, 2.7.5-nightly.2203-03
2
+ * Application Insights JavaScript SDK - Common, 2.7.5
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5