@microsoft/applicationinsights-core-js 3.0.0-beta.2302-05 → 3.0.0-beta.2303-02

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 (83) hide show
  1. package/README.md +2 -1
  2. package/browser/applicationinsights-core-js.integrity.json +9 -9
  3. package/browser/applicationinsights-core-js.js +141 -111
  4. package/browser/applicationinsights-core-js.js.map +1 -1
  5. package/browser/applicationinsights-core-js.min.js +2 -2
  6. package/browser/applicationinsights-core-js.min.js.map +1 -1
  7. package/dist/applicationinsights-core-js.api.json +57 -9
  8. package/dist/applicationinsights-core-js.api.md +3 -3
  9. package/dist/applicationinsights-core-js.d.ts +7 -4
  10. package/dist/applicationinsights-core-js.js +141 -111
  11. package/dist/applicationinsights-core-js.js.map +1 -1
  12. package/dist/applicationinsights-core-js.min.js +2 -2
  13. package/dist/applicationinsights-core-js.min.js.map +1 -1
  14. package/dist/applicationinsights-core-js.rollup.d.ts +7 -4
  15. package/dist-esm/Config/ConfigDefaultHelpers.js +1 -1
  16. package/dist-esm/Config/ConfigDefaults.js +1 -1
  17. package/dist-esm/Config/DynamicConfig.js +1 -1
  18. package/dist-esm/Config/DynamicProperty.js +1 -1
  19. package/dist-esm/Config/DynamicState.js +1 -1
  20. package/dist-esm/Config/DynamicSupport.js +1 -1
  21. package/dist-esm/Config/IConfigDefaults.js +1 -1
  22. package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
  23. package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
  24. package/dist-esm/Config/IDynamicWatcher.js +1 -1
  25. package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
  26. package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
  27. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  28. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  29. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  30. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  31. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  32. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  33. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  34. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  35. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  36. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  37. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  38. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  39. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +12 -9
  40. package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
  41. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  42. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  43. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  44. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  45. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  46. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  47. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
  48. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
  49. package/dist-esm/JavaScriptSDK/UnloadHookContainer.js +1 -1
  50. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  53. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  54. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  55. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  56. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  66. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  67. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
  77. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
  78. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  79. package/dist-esm/__DynamicConstants.js +1 -1
  80. package/dist-esm/applicationinsights-core-js.js +1 -1
  81. package/package.json +2 -2
  82. package/src/JavaScriptSDK/InstrumentHooks.ts +11 -8
  83. package/types/JavaScriptSDK/InstrumentHooks.d.ts +6 -3
@@ -16386,7 +16386,7 @@
16386
16386
  {
16387
16387
  "kind": "Function",
16388
16388
  "canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentEvent:function(1)",
16389
- "docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
16389
+ "docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
16390
16390
  "excerptTokens": [
16391
16391
  {
16392
16392
  "kind": "Content",
@@ -16421,6 +16421,14 @@
16421
16421
  "kind": "Content",
16422
16422
  "text": "boolean"
16423
16423
  },
16424
+ {
16425
+ "kind": "Content",
16426
+ "text": ", checkParentProto?: "
16427
+ },
16428
+ {
16429
+ "kind": "Content",
16430
+ "text": "boolean"
16431
+ },
16424
16432
  {
16425
16433
  "kind": "Content",
16426
16434
  "text": "): "
@@ -16437,8 +16445,8 @@
16437
16445
  ],
16438
16446
  "fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
16439
16447
  "returnTypeTokenRange": {
16440
- "startIndex": 9,
16441
- "endIndex": 10
16448
+ "startIndex": 11,
16449
+ "endIndex": 12
16442
16450
  },
16443
16451
  "releaseTag": "Public",
16444
16452
  "overloadIndex": 1,
@@ -16474,6 +16482,14 @@
16474
16482
  "endIndex": 8
16475
16483
  },
16476
16484
  "isOptional": true
16485
+ },
16486
+ {
16487
+ "parameterName": "checkParentProto",
16488
+ "parameterTypeTokenRange": {
16489
+ "startIndex": 9,
16490
+ "endIndex": 10
16491
+ },
16492
+ "isOptional": true
16477
16493
  }
16478
16494
  ],
16479
16495
  "name": "InstrumentEvent"
@@ -16481,7 +16497,7 @@
16481
16497
  {
16482
16498
  "kind": "Function",
16483
16499
  "canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFunc:function(1)",
16484
- "docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
16500
+ "docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
16485
16501
  "excerptTokens": [
16486
16502
  {
16487
16503
  "kind": "Content",
@@ -16516,6 +16532,14 @@
16516
16532
  "kind": "Content",
16517
16533
  "text": "boolean"
16518
16534
  },
16535
+ {
16536
+ "kind": "Content",
16537
+ "text": ", checkParentProto?: "
16538
+ },
16539
+ {
16540
+ "kind": "Content",
16541
+ "text": "boolean"
16542
+ },
16519
16543
  {
16520
16544
  "kind": "Content",
16521
16545
  "text": "): "
@@ -16532,8 +16556,8 @@
16532
16556
  ],
16533
16557
  "fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
16534
16558
  "returnTypeTokenRange": {
16535
- "startIndex": 9,
16536
- "endIndex": 10
16559
+ "startIndex": 11,
16560
+ "endIndex": 12
16537
16561
  },
16538
16562
  "releaseTag": "Public",
16539
16563
  "overloadIndex": 1,
@@ -16569,6 +16593,14 @@
16569
16593
  "endIndex": 8
16570
16594
  },
16571
16595
  "isOptional": true
16596
+ },
16597
+ {
16598
+ "parameterName": "checkParentProto",
16599
+ "parameterTypeTokenRange": {
16600
+ "startIndex": 9,
16601
+ "endIndex": 10
16602
+ },
16603
+ "isOptional": true
16572
16604
  }
16573
16605
  ],
16574
16606
  "name": "InstrumentFunc"
@@ -16576,7 +16608,7 @@
16576
16608
  {
16577
16609
  "kind": "Function",
16578
16610
  "canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFuncs:function(1)",
16579
- "docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
16611
+ "docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
16580
16612
  "excerptTokens": [
16581
16613
  {
16582
16614
  "kind": "Content",
@@ -16611,6 +16643,14 @@
16611
16643
  "kind": "Content",
16612
16644
  "text": "boolean"
16613
16645
  },
16646
+ {
16647
+ "kind": "Content",
16648
+ "text": ", checkParentProto?: "
16649
+ },
16650
+ {
16651
+ "kind": "Content",
16652
+ "text": "boolean"
16653
+ },
16614
16654
  {
16615
16655
  "kind": "Content",
16616
16656
  "text": "): "
@@ -16631,8 +16671,8 @@
16631
16671
  ],
16632
16672
  "fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
16633
16673
  "returnTypeTokenRange": {
16634
- "startIndex": 9,
16635
- "endIndex": 11
16674
+ "startIndex": 11,
16675
+ "endIndex": 13
16636
16676
  },
16637
16677
  "releaseTag": "Public",
16638
16678
  "overloadIndex": 1,
@@ -16668,6 +16708,14 @@
16668
16708
  "endIndex": 8
16669
16709
  },
16670
16710
  "isOptional": true
16711
+ },
16712
+ {
16713
+ "parameterName": "checkParentProto",
16714
+ "parameterTypeTokenRange": {
16715
+ "startIndex": 9,
16716
+ "endIndex": 10
16717
+ },
16718
+ "isOptional": true
16671
16719
  }
16672
16720
  ],
16673
16721
  "name": "InstrumentFuncs"
@@ -831,13 +831,13 @@ export interface INotificationManager {
831
831
  }
832
832
 
833
833
  // @public
834
- export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
834
+ export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
835
835
 
836
836
  // @public
837
- export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
837
+ export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
838
838
 
839
839
  // @public
840
- export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
840
+ export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
841
841
 
842
842
  // @public
843
843
  export type InstrumentorHooksCallback = (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => void;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2302-05
2
+ * Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2303-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1812,8 +1812,9 @@ declare namespace ApplicationInsights {
1812
1812
  * @param evtName - The name of the event
1813
1813
  * @param callbacks - The callbacks to configure and call whenever the function is called
1814
1814
  * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
1815
+ * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
1815
1816
  */
1816
- function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
1817
+ function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
1817
1818
 
1818
1819
  /**
1819
1820
  * Intercept the named prototype functions for the target class / object
@@ -1821,8 +1822,9 @@ declare namespace ApplicationInsights {
1821
1822
  * @param funcName - The function name
1822
1823
  * @param callbacks - The callbacks to configure and call whenever the function is called
1823
1824
  * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
1825
+ * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
1824
1826
  */
1825
- function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
1827
+ function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
1826
1828
 
1827
1829
  /**
1828
1830
  * Intercept the named functions for the target class / object
@@ -1830,8 +1832,9 @@ declare namespace ApplicationInsights {
1830
1832
  * @param funcNames - The function names to intercept and call
1831
1833
  * @param callbacks - The callbacks to configure and call whenever the function is called
1832
1834
  * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
1835
+ * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
1833
1836
  */
1834
- function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
1837
+ function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
1835
1838
 
1836
1839
  /**
1837
1840
  * A callback function that will be called for the wrapped instrumentation function