@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.
- package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
- package/browser/applicationinsights-dependencies-js.js +1127 -934
- package/browser/applicationinsights-dependencies-js.js.map +1 -1
- package/browser/applicationinsights-dependencies-js.min.js +2 -2
- package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.api.json +159 -46
- package/dist/applicationinsights-dependencies-js.api.md +6 -1
- package/dist/applicationinsights-dependencies-js.d.ts +9 -3
- package/dist/applicationinsights-dependencies-js.js +1127 -934
- package/dist/applicationinsights-dependencies-js.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.min.js +2 -2
- package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
- package/dist/applicationinsights-dependencies-js.rollup.d.ts +9 -3
- package/dist-esm/DependencyListener.js +1 -1
- package/dist-esm/InternalConstants.js +14 -0
- package/dist-esm/InternalConstants.js.map +1 -0
- package/dist-esm/__DynamicConstants.js +64 -0
- package/dist-esm/__DynamicConstants.js.map +1 -0
- package/dist-esm/ajax.js +201 -189
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +59 -54
- package/dist-esm/ajaxRecord.js.map +1 -1
- package/dist-esm/ajaxUtils.js +3 -2
- package/dist-esm/ajaxUtils.js.map +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +2 -2
- package/dist-esm/applicationinsights-dependencies-js.js.map +1 -1
- package/package.json +7 -4
- package/src/InternalConstants.ts +13 -0
- package/src/__DynamicConstants.ts +62 -0
- package/src/ajax.ts +39 -32
- package/src/ajaxRecord.ts +25 -24
- package/src/ajaxUtils.ts +6 -6
- package/src/applicationinsights-dependencies-js.ts +1 -1
- package/types/InternalConstants.d.ts +2 -0
- package/types/__DynamicConstants.d.ts +50 -0
- package/types/ajax.d.ts +6 -4
- package/types/ajaxRecord.d.ts +2 -1
- package/types/applicationinsights-dependencies-js.d.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 2.8.5-nightly.2206-
|
|
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
|
|
@@ -98,9 +98,15 @@ export declare class ajaxRecord {
|
|
|
98
98
|
|
|
99
99
|
declare type DependencyListenerFunction = (dependencyDetails: IDependencyListenerDetails) => void;
|
|
100
100
|
|
|
101
|
+
export declare const DfltAjaxCorrelationHeaderExDomains: string[];
|
|
102
|
+
|
|
103
|
+
declare const _DYN_HEADER_MAP = "headerMap";
|
|
104
|
+
|
|
105
|
+
declare const _DYN_INCLUDE_CORRELATION_0 = "includeCorrelationHeaders";
|
|
106
|
+
|
|
101
107
|
declare interface IAjaxRecordResponse {
|
|
102
108
|
statusText: string;
|
|
103
|
-
|
|
109
|
+
[_DYN_HEADER_MAP]: Object;
|
|
104
110
|
correlationContext: string;
|
|
105
111
|
type?: string;
|
|
106
112
|
responseText?: string;
|
|
@@ -169,7 +175,7 @@ declare interface IDependencyListenerHandler {
|
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
export declare interface IInstrumentationRequirements extends IDependenciesPlugin {
|
|
172
|
-
|
|
178
|
+
[_DYN_INCLUDE_CORRELATION_0]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
|
|
173
179
|
}
|
|
174
180
|
|
|
175
181
|
declare class XHRMonitoringState {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.8.5-nightly.2206-06
|
|
3
|
+
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
8
|
+
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
9
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
+
// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)
|
|
11
|
+
// as when using "short" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.
|
|
12
|
+
export var STR_DURATION = "duration";
|
|
13
|
+
export var STR_PROPERTIES = "properties";
|
|
14
|
+
//# sourceMappingURL=InternalConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InternalConstants.js.map","sources":["InternalConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Generally you should only put values that are used more than 2 times and then only if not already exposed as a constant (such as SdkCoreNames)\r\n// as when using \"short\" named values from here they will be will be minified smaller than the SdkCoreNames[eSdkCoreNames.xxxx] value.\r\nexport var STR_DURATION = \"duration\";\r\nexport var STR_PROPERTIES = \"properties\";\r\n//# sourceMappingURL=InternalConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.8.5-nightly.2206-06
|
|
3
|
+
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// @skip-file-minify
|
|
8
|
+
// ##############################################################
|
|
9
|
+
// AUTO GENERATED FILE: This file is Auto Generated during build.
|
|
10
|
+
// ##############################################################
|
|
11
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
|
+
// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!
|
|
13
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
+
export var _DYN_REQUEST_URL = "requestUrl"; // Count: 12
|
|
15
|
+
export var _DYN_INST = "inst"; // Count: 5
|
|
16
|
+
export var _DYN_LENGTH = "length"; // Count: 9
|
|
17
|
+
export var _DYN_TRACE_ID = "traceID"; // Count: 8
|
|
18
|
+
export var _DYN_SPAN_ID = "spanID"; // Count: 8
|
|
19
|
+
export var _DYN_TRACE_FLAGS = "traceFlags"; // Count: 8
|
|
20
|
+
export var _DYN_CORE = "core"; // Count: 6
|
|
21
|
+
export var _DYN_GET_DEFAULT_CONFIG = "getDefaultConfig"; // Count: 2
|
|
22
|
+
export var _DYN_INCLUDE_CORRELATION_0 = "includeCorrelationHeaders"; // Count: 4
|
|
23
|
+
export var _DYN_CAN_INCLUDE_CORRELAT1 = "canIncludeCorrelationHeader"; // Count: 2
|
|
24
|
+
export var _DYN_GET_ABSOLUTE_URL = "getAbsoluteUrl"; // Count: 3
|
|
25
|
+
export var _DYN_HEADERS = "headers"; // Count: 6
|
|
26
|
+
export var _DYN_REQUEST_HEADERS = "requestHeaders"; // Count: 13
|
|
27
|
+
export var _DYN_APP_ID = "appId"; // Count: 5
|
|
28
|
+
export var _DYN_SET_REQUEST_HEADER = "setRequestHeader"; // Count: 3
|
|
29
|
+
export var _DYN_DISTRIBUTED_TRACING_2 = "distributedTracingMode"; // Count: 3
|
|
30
|
+
export var _DYN_START_TIME = "startTime"; // Count: 6
|
|
31
|
+
export var _DYN_TO_LOWER_CASE = "toLowerCase"; // Count: 6
|
|
32
|
+
export var _DYN_ENABLE_REQUEST_HEADE3 = "enableRequestHeaderTracking"; // Count: 2
|
|
33
|
+
export var _DYN_ENABLE_AJAX_ERROR_ST4 = "enableAjaxErrorStatusText"; // Count: 2
|
|
34
|
+
export var _DYN_ENABLE_AJAX_PERF_TRA5 = "enableAjaxPerfTracking"; // Count: 2
|
|
35
|
+
export var _DYN_MAX_AJAX_CALLS_PER_V6 = "maxAjaxCallsPerView"; // Count: 2
|
|
36
|
+
export var _DYN_ENABLE_RESPONSE_HEAD7 = "enableResponseHeaderTracking"; // Count: 2
|
|
37
|
+
export var _DYN_EXCLUDE_REQUEST_FROM8 = "excludeRequestFromAutoTrackingPatterns"; // Count: 2
|
|
38
|
+
export var _DYN_ADD_REQUEST_CONTEXT = "addRequestContext"; // Count: 2
|
|
39
|
+
export var _DYN_DISABLE_AJAX_TRACKIN9 = "disableAjaxTracking"; // Count: 2
|
|
40
|
+
export var _DYN_DISABLE_FETCH_TRACKI10 = "disableFetchTracking"; // Count: 2
|
|
41
|
+
export var _DYN_STATUS = "status"; // Count: 10
|
|
42
|
+
export var _DYN_STATUS_TEXT = "statusText"; // Count: 8
|
|
43
|
+
export var _DYN_HEADER_MAP = "headerMap"; // Count: 8
|
|
44
|
+
export var _DYN_OPEN_DONE = "openDone"; // Count: 3
|
|
45
|
+
export var _DYN_SEND_DONE = "sendDone"; // Count: 3
|
|
46
|
+
export var _DYN_REQUEST_SENT_TIME = "requestSentTime"; // Count: 9
|
|
47
|
+
export var _DYN_ABORT_DONE = "abortDone"; // Count: 3
|
|
48
|
+
export var _DYN_METHOD = "method"; // Count: 10
|
|
49
|
+
export var _DYN_ERROR_STATUS_TEXT = "errorStatusText"; // Count: 3
|
|
50
|
+
export var _DYN_STATE_CHANGE_ATTACHE11 = "stateChangeAttached"; // Count: 2
|
|
51
|
+
export var _DYN_RESPONSE_TEXT = "responseText"; // Count: 5
|
|
52
|
+
export var _DYN_RESPONSE_FINISHED_TI12 = "responseFinishedTime"; // Count: 7
|
|
53
|
+
export var _DYN__CREATE_TRACK_ITEM = "CreateTrackItem"; // Count: 3
|
|
54
|
+
export var _DYN_RESPONSE = "response"; // Count: 4
|
|
55
|
+
export var _DYN_GET_ALL_RESPONSE_HEA13 = "getAllResponseHeaders"; // Count: 2
|
|
56
|
+
export var _DYN_GET_CORRELATION_CONT14 = "getCorrelationContext"; // Count: 2
|
|
57
|
+
export var _DYN_PERF_MARK = "perfMark"; // Count: 4
|
|
58
|
+
export var _DYN_AJAX_PERF_LOOKUP_DEL15 = "ajaxPerfLookupDelay"; // Count: 2
|
|
59
|
+
export var _DYN_NAME = "name"; // Count: 6
|
|
60
|
+
export var _DYN_PERF_TIMING = "perfTiming"; // Count: 3
|
|
61
|
+
export var _DYN_AJAX_DIAGNOSTICS_MES16 = "ajaxDiagnosticsMessage"; // Count: 3
|
|
62
|
+
export var _DYN_CORRELATION_CONTEXT = "correlationContext"; // Count: 3
|
|
63
|
+
export var _DYN_AJAX_TOTAL_DURATION = "ajaxTotalDuration"; // Count: 3
|
|
64
|
+
//# sourceMappingURL=__DynamicConstants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_REQUEST_URL = \"requestUrl\"; // Count: 12\r\nexport var _DYN_INST = \"inst\"; // Count: 5\r\nexport var _DYN_LENGTH = \"length\"; // Count: 9\r\nexport var _DYN_TRACE_ID = \"traceID\"; // Count: 8\r\nexport var _DYN_SPAN_ID = \"spanID\"; // Count: 8\r\nexport var _DYN_TRACE_FLAGS = \"traceFlags\"; // Count: 8\r\nexport var _DYN_CORE = \"core\"; // Count: 6\r\nexport var _DYN_GET_DEFAULT_CONFIG = \"getDefaultConfig\"; // Count: 2\r\nexport var _DYN_INCLUDE_CORRELATION_0 = \"includeCorrelationHeaders\"; // Count: 4\r\nexport var _DYN_CAN_INCLUDE_CORRELAT1 = \"canIncludeCorrelationHeader\"; // Count: 2\r\nexport var _DYN_GET_ABSOLUTE_URL = \"getAbsoluteUrl\"; // Count: 3\r\nexport var _DYN_HEADERS = \"headers\"; // Count: 6\r\nexport var _DYN_REQUEST_HEADERS = \"requestHeaders\"; // Count: 13\r\nexport var _DYN_APP_ID = \"appId\"; // Count: 5\r\nexport var _DYN_SET_REQUEST_HEADER = \"setRequestHeader\"; // Count: 3\r\nexport var _DYN_DISTRIBUTED_TRACING_2 = \"distributedTracingMode\"; // Count: 3\r\nexport var _DYN_START_TIME = \"startTime\"; // Count: 6\r\nexport var _DYN_TO_LOWER_CASE = \"toLowerCase\"; // Count: 6\r\nexport var _DYN_ENABLE_REQUEST_HEADE3 = \"enableRequestHeaderTracking\"; // Count: 2\r\nexport var _DYN_ENABLE_AJAX_ERROR_ST4 = \"enableAjaxErrorStatusText\"; // Count: 2\r\nexport var _DYN_ENABLE_AJAX_PERF_TRA5 = \"enableAjaxPerfTracking\"; // Count: 2\r\nexport var _DYN_MAX_AJAX_CALLS_PER_V6 = \"maxAjaxCallsPerView\"; // Count: 2\r\nexport var _DYN_ENABLE_RESPONSE_HEAD7 = \"enableResponseHeaderTracking\"; // Count: 2\r\nexport var _DYN_EXCLUDE_REQUEST_FROM8 = \"excludeRequestFromAutoTrackingPatterns\"; // Count: 2\r\nexport var _DYN_ADD_REQUEST_CONTEXT = \"addRequestContext\"; // Count: 2\r\nexport var _DYN_DISABLE_AJAX_TRACKIN9 = \"disableAjaxTracking\"; // Count: 2\r\nexport var _DYN_DISABLE_FETCH_TRACKI10 = \"disableFetchTracking\"; // Count: 2\r\nexport var _DYN_STATUS = \"status\"; // Count: 10\r\nexport var _DYN_STATUS_TEXT = \"statusText\"; // Count: 8\r\nexport var _DYN_HEADER_MAP = \"headerMap\"; // Count: 8\r\nexport var _DYN_OPEN_DONE = \"openDone\"; // Count: 3\r\nexport var _DYN_SEND_DONE = \"sendDone\"; // Count: 3\r\nexport var _DYN_REQUEST_SENT_TIME = \"requestSentTime\"; // Count: 9\r\nexport var _DYN_ABORT_DONE = \"abortDone\"; // Count: 3\r\nexport var _DYN_METHOD = \"method\"; // Count: 10\r\nexport var _DYN_ERROR_STATUS_TEXT = \"errorStatusText\"; // Count: 3\r\nexport var _DYN_STATE_CHANGE_ATTACHE11 = \"stateChangeAttached\"; // Count: 2\r\nexport var _DYN_RESPONSE_TEXT = \"responseText\"; // Count: 5\r\nexport var _DYN_RESPONSE_FINISHED_TI12 = \"responseFinishedTime\"; // Count: 7\r\nexport var _DYN__CREATE_TRACK_ITEM = \"CreateTrackItem\"; // Count: 3\r\nexport var _DYN_RESPONSE = \"response\"; // Count: 4\r\nexport var _DYN_GET_ALL_RESPONSE_HEA13 = \"getAllResponseHeaders\"; // Count: 2\r\nexport var _DYN_GET_CORRELATION_CONT14 = \"getCorrelationContext\"; // Count: 2\r\nexport var _DYN_PERF_MARK = \"perfMark\"; // Count: 4\r\nexport var _DYN_AJAX_PERF_LOOKUP_DEL15 = \"ajaxPerfLookupDelay\"; // Count: 2\r\nexport var _DYN_NAME = \"name\"; // Count: 6\r\nexport var _DYN_PERF_TIMING = \"perfTiming\"; // Count: 3\r\nexport var _DYN_AJAX_DIAGNOSTICS_MES16 = \"ajaxDiagnosticsMessage\"; // Count: 3\r\nexport var _DYN_CORRELATION_CONTEXT = \"correlationContext\"; // Count: 3\r\nexport var _DYN_AJAX_TOTAL_DURATION = \"ajaxTotalDuration\"; // Count: 3\r\n//# sourceMappingURL=__DynamicConstants.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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|