@microsoft/applicationinsights-dependencies-js 2.8.0-beta.2203-09 → 2.8.0-beta.2203-10

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.8.0-beta.2203-09
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.0-beta.2203-10
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.8.0-beta.2203-09",
3
+ "version": "2.8.0-beta.2203-10",
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",
@@ -50,8 +50,8 @@
50
50
  "dependencies": {
51
51
  "@microsoft/dynamicproto-js": "^1.1.4",
52
52
  "@microsoft/applicationinsights-shims": "2.0.1",
53
- "@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-09",
54
- "@microsoft/applicationinsights-common": "2.8.0-beta.2203-09"
53
+ "@microsoft/applicationinsights-core-js": "2.8.0-beta.2203-10",
54
+ "@microsoft/applicationinsights-common": "2.8.0-beta.2203-10"
55
55
  },
56
56
  "license": "MIT",
57
57
  "publishConfig": {
package/src/ajax.ts CHANGED
@@ -442,7 +442,9 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
442
442
  if (_enableResponseHeaderTracking) {
443
443
  const responseHeaderMap = {};
444
444
  response.headers.forEach((value: string, name: string) => {
445
- if (_canIncludeHeaders(name)) { responseHeaderMap[name] = value; }
445
+ if (_canIncludeHeaders(name)) {
446
+ responseHeaderMap[name] = value;
447
+ }
446
448
  });
447
449
 
448
450
  ajaxResponse.headerMap = responseHeaderMap;
@@ -453,10 +455,10 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
453
455
 
454
456
  return response;
455
457
  })
456
- .catch((reason: any) => {
457
- _reportFetchMetrics(callDetails, 0, input, null, fetchData, null, { error: reason.message });
458
- throw reason;
459
- });
458
+ .catch((reason: any) => {
459
+ _reportFetchMetrics(callDetails, 0, input, null, fetchData, null, { error: reason.message });
460
+ throw reason;
461
+ });
460
462
  }
461
463
  },
462
464
  // Create an error callback to report any hook errors
@@ -733,7 +735,9 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
733
735
  const parts = line.split(": ");
734
736
  const header = parts.shift();
735
737
  const value = parts.join(": ");
736
- if(_canIncludeHeaders(header)) { responseHeaderMap[header] = value; }
738
+ if(_canIncludeHeaders(header)) {
739
+ responseHeaderMap[header] = value;
740
+ }
737
741
  });
738
742
 
739
743
  ajaxResponse.headerMap = responseHeaderMap;
@@ -761,9 +765,9 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
761
765
  _self[strTrackDependencyDataInternal](dependency);
762
766
  } else {
763
767
  _reportXhrError(null, {
764
- requestSentTime: ajaxData.requestSentTime,
765
- responseFinishedTime: ajaxData.responseFinishedTime
766
- });
768
+ requestSentTime: ajaxData.requestSentTime,
769
+ responseFinishedTime: ajaxData.responseFinishedTime
770
+ });
767
771
  }
768
772
  } finally {
769
773
  // cleanup telemetry data
@@ -903,7 +907,9 @@ export class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlu
903
907
  if (_enableRequestHeaderTracking) {
904
908
  let headers = new Headers((init ? init.headers : 0) || (input instanceof Request ? (input.headers || {}) : {}));
905
909
  headers.forEach((value, key) => {
906
- if (_canIncludeHeaders(key)) { requestHeaders[key] = value; }
910
+ if (_canIncludeHeaders(key)) {
911
+ requestHeaders[key] = value;
912
+ }
907
913
  });
908
914
  }
909
915