@microsoft/applicationinsights-dependencies-js 2.8.5-nightly.2206-02 → 2.8.5-nightly.2206-06

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 (39) hide show
  1. package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
  2. package/browser/applicationinsights-dependencies-js.js +1127 -934
  3. package/browser/applicationinsights-dependencies-js.js.map +1 -1
  4. package/browser/applicationinsights-dependencies-js.min.js +2 -2
  5. package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
  6. package/dist/applicationinsights-dependencies-js.api.json +159 -46
  7. package/dist/applicationinsights-dependencies-js.api.md +6 -1
  8. package/dist/applicationinsights-dependencies-js.d.ts +9 -3
  9. package/dist/applicationinsights-dependencies-js.js +1127 -934
  10. package/dist/applicationinsights-dependencies-js.js.map +1 -1
  11. package/dist/applicationinsights-dependencies-js.min.js +2 -2
  12. package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
  13. package/dist/applicationinsights-dependencies-js.rollup.d.ts +9 -3
  14. package/dist-esm/DependencyListener.js +1 -1
  15. package/dist-esm/InternalConstants.js +14 -0
  16. package/dist-esm/InternalConstants.js.map +1 -0
  17. package/dist-esm/__DynamicConstants.js +64 -0
  18. package/dist-esm/__DynamicConstants.js.map +1 -0
  19. package/dist-esm/ajax.js +201 -189
  20. package/dist-esm/ajax.js.map +1 -1
  21. package/dist-esm/ajaxRecord.js +59 -54
  22. package/dist-esm/ajaxRecord.js.map +1 -1
  23. package/dist-esm/ajaxUtils.js +3 -2
  24. package/dist-esm/ajaxUtils.js.map +1 -1
  25. package/dist-esm/applicationinsights-dependencies-js.js +2 -2
  26. package/dist-esm/applicationinsights-dependencies-js.js.map +1 -1
  27. package/package.json +7 -4
  28. package/src/InternalConstants.ts +13 -0
  29. package/src/__DynamicConstants.ts +62 -0
  30. package/src/ajax.ts +39 -32
  31. package/src/ajaxRecord.ts +25 -24
  32. package/src/ajaxUtils.ts +6 -6
  33. package/src/applicationinsights-dependencies-js.ts +1 -1
  34. package/types/InternalConstants.d.ts +2 -0
  35. package/types/__DynamicConstants.d.ts +50 -0
  36. package/types/ajax.d.ts +6 -4
  37. package/types/ajaxRecord.d.ts +2 -1
  38. package/types/applicationinsights-dependencies-js.d.ts +1 -1
  39. package/types/tsdoc-metadata.json +1 -1
@@ -117,6 +117,9 @@ export class ajaxRecord {
117
117
  xhrMonitoringState: XHRMonitoringState;
118
118
  }
119
119
 
120
+ // @public (undocumented)
121
+ export const DfltAjaxCorrelationHeaderExDomains: string[];
122
+
120
123
  // Warning: (ae-forgotten-export) The symbol "IDependencyListenerContainer" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
121
124
  //
122
125
  // @public (undocumented)
@@ -126,8 +129,10 @@ export interface IDependenciesPlugin extends IDependencyListenerContainer {
126
129
 
127
130
  // @public (undocumented)
128
131
  export interface IInstrumentationRequirements extends IDependenciesPlugin {
132
+ // Warning: (ae-forgotten-export) The symbol "_DYN_INCLUDE_CORRELATION_0" needs to be exported by the entry point applicationinsights-dependencies-js.d.ts
133
+ //
129
134
  // (undocumented)
130
- includeCorrelationHeaders: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
135
+ [_DYN_INCLUDE_CORRELATION_0]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
131
136
  }
132
137
 
133
138
  // @public (undocumented)
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.5-nightly.2206-02
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.5-nightly.2206-06
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -92,9 +92,15 @@ declare namespace ApplicationInsights {
92
92
 
93
93
  type DependencyListenerFunction = (dependencyDetails: IDependencyListenerDetails) => void;
94
94
 
95
+ const DfltAjaxCorrelationHeaderExDomains: string[];
96
+
97
+ const _DYN_HEADER_MAP = "headerMap";
98
+
99
+ const _DYN_INCLUDE_CORRELATION_0 = "includeCorrelationHeaders";
100
+
95
101
  interface IAjaxRecordResponse {
96
102
  statusText: string;
97
- headerMap: Object;
103
+ [_DYN_HEADER_MAP]: Object;
98
104
  correlationContext: string;
99
105
  type?: string;
100
106
  responseText?: string;
@@ -163,7 +169,7 @@ declare namespace ApplicationInsights {
163
169
  }
164
170
 
165
171
  interface IInstrumentationRequirements extends IDependenciesPlugin {
166
- includeCorrelationHeaders: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
172
+ [_DYN_INCLUDE_CORRELATION_0]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
167
173
  }
168
174
 
169
175
  class XHRMonitoringState {