@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.7.3-nightly.2201-01
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
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-01
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
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-01
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
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-01
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
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-01
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
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.7.3-nightly.2201-01
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-dependencies-js",
3
- "version": "2.7.3-nightly.2201-01",
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.0",
53
- "@microsoft/applicationinsights-core-js": "2.7.3-nightly.2201-01",
54
- "@microsoft/applicationinsights-common": "2.7.3-nightly.2201-01"
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, strUndefined, strPrototype, IInstrumentCallDetails, InstrumentFunc, InstrumentProto, getPerformance,
13
- IInstrumentHooksCallbacks, IInstrumentHook, objForEachKey, generateW3CId, getIEVersion, dumpObj,objKeys, ICustomProperties, isXhrSupported, attachEvent
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);
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.18.21"
8
+ "packageVersion": "7.19.4"
9
9
  }
10
10
  ]
11
11
  }