@microsoft/applicationinsights-dependencies-js 2.7.1-nightly.202110-02 → 2.7.1-nightly.202110-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 +6 -5
- 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.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +6 -5
- 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 +1 -1
- package/dist-esm/TraceParent.js +1 -1
- package/dist-esm/ajax.js +8 -5
- package/dist-esm/ajax.js.map +1 -1
- package/dist-esm/ajaxRecord.js +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +3 -3
- package/src/ajax.ts +8 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 2.7.1-nightly.202110-
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 2.7.1-nightly.202110-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.1-nightly.202110-
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.1-nightly.202110-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -2432,9 +2432,11 @@
|
|
|
2432
2432
|
req: function (args, method, url, async) {
|
|
2433
2433
|
var xhr = args.inst;
|
|
2434
2434
|
var ajaxData = xhr[strAjaxData];
|
|
2435
|
-
if (!_isDisabledRequest(xhr, url) && _isMonitoredXhrInstance(xhr, true)
|
|
2436
|
-
(!ajaxData || !ajaxData.xhrMonitoringState.openDone)
|
|
2437
|
-
|
|
2435
|
+
if (!_isDisabledRequest(xhr, url) && _isMonitoredXhrInstance(xhr, true)) {
|
|
2436
|
+
if (!ajaxData || !ajaxData.xhrMonitoringState.openDone) {
|
|
2437
|
+
_openHandler(xhr, method, url, async);
|
|
2438
|
+
}
|
|
2439
|
+
_attachToOnReadyStateChange(xhr);
|
|
2438
2440
|
}
|
|
2439
2441
|
},
|
|
2440
2442
|
hkErr: _createErrorCallbackFunc(_self, _InternalMessageId.FailedMonitorAjaxOpen, "Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")
|
|
@@ -2542,7 +2544,6 @@
|
|
|
2542
2544
|
ajaxData.async = async;
|
|
2543
2545
|
ajaxData.errorStatusText = _enableAjaxErrorStatusText;
|
|
2544
2546
|
xhr[strAjaxData] = ajaxData;
|
|
2545
|
-
_attachToOnReadyStateChange(xhr);
|
|
2546
2547
|
}
|
|
2547
2548
|
function _attachToOnReadyStateChange(xhr) {
|
|
2548
2549
|
xhr[strAjaxData].xhrMonitoringState.stateChangeAttached = attachEvent(xhr, "readystatechange", function () {
|