@microsoft/applicationinsights-dependencies-js 3.3.9-nightly3.2505-37 → 3.3.9-nightly3.2506-02

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.
Files changed (28) hide show
  1. package/browser/es5/applicationinsights-dependencies-js.cjs.js +2 -2
  2. package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-dependencies-js.gbl.js +4 -4
  6. package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-dependencies-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-dependencies-js.js +4 -4
  11. package/browser/es5/applicationinsights-dependencies-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-dependencies-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-dependencies-js.js +2 -2
  15. package/dist/es5/applicationinsights-dependencies-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-dependencies-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -1
  18. package/dist-es5/DependencyInitializer.js +1 -1
  19. package/dist-es5/DependencyListener.js +1 -1
  20. package/dist-es5/InternalConstants.js +1 -1
  21. package/dist-es5/__DynamicConstants.js +1 -1
  22. package/dist-es5/ajax.js +1 -1
  23. package/dist-es5/ajaxRecord.js +1 -1
  24. package/dist-es5/ajaxUtils.js +1 -1
  25. package/dist-es5/applicationinsights-dependencies-js.js +1 -1
  26. package/package.json +3 -3
  27. package/types/applicationinsights-dependencies-js.d.ts +4 -1
  28. package/types/applicationinsights-dependencies-js.namespaced.d.ts +87 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
 
package/dist-es5/ajax.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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, 3.3.9-nightly3.2505-37
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.3.9-nightly3.2506-02
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": "3.3.9-nightly3.2505-37",
3
+ "version": "3.3.9-nightly3.2506-02",
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",
@@ -57,8 +57,8 @@
57
57
  "dependencies": {
58
58
  "@microsoft/dynamicproto-js": "^2.0.3",
59
59
  "@microsoft/applicationinsights-shims": "3.0.1",
60
- "@microsoft/applicationinsights-core-js": "3.3.9-nightly3.2505-37",
61
- "@microsoft/applicationinsights-common": "3.3.9-nightly3.2505-37",
60
+ "@microsoft/applicationinsights-core-js": "3.3.9-nightly3.2506-02",
61
+ "@microsoft/applicationinsights-common": "3.3.9-nightly3.2506-02",
62
62
  "@nevware21/ts-utils": ">= 0.11.8 < 2.x",
63
63
  "@nevware21/ts-async": ">= 0.5.4 < 2.x"
64
64
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 3.3.9-nightly3.2505-37
2
+ * Microsoft Application Insights XHR dependencies plugin, 3.3.9-nightly3.2506-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -16,6 +16,7 @@ import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
16
16
  import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
17
17
  import { IConfig } from '@microsoft/applicationinsights-common';
18
18
  import { IConfiguration } from '@microsoft/applicationinsights-core-js';
19
+ import { ICorrelationConfig } from '@microsoft/applicationinsights-common';
19
20
  import { IDependencyTelemetry } from '@microsoft/applicationinsights-common';
20
21
  import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
21
22
  import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
@@ -148,6 +149,8 @@ declare interface IAjaxRecordResponse {
148
149
  response?: Object;
149
150
  }
150
151
 
152
+ export { ICorrelationConfig }
153
+
151
154
  export declare interface IDependenciesPlugin extends IDependencyListenerContainer {
152
155
  /**
153
156
  * Logs dependency call
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 3.3.9-nightly3.2505-37
2
+ * Microsoft Application Insights XHR dependencies plugin, 3.3.9-nightly3.2506-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1377,6 +1377,92 @@ declare namespace ApplicationInsights {
1377
1377
  delCookie?: (name: string, cookieValue: string) => void;
1378
1378
  }
1379
1379
 
1380
+ interface ICorrelationConfig {
1381
+ enableCorsCorrelation: boolean;
1382
+ correlationHeaderExcludedDomains: string[];
1383
+ correlationHeaderExcludePatterns?: RegExp[];
1384
+ disableCorrelationHeaders: boolean;
1385
+ distributedTracingMode: DistributedTracingModes;
1386
+ maxAjaxCallsPerView: number;
1387
+ disableAjaxTracking: boolean;
1388
+ disableFetchTracking: boolean;
1389
+ appId?: string;
1390
+ enableRequestHeaderTracking?: boolean;
1391
+ enableResponseHeaderTracking?: boolean;
1392
+ enableAjaxErrorStatusText?: boolean;
1393
+ /**
1394
+ * Flag to enable looking up and including additional browser window.performance timings
1395
+ * in the reported ajax (XHR and fetch) reported metrics.
1396
+ * Defaults to false.
1397
+ */
1398
+ enableAjaxPerfTracking?: boolean;
1399
+ /**
1400
+ * The maximum number of times to look for the window.performance timings (if available), this
1401
+ * is required as not all browsers populate the window.performance before reporting the
1402
+ * end of the XHR request and for fetch requests this is added after its complete
1403
+ * Defaults to 3
1404
+ */
1405
+ maxAjaxPerfLookupAttempts?: number;
1406
+ /**
1407
+ * The amount of time to wait before re-attempting to find the windows.performance timings
1408
+ * for an ajax request, time is in milliseconds and is passed directly to setTimeout()
1409
+ * Defaults to 25.
1410
+ */
1411
+ ajaxPerfLookupDelay?: number;
1412
+ correlationHeaderDomains?: string[];
1413
+ /**
1414
+ * [Optional] Response and request headers to be excluded from AJAX & Fetch tracking data.
1415
+ * To override or discard the default, add an array with all headers to be excluded or
1416
+ * an empty array to the configuration.
1417
+ *
1418
+ * For example: `["Authorization", "X-API-Key", "WWW-Authenticate"]`
1419
+ *
1420
+ * @example
1421
+ * ```js
1422
+ * import { ApplicationInsights } from '@microsoft/applicationinsights-web';
1423
+ * import { AjaxPlugin } from '@microsoft/applicationinsights-dependencies-js';
1424
+ *
1425
+ * const dependencyPlugin = new AjaxPlugin();
1426
+ * const appInsights = new ApplicationInsights({
1427
+ * config: {
1428
+ * connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
1429
+ * extensions: [dependencyPlugin],
1430
+ * extensionConfig: {
1431
+ * [dependencyPlugin.identifier]: {
1432
+ * ignoreHeaders: [
1433
+ * "Authorization",
1434
+ * "X-API-Key",
1435
+ * "WWW-Authenticate"
1436
+ * ]
1437
+ * }
1438
+ * }
1439
+ * }
1440
+ * });
1441
+ * appInsights.loadAppInsights();
1442
+ * appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
1443
+ * ```
1444
+ */
1445
+ ignoreHeaders?: string[];
1446
+ /**
1447
+ * Provide a way to exclude specific route from automatic tracking for XMLHttpRequest or Fetch request.
1448
+ * For an ajax / fetch request that the request url matches with the regex patterns, auto tracking is turned off.
1449
+ * Default is undefined.
1450
+ */
1451
+ excludeRequestFromAutoTrackingPatterns?: string[] | RegExp[];
1452
+ /**
1453
+ * Provide a way to enrich dependencies logs with context at the beginning of api call.
1454
+ * Default is undefined.
1455
+ */
1456
+ addRequestContext?: (requestContext?: IRequestContext) => ICustomProperties;
1457
+ /**
1458
+ * [Optional] Flag to indicate whether the internal looking endpoints should be automatically
1459
+ * added to the `excludeRequestFromAutoTrackingPatterns` collection. (defaults to true).
1460
+ * This flag exists as the provided regex is generic and may unexpectedly match a domain that
1461
+ * should not be excluded.
1462
+ */
1463
+ addIntEndpoints?: boolean;
1464
+ }
1465
+
1380
1466
  interface ICustomProperties {
1381
1467
  [key: string]: any;
1382
1468
  }