@microsoft/applicationinsights-core-js 2.7.4-nightly.2202-02 → 2.7.4-nightly.2202-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 (56) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +164 -126
  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 +37 -111
  7. package/dist/applicationinsights-core-js.api.md +3 -3
  8. package/dist/applicationinsights-core-js.d.ts +4 -4
  9. package/dist/applicationinsights-core-js.js +164 -126
  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 +4 -4
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
  15. package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
  17. package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
  18. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  19. package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
  20. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  21. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  22. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
  23. package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
  24. package/dist-esm/JavaScriptSDK/HelperFuncs.js +300 -115
  25. package/dist-esm/JavaScriptSDK/HelperFuncs.js.map +1 -1
  26. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +2 -35
  27. package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
  28. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  29. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  30. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
  31. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  32. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
  33. package/dist-esm/JavaScriptSDK/TelemetryPluginChain.js +1 -1
  34. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
  35. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
  36. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  37. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  38. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  39. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  40. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  41. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  42. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  43. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  44. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  45. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  46. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  47. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  48. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  49. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  50. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  51. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  52. package/dist-esm/applicationinsights-core-js.js +1 -1
  53. package/package.json +1 -1
  54. package/src/JavaScriptSDK/HelperFuncs.ts +336 -114
  55. package/src/JavaScriptSDK/InstrumentHooks.ts +1 -41
  56. package/types/JavaScriptSDK/HelperFuncs.d.ts +42 -3
@@ -11280,47 +11280,43 @@
11280
11280
  "extendsTokenRanges": []
11281
11281
  },
11282
11282
  {
11283
- "kind": "Function",
11284
- "canonicalReference": "@microsoft/applicationinsights-core-js!isArray:function(1)",
11283
+ "kind": "Variable",
11284
+ "canonicalReference": "@microsoft/applicationinsights-core-js!isArray:var",
11285
11285
  "docComment": "/**\n * Check if an object is of type Array\n */\n",
11286
11286
  "excerptTokens": [
11287
11287
  {
11288
11288
  "kind": "Content",
11289
- "text": "export declare function isArray(obj: "
11289
+ "text": "isArray: "
11290
11290
  },
11291
11291
  {
11292
11292
  "kind": "Content",
11293
- "text": "any"
11293
+ "text": "<T = any>(obj: any) => "
11294
11294
  },
11295
11295
  {
11296
- "kind": "Content",
11297
- "text": "): "
11296
+ "kind": "Reference",
11297
+ "text": "obj",
11298
+ "canonicalReference": "@microsoft/applicationinsights-core-js!~obj"
11298
11299
  },
11299
11300
  {
11300
11301
  "kind": "Content",
11301
- "text": "boolean"
11302
+ "text": " is "
11303
+ },
11304
+ {
11305
+ "kind": "Reference",
11306
+ "text": "Array",
11307
+ "canonicalReference": "!Array:interface"
11302
11308
  },
11303
11309
  {
11304
11310
  "kind": "Content",
11305
- "text": ";"
11311
+ "text": "<T>"
11306
11312
  }
11307
11313
  ],
11308
- "returnTypeTokenRange": {
11309
- "startIndex": 3,
11310
- "endIndex": 4
11311
- },
11312
11314
  "releaseTag": "Public",
11313
- "overloadIndex": 1,
11314
- "parameters": [
11315
- {
11316
- "parameterName": "obj",
11317
- "parameterTypeTokenRange": {
11318
- "startIndex": 1,
11319
- "endIndex": 2
11320
- }
11321
- }
11322
- ],
11323
- "name": "isArray"
11315
+ "name": "isArray",
11316
+ "variableTypeTokenRange": {
11317
+ "startIndex": 1,
11318
+ "endIndex": 6
11319
+ }
11324
11320
  },
11325
11321
  {
11326
11322
  "kind": "Function",
@@ -13595,60 +13591,25 @@
13595
13591
  "name": "objForEachKey"
13596
13592
  },
13597
13593
  {
13598
- "kind": "Function",
13599
- "canonicalReference": "@microsoft/applicationinsights-core-js!objFreeze:function(1)",
13594
+ "kind": "Variable",
13595
+ "canonicalReference": "@microsoft/applicationinsights-core-js!objFreeze:var",
13600
13596
  "docComment": "",
13601
13597
  "excerptTokens": [
13602
13598
  {
13603
13599
  "kind": "Content",
13604
- "text": "export declare function objFreeze<T>(value: "
13605
- },
13606
- {
13607
- "kind": "Content",
13608
- "text": "T"
13609
- },
13610
- {
13611
- "kind": "Content",
13612
- "text": "): "
13613
- },
13614
- {
13615
- "kind": "Content",
13616
- "text": "T"
13600
+ "text": "objFreeze: "
13617
13601
  },
13618
13602
  {
13619
13603
  "kind": "Content",
13620
- "text": ";"
13604
+ "text": "<T>(value: T) => T"
13621
13605
  }
13622
13606
  ],
13623
- "returnTypeTokenRange": {
13624
- "startIndex": 3,
13625
- "endIndex": 4
13626
- },
13627
13607
  "releaseTag": "Public",
13628
- "overloadIndex": 1,
13629
- "parameters": [
13630
- {
13631
- "parameterName": "value",
13632
- "parameterTypeTokenRange": {
13633
- "startIndex": 1,
13634
- "endIndex": 2
13635
- }
13636
- }
13637
- ],
13638
- "typeParameters": [
13639
- {
13640
- "typeParameterName": "T",
13641
- "constraintTokenRange": {
13642
- "startIndex": 0,
13643
- "endIndex": 0
13644
- },
13645
- "defaultTypeTokenRange": {
13646
- "startIndex": 0,
13647
- "endIndex": 0
13648
- }
13649
- }
13650
- ],
13651
- "name": "objFreeze"
13608
+ "name": "objFreeze",
13609
+ "variableTypeTokenRange": {
13610
+ "startIndex": 1,
13611
+ "endIndex": 2
13612
+ }
13652
13613
  },
13653
13614
  {
13654
13615
  "kind": "Function",
@@ -13694,60 +13655,25 @@
13694
13655
  "name": "objKeys"
13695
13656
  },
13696
13657
  {
13697
- "kind": "Function",
13698
- "canonicalReference": "@microsoft/applicationinsights-core-js!objSeal:function(1)",
13658
+ "kind": "Variable",
13659
+ "canonicalReference": "@microsoft/applicationinsights-core-js!objSeal:var",
13699
13660
  "docComment": "",
13700
13661
  "excerptTokens": [
13701
13662
  {
13702
13663
  "kind": "Content",
13703
- "text": "export declare function objSeal<T>(value: "
13704
- },
13705
- {
13706
- "kind": "Content",
13707
- "text": "T"
13664
+ "text": "objSeal: "
13708
13665
  },
13709
13666
  {
13710
13667
  "kind": "Content",
13711
- "text": "): "
13712
- },
13713
- {
13714
- "kind": "Content",
13715
- "text": "T"
13716
- },
13717
- {
13718
- "kind": "Content",
13719
- "text": ";"
13668
+ "text": "<T>(value: T) => T"
13720
13669
  }
13721
13670
  ],
13722
- "returnTypeTokenRange": {
13723
- "startIndex": 3,
13724
- "endIndex": 4
13725
- },
13726
13671
  "releaseTag": "Public",
13727
- "overloadIndex": 1,
13728
- "parameters": [
13729
- {
13730
- "parameterName": "value",
13731
- "parameterTypeTokenRange": {
13732
- "startIndex": 1,
13733
- "endIndex": 2
13734
- }
13735
- }
13736
- ],
13737
- "typeParameters": [
13738
- {
13739
- "typeParameterName": "T",
13740
- "constraintTokenRange": {
13741
- "startIndex": 0,
13742
- "endIndex": 0
13743
- },
13744
- "defaultTypeTokenRange": {
13745
- "startIndex": 0,
13746
- "endIndex": 0
13747
- }
13748
- }
13749
- ],
13750
- "name": "objSeal"
13672
+ "name": "objSeal",
13673
+ "variableTypeTokenRange": {
13674
+ "startIndex": 1,
13675
+ "endIndex": 2
13676
+ }
13751
13677
  },
13752
13678
  {
13753
13679
  "kind": "Function",
@@ -657,7 +657,7 @@ export interface IProcessTelemetryContext {
657
657
  }
658
658
 
659
659
  // @public
660
- export function isArray(obj: any): boolean;
660
+ export let isArray: <T = any>(obj: any) => obj is Array<T>;
661
661
 
662
662
  // @public
663
663
  export function isBeaconsSupported(): boolean;
@@ -802,13 +802,13 @@ export function objDefineAccessors<T>(target: any, prop: string, getProp?: () =>
802
802
  export function objForEachKey(target: any, callbackfn: (name: string, value: any) => void): void;
803
803
 
804
804
  // @public (undocumented)
805
- export function objFreeze<T>(value: T): T;
805
+ export const objFreeze: <T>(value: T) => T;
806
806
 
807
807
  // @public
808
808
  export function objKeys(obj: {}): string[];
809
809
 
810
810
  // @public (undocumented)
811
- export function objSeal<T>(value: T): T;
811
+ export const objSeal: <T>(value: T) => T;
812
812
 
813
813
  // @public
814
814
  export function optimizeObject<T>(theObject: T): T;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights Core Javascript SDK, 2.7.4-nightly.2202-02
2
+ * Microsoft Application Insights Core Javascript SDK, 2.7.4-nightly.2202-08
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1599,7 +1599,7 @@ declare namespace ApplicationInsights {
1599
1599
  /**
1600
1600
  * Check if an object is of type Array
1601
1601
  */
1602
- function isArray(obj: any): boolean;
1602
+ let isArray: <T = any>(obj: any) => obj is Array<T>;
1603
1603
 
1604
1604
  /**
1605
1605
  * Checks if HTML5 Beacons are supported in the current environment.
@@ -1902,7 +1902,7 @@ declare namespace ApplicationInsights {
1902
1902
  */
1903
1903
  function objForEachKey(target: any, callbackfn: (name: string, value: any) => void): void;
1904
1904
 
1905
- function objFreeze<T>(value: T): T;
1905
+ const objFreeze: <T>(value: T) => T;
1906
1906
 
1907
1907
  /**
1908
1908
  * Returns the names of the enumerable string properties and methods of an object. This helper exists to avoid adding a polyfil for older browsers
@@ -1912,7 +1912,7 @@ declare namespace ApplicationInsights {
1912
1912
  */
1913
1913
  function objKeys(obj: {}): string[];
1914
1914
 
1915
- function objSeal<T>(value: T): T;
1915
+ const objSeal: <T>(value: T) => T;
1916
1916
 
1917
1917
  /**
1918
1918
  * A helper function to assist with JIT performance for objects that have properties added / removed dynamically