@microsoft/applicationinsights-core-js 3.0.0-beta.2210-17 → 3.0.0-beta.2210-18

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 (117) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +131 -117
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +0 -89
  7. package/dist/applicationinsights-core-js.api.md +6 -6
  8. package/dist/applicationinsights-core-js.d.ts +7 -17
  9. package/dist/applicationinsights-core-js.js +131 -117
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +7 -17
  14. package/dist-esm/Config/ConfigDefaults.js +2 -3
  15. package/dist-esm/Config/ConfigDefaults.js.map +1 -1
  16. package/dist-esm/Config/DynamicConfig.js +2 -3
  17. package/dist-esm/Config/DynamicConfig.js.map +1 -1
  18. package/dist-esm/Config/DynamicProperty.js +31 -18
  19. package/dist-esm/Config/DynamicProperty.js.map +1 -1
  20. package/dist-esm/Config/DynamicState.js +58 -47
  21. package/dist-esm/Config/DynamicState.js.map +1 -1
  22. package/dist-esm/Config/DynamicSupport.js +2 -3
  23. package/dist-esm/Config/DynamicSupport.js.map +1 -1
  24. package/dist-esm/Config/IConfigDefaults.js +1 -1
  25. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  26. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  27. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  28. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  29. package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
  30. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +3 -3
  31. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  32. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  33. package/dist-esm/JavaScriptSDK/ChannelController.js +5 -7
  34. package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
  35. package/dist-esm/JavaScriptSDK/CookieMgr.js +12 -12
  36. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
  37. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -14
  38. package/dist-esm/JavaScriptSDK/CoreUtils.js.map +1 -1
  39. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  40. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  41. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +3 -2
  42. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js.map +1 -1
  43. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  44. package/dist-esm/JavaScriptSDK/EnvUtils.js +4 -12
  45. package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
  46. package/dist-esm/JavaScriptSDK/EventHelpers.js +2 -3
  47. package/dist-esm/JavaScriptSDK/EventHelpers.js.map +1 -1
  48. package/dist-esm/JavaScriptSDK/HelperFuncs.js +3 -41
  49. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  50. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +1 -1
  51. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  52. package/dist-esm/JavaScriptSDK/NotificationManager.js +4 -4
  53. package/dist-esm/JavaScriptSDK/NotificationManager.js.map +1 -1
  54. package/dist-esm/JavaScriptSDK/PerfManager.js +4 -5
  55. package/dist-esm/JavaScriptSDK/PerfManager.js.map +1 -1
  56. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +4 -4
  57. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  58. package/dist-esm/JavaScriptSDK/RandomHelper.js +3 -3
  59. package/dist-esm/JavaScriptSDK/RandomHelper.js.map +1 -1
  60. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  61. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  62. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  63. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +3 -3
  64. package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +1 -1
  65. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  77. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  78. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  79. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  80. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  81. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  82. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  83. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  84. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  85. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  86. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  87. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  88. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  89. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  90. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  91. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  92. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  93. package/dist-esm/__DynamicConstants.js +4 -6
  94. package/dist-esm/__DynamicConstants.js.map +1 -1
  95. package/dist-esm/applicationinsights-core-js.js +5 -5
  96. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  97. package/package.json +1 -1
  98. package/src/JavaScriptSDK/AppInsightsCore.ts +3 -3
  99. package/src/JavaScriptSDK/ChannelController.ts +5 -7
  100. package/src/JavaScriptSDK/CookieMgr.ts +11 -11
  101. package/src/JavaScriptSDK/CoreUtils.ts +0 -15
  102. package/src/JavaScriptSDK/DbgExtensionUtils.ts +2 -1
  103. package/src/JavaScriptSDK/EnvUtils.ts +2 -11
  104. package/src/JavaScriptSDK/EventHelpers.ts +1 -2
  105. package/src/JavaScriptSDK/HelperFuncs.ts +3 -47
  106. package/src/JavaScriptSDK/NotificationManager.ts +3 -3
  107. package/src/JavaScriptSDK/PerfManager.ts +3 -4
  108. package/src/JavaScriptSDK/ProcessTelemetryContext.ts +6 -4
  109. package/src/JavaScriptSDK/RandomHelper.ts +2 -2
  110. package/src/JavaScriptSDK/W3cTraceParent.ts +2 -2
  111. package/types/Config/IDynamicWatcher.d.ts +5 -1
  112. package/types/Config/_IDynamicConfigHandlerState.d.ts +17 -1
  113. package/types/JavaScriptSDK/CoreUtils.d.ts +0 -5
  114. package/types/JavaScriptSDK/EnvUtils.d.ts +0 -6
  115. package/types/JavaScriptSDK/HelperFuncs.d.ts +0 -18
  116. package/types/__DynamicConstants.d.ts +1 -3
  117. package/types/applicationinsights-core-js.d.ts +4 -4
@@ -6495,34 +6495,6 @@
6495
6495
  "endIndex": 2
6496
6496
  }
6497
6497
  },
6498
- {
6499
- "kind": "Function",
6500
- "canonicalReference": "@microsoft/applicationinsights-core-js!dateNow:function(1)",
6501
- "docComment": "/**\n * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less) https://caniuse.com/#search=Date.now\n */\n",
6502
- "excerptTokens": [
6503
- {
6504
- "kind": "Content",
6505
- "text": "export declare function dateNow(): "
6506
- },
6507
- {
6508
- "kind": "Content",
6509
- "text": "number"
6510
- },
6511
- {
6512
- "kind": "Content",
6513
- "text": ";"
6514
- }
6515
- ],
6516
- "fileUrlPath": "types/JavaScriptSDK/HelperFuncs.d.ts",
6517
- "returnTypeTokenRange": {
6518
- "startIndex": 1,
6519
- "endIndex": 2
6520
- },
6521
- "releaseTag": "Public",
6522
- "overloadIndex": 1,
6523
- "parameters": [],
6524
- "name": "dateNow"
6525
- },
6526
6498
  {
6527
6499
  "kind": "Function",
6528
6500
  "canonicalReference": "@microsoft/applicationinsights-core-js!detachEvent:function(1)",
@@ -8535,39 +8507,6 @@
8535
8507
  "parameters": [],
8536
8508
  "name": "getMsCrypto"
8537
8509
  },
8538
- {
8539
- "kind": "Function",
8540
- "canonicalReference": "@microsoft/applicationinsights-core-js!getPerformance:function(1)",
8541
- "docComment": "/**\n * Returns the performance object if it is present otherwise null. This helper is used to access the performance object from the current global instance which could be window or globalThis for a web worker\n */\n",
8542
- "excerptTokens": [
8543
- {
8544
- "kind": "Content",
8545
- "text": "export declare function getPerformance(): "
8546
- },
8547
- {
8548
- "kind": "Reference",
8549
- "text": "Performance",
8550
- "canonicalReference": "!Performance:interface"
8551
- },
8552
- {
8553
- "kind": "Content",
8554
- "text": " | null"
8555
- },
8556
- {
8557
- "kind": "Content",
8558
- "text": ";"
8559
- }
8560
- ],
8561
- "fileUrlPath": "types/JavaScriptSDK/EnvUtils.d.ts",
8562
- "returnTypeTokenRange": {
8563
- "startIndex": 1,
8564
- "endIndex": 3
8565
- },
8566
- "releaseTag": "Public",
8567
- "overloadIndex": 1,
8568
- "parameters": [],
8569
- "name": "getPerformance"
8570
- },
8571
8510
  {
8572
8511
  "kind": "Function",
8573
8512
  "canonicalReference": "@microsoft/applicationinsights-core-js!getSetValue:function(1)",
@@ -21347,34 +21286,6 @@
21347
21286
  }
21348
21287
  ]
21349
21288
  },
21350
- {
21351
- "kind": "Function",
21352
- "canonicalReference": "@microsoft/applicationinsights-core-js!perfNow:function(1)",
21353
- "docComment": "/**\n * Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less) https://caniuse.com/#search=performance.now\n */\n",
21354
- "excerptTokens": [
21355
- {
21356
- "kind": "Content",
21357
- "text": "export declare function perfNow(): "
21358
- },
21359
- {
21360
- "kind": "Content",
21361
- "text": "number"
21362
- },
21363
- {
21364
- "kind": "Content",
21365
- "text": ";"
21366
- }
21367
- ],
21368
- "fileUrlPath": "types/JavaScriptSDK/CoreUtils.d.ts",
21369
- "returnTypeTokenRange": {
21370
- "startIndex": 1,
21371
- "endIndex": 2
21372
- },
21373
- "releaseTag": "Public",
21374
- "overloadIndex": 1,
21375
- "parameters": [],
21376
- "name": "perfNow"
21377
- },
21378
21289
  {
21379
21290
  "kind": "Class",
21380
21291
  "canonicalReference": "@microsoft/applicationinsights-core-js!ProcessTelemetryContext:class",
@@ -9,6 +9,7 @@ import { arrIndexOf } from '@nevware21/ts-utils';
9
9
  import { arrMap } from '@nevware21/ts-utils';
10
10
  import { arrReduce } from '@nevware21/ts-utils';
11
11
  import { asString } from '@nevware21/ts-utils';
12
+ import { utcNow as dateNow } from '@nevware21/ts-utils';
12
13
  import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
13
14
  import { dumpObj } from '@nevware21/ts-utils';
14
15
  import { EnumCls } from '@nevware21/ts-utils';
@@ -17,6 +18,7 @@ import { getGlobal } from '@microsoft/applicationinsights-shims';
17
18
  import { getInst as getGlobalInst } from '@nevware21/ts-utils';
18
19
  import { getHistory } from '@nevware21/ts-utils';
19
20
  import { getNavigator } from '@nevware21/ts-utils';
21
+ import { getPerformance } from '@nevware21/ts-utils';
20
22
  import { getWindow } from '@nevware21/ts-utils';
21
23
  import { hasDocument } from '@nevware21/ts-utils';
22
24
  import { hasHistory } from '@nevware21/ts-utils';
@@ -44,6 +46,7 @@ import { objFreeze } from '@nevware21/ts-utils';
44
46
  import { objKeys } from '@nevware21/ts-utils';
45
47
  import { objSeal } from '@nevware21/ts-utils';
46
48
  import { objToString } from '@nevware21/ts-utils';
49
+ import { perfNow } from '@nevware21/ts-utils';
47
50
  import { strEndsWith } from '@nevware21/ts-utils';
48
51
  import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
49
52
  import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
@@ -202,8 +205,7 @@ export const createValueMap: <E, V = E>(values: {
202
205
  [key in keyof E]: [E[keyof E], V[keyof V]];
203
206
  }) => V;
204
207
 
205
- // @public
206
- export function dateNow(): number;
208
+ export { dateNow }
207
209
 
208
210
  export { deepFreeze }
209
211
 
@@ -500,8 +502,7 @@ export function getMsCrypto(): Crypto | null;
500
502
 
501
503
  export { getNavigator }
502
504
 
503
- // @public
504
- export function getPerformance(): Performance | null;
505
+ export { getPerformance }
505
506
 
506
507
  // @public
507
508
  export function getSetValue<T, K extends keyof T>(target: T, field: K, defValue?: T[K]): T[K];
@@ -1170,8 +1171,7 @@ export class PerfManager implements IPerfManager {
1170
1171
  setCtx(key: string, value: any): void;
1171
1172
  }
1172
1173
 
1173
- // @public
1174
- export function perfNow(): number;
1174
+ export { perfNow }
1175
1175
 
1176
1176
  // @public @deprecated
1177
1177
  export class ProcessTelemetryContext implements IProcessTelemetryContext {
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-17
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2210-18
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -12,6 +12,7 @@ declare namespace ApplicationInsights {
12
12
  import { arrMap } from '@nevware21/ts-utils';
13
13
  import { arrReduce } from '@nevware21/ts-utils';
14
14
  import { asString } from '@nevware21/ts-utils';
15
+ import { utcNow as dateNow } from '@nevware21/ts-utils';
15
16
  import { objDeepFreeze as deepFreeze } from '@nevware21/ts-utils';
16
17
  import { dumpObj } from '@nevware21/ts-utils';
17
18
  import { EnumCls } from '@nevware21/ts-utils';
@@ -20,6 +21,7 @@ declare namespace ApplicationInsights {
20
21
  import { getInst as getGlobalInst } from '@nevware21/ts-utils';
21
22
  import { getHistory } from '@nevware21/ts-utils';
22
23
  import { getNavigator } from '@nevware21/ts-utils';
24
+ import { getPerformance } from '@nevware21/ts-utils';
23
25
  import { getWindow } from '@nevware21/ts-utils';
24
26
  import { hasDocument } from '@nevware21/ts-utils';
25
27
  import { hasHistory } from '@nevware21/ts-utils';
@@ -47,6 +49,7 @@ declare namespace ApplicationInsights {
47
49
  import { objKeys } from '@nevware21/ts-utils';
48
50
  import { objSeal } from '@nevware21/ts-utils';
49
51
  import { objToString } from '@nevware21/ts-utils';
52
+ import { perfNow } from '@nevware21/ts-utils';
50
53
  import { strEndsWith } from '@nevware21/ts-utils';
51
54
  import { strShimFunction as strFunction } from '@microsoft/applicationinsights-shims';
52
55
  import { strShimObject as strObject } from '@microsoft/applicationinsights-shims';
@@ -432,11 +435,7 @@ declare namespace ApplicationInsights {
432
435
  [key in keyof E]: [E[keyof E], V[keyof V]];
433
436
  }) => V;
434
437
 
435
- /**
436
- * Return the current time via the Date now() function (if available) and falls back to (new Date()).getTime() if now() is unavailable (IE8 or less)
437
- * https://caniuse.com/#search=Date.now
438
- */
439
- function dateNow(): number;
438
+ export { dateNow }
440
439
 
441
440
  export { deepFreeze }
442
441
 
@@ -793,12 +792,7 @@ declare namespace ApplicationInsights {
793
792
 
794
793
  export { getNavigator }
795
794
 
796
- /**
797
- * Returns the performance object if it is present otherwise null.
798
- * This helper is used to access the performance object from the current
799
- * global instance which could be window or globalThis for a web worker
800
- */
801
- function getPerformance(): Performance | null;
795
+ export { getPerformance }
802
796
 
803
797
  /**
804
798
  * Returns the current value from the target object if not null or undefined otherwise sets the new value and returns it
@@ -2505,11 +2499,7 @@ declare namespace ApplicationInsights {
2505
2499
  getCtx(key: string): any;
2506
2500
  }
2507
2501
 
2508
- /**
2509
- * Return the current value of the Performance Api now() function (if available) and fallback to dateNow() if it is unavailable (IE9 or less)
2510
- * https://caniuse.com/#search=performance.now
2511
- */
2512
- function perfNow(): number;
2502
+ export { perfNow }
2513
2503
 
2514
2504
  /**
2515
2505
  * This class will be removed!