@microsoft/applicationinsights-dependencies-js 2.7.3-nightly.2201-01 → 2.7.4-nightly.2202-01
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 +40 -30
- 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 +40 -30
- 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 +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 +4 -4
- package/src/ajax.ts +5 -3
- package/src/ajaxRecord.ts +4 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights XHR dependencies plugin, 2.7.
|
|
2
|
+
* Microsoft Application Insights XHR dependencies plugin, 2.7.4-nightly.2202-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
package/dist-esm/TraceParent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.
|
|
2
|
+
* Application Insights JavaScript SDK - Dependencies Plugin, 2.7.4-nightly.2202-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { generateW3CId } from "@microsoft/applicationinsights-core-js";
|
package/dist-esm/ajax.js
CHANGED
package/dist-esm/ajaxRecord.js
CHANGED
package/dist-esm/ajaxUtils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-dependencies-js",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4-nightly.2202-01",
|
|
4
4
|
"description": "Microsoft Application Insights XHR dependencies plugin",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@microsoft/dynamicproto-js": "^1.1.4",
|
|
52
|
-
"@microsoft/applicationinsights-shims": "2.0.
|
|
53
|
-
"@microsoft/applicationinsights-core-js": "2.7.
|
|
54
|
-
"@microsoft/applicationinsights-common": "2.7.
|
|
52
|
+
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
53
|
+
"@microsoft/applicationinsights-core-js": "2.7.4-nightly.2202-01",
|
|
54
|
+
"@microsoft/applicationinsights-common": "2.7.4-nightly.2202-01"
|
|
55
55
|
},
|
|
56
56
|
"license": "MIT",
|
|
57
57
|
"publishConfig": {
|
package/src/ajax.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
isNullOrUndefined, arrForEach, isString, strTrim, isFunction, LoggingSeverity, _InternalMessageId,
|
|
11
11
|
IAppInsightsCore, BaseTelemetryPlugin, ITelemetryPluginChain, IConfiguration, IPlugin, ITelemetryItem, IProcessTelemetryContext,
|
|
12
|
-
getLocation, getGlobal,
|
|
13
|
-
IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,
|
|
12
|
+
getLocation, getGlobal, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
|
|
13
|
+
IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj, ICustomProperties, isXhrSupported, attachEvent
|
|
14
14
|
} from "@microsoft/applicationinsights-core-js";
|
|
15
15
|
import { ajaxRecord, IAjaxRecordResponse } from "./ajaxRecord";
|
|
16
16
|
import { Traceparent } from "./TraceParent";
|
|
@@ -259,10 +259,12 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
|
|
|
259
259
|
let propExt: any, extIx = 0;
|
|
260
260
|
while (!propExt && extIx < extensions.length) {
|
|
261
261
|
if (extensions[extIx] && extensions[extIx].identifier === PropertiesPluginIdentifier) {
|
|
262
|
-
propExt = extensions[extIx]
|
|
262
|
+
propExt = extensions[extIx];
|
|
263
263
|
}
|
|
264
|
+
|
|
264
265
|
extIx++;
|
|
265
266
|
}
|
|
267
|
+
|
|
266
268
|
if (propExt) {
|
|
267
269
|
_context = propExt.context; // we could move IPropertiesPlugin to common as well
|
|
268
270
|
}
|
package/src/ajaxRecord.ts
CHANGED
|
@@ -102,7 +102,7 @@ function _populatePerfData(ajaxData:ajaxRecord, dependency:IDependencyTelemetry)
|
|
|
102
102
|
let strTransferSize = "transferSize";
|
|
103
103
|
let strEncodedBodySize = "encodedBodySize";
|
|
104
104
|
let strDecodedBodySize = "decodedBodySize";
|
|
105
|
-
let strServerTiming = "serverTiming"
|
|
105
|
+
let strServerTiming = "serverTiming";
|
|
106
106
|
|
|
107
107
|
if (resourceEntry) {
|
|
108
108
|
// redirect
|
|
@@ -157,9 +157,9 @@ function _populatePerfData(ajaxData:ajaxRecord, dependency:IDependencyTelemetry)
|
|
|
157
157
|
propsSet |= _setPerfValue(props, strServerTiming, server);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
propsSet |= _setPerfValue(props, strTransferSize, resourceEntry[strTransferSize])
|
|
161
|
-
propsSet |= _setPerfValue(props, strEncodedBodySize, resourceEntry[strEncodedBodySize])
|
|
162
|
-
propsSet |= _setPerfValue(props, strDecodedBodySize, resourceEntry[strDecodedBodySize])
|
|
160
|
+
propsSet |= _setPerfValue(props, strTransferSize, resourceEntry[strTransferSize]);
|
|
161
|
+
propsSet |= _setPerfValue(props, strEncodedBodySize, resourceEntry[strEncodedBodySize]);
|
|
162
|
+
propsSet |= _setPerfValue(props, strDecodedBodySize, resourceEntry[strDecodedBodySize]);
|
|
163
163
|
} else {
|
|
164
164
|
if (ajaxData.perfMark) {
|
|
165
165
|
propsSet |= _setPerfValue(props, "missing", ajaxData.perfAttempts);
|