@microsoft/applicationinsights-dependencies-js 2.7.0 → 2.7.1-nightly.202110-05
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 +8 -7
- 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 +1 -1
- package/dist/applicationinsights-dependencies-js.d.ts +1 -1
- package/dist/applicationinsights-dependencies-js.js +8 -7
- 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 -2
- package/dist-esm/ajaxRecord.js.map +1 -1
- package/dist-esm/ajaxUtils.js +1 -1
- package/dist-esm/applicationinsights-dependencies-js.js +1 -1
- package/package.json +61 -58
- package/src/ajax.ts +10 -7
- package/src/ajaxRecord.ts +1 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.1-nightly.202110-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
6
6
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
7
7
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
8
8
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights = global.Microsoft.ApplicationInsights || {})));
|
|
9
|
-
}(this, (function (exports) { 'use strict';
|
|
9
|
+
})(this, (function (exports) { 'use strict';
|
|
10
10
|
|
|
11
11
|
var strShimFunction = "function";
|
|
12
12
|
var strShimObject = "object";
|
|
@@ -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 () {
|
|
@@ -2890,5 +2891,5 @@
|
|
|
2890
2891
|
|
|
2891
2892
|
(function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
|
|
2892
2893
|
|
|
2893
|
-
}))
|
|
2894
|
+
}));
|
|
2894
2895
|
//# sourceMappingURL=applicationinsights-dependencies-js.js.map
|