@microsoft/applicationinsights-dependencies-js 2.8.10-nightly.2301-28 → 2.8.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.
Files changed (34) hide show
  1. package/browser/applicationinsights-dependencies-js.integrity.json +9 -9
  2. package/browser/applicationinsights-dependencies-js.js +33 -24
  3. package/browser/applicationinsights-dependencies-js.js.map +1 -1
  4. package/browser/applicationinsights-dependencies-js.min.js +2 -2
  5. package/browser/applicationinsights-dependencies-js.min.js.map +1 -1
  6. package/dist/applicationinsights-dependencies-js.api.json +137 -36
  7. package/dist/applicationinsights-dependencies-js.api.md +2 -0
  8. package/dist/applicationinsights-dependencies-js.d.ts +11 -1
  9. package/dist/applicationinsights-dependencies-js.js +33 -24
  10. package/dist/applicationinsights-dependencies-js.js.map +1 -1
  11. package/dist/applicationinsights-dependencies-js.min.js +2 -2
  12. package/dist/applicationinsights-dependencies-js.min.js.map +1 -1
  13. package/dist/applicationinsights-dependencies-js.rollup.d.ts +11 -1
  14. package/dist-esm/DependencyInitializer.js +1 -1
  15. package/dist-esm/DependencyListener.js +1 -1
  16. package/dist-esm/InternalConstants.js +1 -1
  17. package/dist-esm/__DynamicConstants.js +5 -4
  18. package/dist-esm/__DynamicConstants.js.map +1 -1
  19. package/dist-esm/ajax.js +16 -14
  20. package/dist-esm/ajax.js.map +1 -1
  21. package/dist-esm/ajaxRecord.js +18 -12
  22. package/dist-esm/ajaxRecord.js.map +1 -1
  23. package/dist-esm/ajaxUtils.js +1 -1
  24. package/dist-esm/applicationinsights-dependencies-js.js +1 -1
  25. package/package.json +61 -63
  26. package/src/DependencyInitializer.ts +5 -0
  27. package/src/DependencyListener.ts +7 -0
  28. package/src/__DynamicConstants.ts +4 -3
  29. package/src/ajax.ts +15 -13
  30. package/src/ajaxRecord.ts +17 -11
  31. package/types/DependencyInitializer.d.ts +4 -0
  32. package/types/DependencyListener.d.ts +6 -0
  33. package/types/__DynamicConstants.d.ts +1 -0
  34. package/types/tsdoc-metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.33.7",
5
- "schemaVersion": 1010,
4
+ "toolVersion": "7.34.2",
5
+ "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
8
8
  "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
@@ -220,6 +220,7 @@
220
220
  ],
221
221
  "fileUrlPath": "types/ajax.d.ts",
222
222
  "releaseTag": "Public",
223
+ "isAbstract": false,
223
224
  "name": "AjaxPlugin",
224
225
  "preserveMemberOrder": false,
225
226
  "members": [
@@ -285,6 +286,7 @@
285
286
  }
286
287
  ],
287
288
  "isOptional": false,
289
+ "isAbstract": false,
288
290
  "name": "addDependencyInitializer"
289
291
  },
290
292
  {
@@ -334,6 +336,7 @@
334
336
  }
335
337
  ],
336
338
  "isOptional": false,
339
+ "isAbstract": false,
337
340
  "name": "addDependencyListener"
338
341
  },
339
342
  {
@@ -368,7 +371,8 @@
368
371
  "endIndex": 3
369
372
  },
370
373
  "isStatic": true,
371
- "isProtected": false
374
+ "isProtected": false,
375
+ "isAbstract": false
372
376
  },
373
377
  {
374
378
  "kind": "Property",
@@ -402,7 +406,8 @@
402
406
  "endIndex": 3
403
407
  },
404
408
  "isStatic": true,
405
- "isProtected": false
409
+ "isProtected": false,
410
+ "isAbstract": false
406
411
  },
407
412
  {
408
413
  "kind": "Property",
@@ -431,7 +436,8 @@
431
436
  "endIndex": 2
432
437
  },
433
438
  "isStatic": false,
434
- "isProtected": false
439
+ "isProtected": false,
440
+ "isAbstract": false
435
441
  },
436
442
  {
437
443
  "kind": "Property",
@@ -460,7 +466,8 @@
460
466
  "endIndex": 2
461
467
  },
462
468
  "isStatic": true,
463
- "isProtected": false
469
+ "isProtected": false,
470
+ "isAbstract": false
464
471
  },
465
472
  {
466
473
  "kind": "Method",
@@ -563,6 +570,7 @@
563
570
  }
564
571
  ],
565
572
  "isOptional": false,
573
+ "isAbstract": false,
566
574
  "name": "includeCorrelationHeaders"
567
575
  },
568
576
  {
@@ -675,6 +683,7 @@
675
683
  }
676
684
  ],
677
685
  "isOptional": false,
686
+ "isAbstract": false,
678
687
  "name": "initialize"
679
688
  },
680
689
  {
@@ -704,7 +713,8 @@
704
713
  "endIndex": 2
705
714
  },
706
715
  "isStatic": false,
707
- "isProtected": false
716
+ "isProtected": false,
717
+ "isAbstract": false
708
718
  },
709
719
  {
710
720
  "kind": "Method",
@@ -769,6 +779,7 @@
769
779
  }
770
780
  ],
771
781
  "isOptional": false,
782
+ "isAbstract": false,
772
783
  "name": "processTelemetry"
773
784
  },
774
785
  {
@@ -833,6 +844,7 @@
833
844
  }
834
845
  ],
835
846
  "isOptional": false,
847
+ "isAbstract": false,
836
848
  "name": "trackDependencyData"
837
849
  },
838
850
  {
@@ -913,6 +925,7 @@
913
925
  }
914
926
  ],
915
927
  "isOptional": false,
928
+ "isAbstract": false,
916
929
  "name": "trackDependencyDataInternal"
917
930
  }
918
931
  ],
@@ -947,6 +960,7 @@
947
960
  ],
948
961
  "fileUrlPath": "types/ajaxRecord.d.ts",
949
962
  "releaseTag": "Public",
963
+ "isAbstract": false,
950
964
  "name": "ajaxRecord",
951
965
  "preserveMemberOrder": false,
952
966
  "members": [
@@ -1059,7 +1073,8 @@
1059
1073
  "endIndex": 2
1060
1074
  },
1061
1075
  "isStatic": false,
1062
- "isProtected": false
1076
+ "isProtected": false,
1077
+ "isAbstract": false
1063
1078
  },
1064
1079
  {
1065
1080
  "kind": "Property",
@@ -1088,7 +1103,8 @@
1088
1103
  "endIndex": 2
1089
1104
  },
1090
1105
  "isStatic": false,
1091
- "isProtected": false
1106
+ "isProtected": false,
1107
+ "isAbstract": false
1092
1108
  },
1093
1109
  {
1094
1110
  "kind": "Property",
@@ -1117,7 +1133,8 @@
1117
1133
  "endIndex": 2
1118
1134
  },
1119
1135
  "isStatic": false,
1120
- "isProtected": false
1136
+ "isProtected": false,
1137
+ "isAbstract": false
1121
1138
  },
1122
1139
  {
1123
1140
  "kind": "Property",
@@ -1146,7 +1163,8 @@
1146
1163
  "endIndex": 2
1147
1164
  },
1148
1165
  "isStatic": false,
1149
- "isProtected": false
1166
+ "isProtected": false,
1167
+ "isAbstract": false
1150
1168
  },
1151
1169
  {
1152
1170
  "kind": "Property",
@@ -1175,7 +1193,8 @@
1175
1193
  "endIndex": 2
1176
1194
  },
1177
1195
  "isStatic": false,
1178
- "isProtected": false
1196
+ "isProtected": false,
1197
+ "isAbstract": false
1179
1198
  },
1180
1199
  {
1181
1200
  "kind": "Property",
@@ -1204,7 +1223,8 @@
1204
1223
  "endIndex": 2
1205
1224
  },
1206
1225
  "isStatic": false,
1207
- "isProtected": false
1226
+ "isProtected": false,
1227
+ "isAbstract": false
1208
1228
  },
1209
1229
  {
1210
1230
  "kind": "Property",
@@ -1233,7 +1253,8 @@
1233
1253
  "endIndex": 2
1234
1254
  },
1235
1255
  "isStatic": false,
1236
- "isProtected": false
1256
+ "isProtected": false,
1257
+ "isAbstract": false
1237
1258
  },
1238
1259
  {
1239
1260
  "kind": "Property",
@@ -1262,7 +1283,8 @@
1262
1283
  "endIndex": 2
1263
1284
  },
1264
1285
  "isStatic": false,
1265
- "isProtected": false
1286
+ "isProtected": false,
1287
+ "isAbstract": false
1266
1288
  },
1267
1289
  {
1268
1290
  "kind": "Method",
@@ -1347,6 +1369,7 @@
1347
1369
  }
1348
1370
  ],
1349
1371
  "isOptional": false,
1372
+ "isAbstract": false,
1350
1373
  "name": "CreateTrackItem"
1351
1374
  },
1352
1375
  {
@@ -1376,7 +1399,8 @@
1376
1399
  "endIndex": 2
1377
1400
  },
1378
1401
  "isStatic": false,
1379
- "isProtected": false
1402
+ "isProtected": false,
1403
+ "isAbstract": false
1380
1404
  },
1381
1405
  {
1382
1406
  "kind": "Property",
@@ -1405,7 +1429,8 @@
1405
1429
  "endIndex": 2
1406
1430
  },
1407
1431
  "isStatic": false,
1408
- "isProtected": false
1432
+ "isProtected": false,
1433
+ "isAbstract": false
1409
1434
  },
1410
1435
  {
1411
1436
  "kind": "Property",
@@ -1435,7 +1460,8 @@
1435
1460
  "endIndex": 2
1436
1461
  },
1437
1462
  "isStatic": false,
1438
- "isProtected": false
1463
+ "isProtected": false,
1464
+ "isAbstract": false
1439
1465
  },
1440
1466
  {
1441
1467
  "kind": "Method",
@@ -1465,6 +1491,7 @@
1465
1491
  "overloadIndex": 1,
1466
1492
  "parameters": [],
1467
1493
  "isOptional": false,
1494
+ "isAbstract": false,
1468
1495
  "name": "getAbsoluteUrl"
1469
1496
  },
1470
1497
  {
@@ -1495,6 +1522,7 @@
1495
1522
  "overloadIndex": 1,
1496
1523
  "parameters": [],
1497
1524
  "isOptional": false,
1525
+ "isAbstract": false,
1498
1526
  "name": "getPartAProps"
1499
1527
  },
1500
1528
  {
@@ -1525,6 +1553,7 @@
1525
1553
  "overloadIndex": 1,
1526
1554
  "parameters": [],
1527
1555
  "isOptional": false,
1556
+ "isAbstract": false,
1528
1557
  "name": "getPathName"
1529
1558
  },
1530
1559
  {
@@ -1554,7 +1583,8 @@
1554
1583
  "endIndex": 2
1555
1584
  },
1556
1585
  "isStatic": false,
1557
- "isProtected": false
1586
+ "isProtected": false,
1587
+ "isAbstract": false
1558
1588
  },
1559
1589
  {
1560
1590
  "kind": "Property",
@@ -1583,7 +1613,8 @@
1583
1613
  "endIndex": 2
1584
1614
  },
1585
1615
  "isStatic": false,
1586
- "isProtected": false
1616
+ "isProtected": false,
1617
+ "isAbstract": false
1587
1618
  },
1588
1619
  {
1589
1620
  "kind": "Property",
@@ -1612,7 +1643,8 @@
1612
1643
  "endIndex": 2
1613
1644
  },
1614
1645
  "isStatic": false,
1615
- "isProtected": false
1646
+ "isProtected": false,
1647
+ "isAbstract": false
1616
1648
  },
1617
1649
  {
1618
1650
  "kind": "Property",
@@ -1642,7 +1674,8 @@
1642
1674
  "endIndex": 2
1643
1675
  },
1644
1676
  "isStatic": false,
1645
- "isProtected": false
1677
+ "isProtected": false,
1678
+ "isAbstract": false
1646
1679
  },
1647
1680
  {
1648
1681
  "kind": "Property",
@@ -1672,7 +1705,8 @@
1672
1705
  "endIndex": 2
1673
1706
  },
1674
1707
  "isStatic": false,
1675
- "isProtected": false
1708
+ "isProtected": false,
1709
+ "isAbstract": false
1676
1710
  },
1677
1711
  {
1678
1712
  "kind": "Property",
@@ -1701,7 +1735,8 @@
1701
1735
  "endIndex": 2
1702
1736
  },
1703
1737
  "isStatic": false,
1704
- "isProtected": false
1738
+ "isProtected": false,
1739
+ "isAbstract": false
1705
1740
  },
1706
1741
  {
1707
1742
  "kind": "Property",
@@ -1730,7 +1765,8 @@
1730
1765
  "endIndex": 2
1731
1766
  },
1732
1767
  "isStatic": false,
1733
- "isProtected": false
1768
+ "isProtected": false,
1769
+ "isAbstract": false
1734
1770
  },
1735
1771
  {
1736
1772
  "kind": "Property",
@@ -1759,7 +1795,8 @@
1759
1795
  "endIndex": 2
1760
1796
  },
1761
1797
  "isStatic": false,
1762
- "isProtected": false
1798
+ "isProtected": false,
1799
+ "isAbstract": false
1763
1800
  },
1764
1801
  {
1765
1802
  "kind": "Property",
@@ -1788,7 +1825,8 @@
1788
1825
  "endIndex": 2
1789
1826
  },
1790
1827
  "isStatic": false,
1791
- "isProtected": false
1828
+ "isProtected": false,
1829
+ "isAbstract": false
1792
1830
  },
1793
1831
  {
1794
1832
  "kind": "Property",
@@ -1817,7 +1855,8 @@
1817
1855
  "endIndex": 2
1818
1856
  },
1819
1857
  "isStatic": false,
1820
- "isProtected": false
1858
+ "isProtected": false,
1859
+ "isAbstract": false
1821
1860
  },
1822
1861
  {
1823
1862
  "kind": "Property",
@@ -1846,7 +1885,8 @@
1846
1885
  "endIndex": 2
1847
1886
  },
1848
1887
  "isStatic": false,
1849
- "isProtected": false
1888
+ "isProtected": false,
1889
+ "isAbstract": false
1850
1890
  },
1851
1891
  {
1852
1892
  "kind": "Property",
@@ -1875,7 +1915,8 @@
1875
1915
  "endIndex": 2
1876
1916
  },
1877
1917
  "isStatic": false,
1878
- "isProtected": false
1918
+ "isProtected": false,
1919
+ "isAbstract": false
1879
1920
  },
1880
1921
  {
1881
1922
  "kind": "Property",
@@ -1904,7 +1945,8 @@
1904
1945
  "endIndex": 2
1905
1946
  },
1906
1947
  "isStatic": false,
1907
- "isProtected": false
1948
+ "isProtected": false,
1949
+ "isAbstract": false
1908
1950
  },
1909
1951
  {
1910
1952
  "kind": "Property",
@@ -1933,7 +1975,8 @@
1933
1975
  "endIndex": 2
1934
1976
  },
1935
1977
  "isStatic": false,
1936
- "isProtected": false
1978
+ "isProtected": false,
1979
+ "isAbstract": false
1937
1980
  },
1938
1981
  {
1939
1982
  "kind": "Property",
@@ -1962,7 +2005,8 @@
1962
2005
  "endIndex": 2
1963
2006
  },
1964
2007
  "isStatic": false,
1965
- "isProtected": false
2008
+ "isProtected": false,
2009
+ "isAbstract": false
1966
2010
  },
1967
2011
  {
1968
2012
  "kind": "Property",
@@ -1991,7 +2035,8 @@
1991
2035
  "endIndex": 2
1992
2036
  },
1993
2037
  "isStatic": false,
1994
- "isProtected": false
2038
+ "isProtected": false,
2039
+ "isAbstract": false
1995
2040
  },
1996
2041
  {
1997
2042
  "kind": "Property",
@@ -2020,7 +2065,8 @@
2020
2065
  "endIndex": 2
2021
2066
  },
2022
2067
  "isStatic": false,
2023
- "isProtected": false
2068
+ "isProtected": false,
2069
+ "isAbstract": false
2024
2070
  },
2025
2071
  {
2026
2072
  "kind": "Property",
@@ -2050,7 +2096,8 @@
2050
2096
  "endIndex": 2
2051
2097
  },
2052
2098
  "isStatic": false,
2053
- "isProtected": false
2099
+ "isProtected": false,
2100
+ "isAbstract": false
2054
2101
  }
2055
2102
  ],
2056
2103
  "implementsTokenRanges": []
@@ -2287,6 +2334,33 @@
2287
2334
  "name": "IDependencyInitializerDetails",
2288
2335
  "preserveMemberOrder": false,
2289
2336
  "members": [
2337
+ {
2338
+ "kind": "PropertySignature",
2339
+ "canonicalReference": "@microsoft/applicationinsights-dependencies-js!IDependencyInitializerDetails#aborted:member",
2340
+ "docComment": "/**\n * [Optional] A flag that indicates whether the client request was manually aborted by the `abort()`\n */\n",
2341
+ "excerptTokens": [
2342
+ {
2343
+ "kind": "Content",
2344
+ "text": "aborted?: "
2345
+ },
2346
+ {
2347
+ "kind": "Content",
2348
+ "text": "boolean"
2349
+ },
2350
+ {
2351
+ "kind": "Content",
2352
+ "text": ";"
2353
+ }
2354
+ ],
2355
+ "isReadonly": false,
2356
+ "isOptional": true,
2357
+ "releaseTag": "Public",
2358
+ "name": "aborted",
2359
+ "propertyTypeTokenRange": {
2360
+ "startIndex": 1,
2361
+ "endIndex": 2
2362
+ }
2363
+ },
2290
2364
  {
2291
2365
  "kind": "PropertySignature",
2292
2366
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!IDependencyInitializerDetails#context:member",
@@ -2445,6 +2519,33 @@
2445
2519
  "name": "IDependencyListenerDetails",
2446
2520
  "preserveMemberOrder": false,
2447
2521
  "members": [
2522
+ {
2523
+ "kind": "PropertySignature",
2524
+ "canonicalReference": "@microsoft/applicationinsights-dependencies-js!IDependencyListenerDetails#aborted:member",
2525
+ "docComment": "/**\n * [Optional] A flag that indicates whether the client request was manually aborted by the `abort()`, as listeners are called just before the request is sent it is unlikely that an application would have called `abort` before `send` this is also available in the dependency initializer.\n */\n",
2526
+ "excerptTokens": [
2527
+ {
2528
+ "kind": "Content",
2529
+ "text": "aborted?: "
2530
+ },
2531
+ {
2532
+ "kind": "Content",
2533
+ "text": "boolean"
2534
+ },
2535
+ {
2536
+ "kind": "Content",
2537
+ "text": ";"
2538
+ }
2539
+ ],
2540
+ "isReadonly": false,
2541
+ "isOptional": true,
2542
+ "releaseTag": "Public",
2543
+ "name": "aborted",
2544
+ "propertyTypeTokenRange": {
2545
+ "startIndex": 1,
2546
+ "endIndex": 2
2547
+ }
2548
+ },
2448
2549
  {
2449
2550
  "kind": "PropertySignature",
2450
2551
  "canonicalReference": "@microsoft/applicationinsights-dependencies-js!IDependencyListenerDetails#context:member",
@@ -151,6 +151,7 @@ export interface IDependencyHandler {
151
151
 
152
152
  // @public (undocumented)
153
153
  export interface IDependencyInitializerDetails {
154
+ aborted?: boolean;
154
155
  context?: {
155
156
  [key: string]: any;
156
157
  };
@@ -169,6 +170,7 @@ export interface IDependencyInitializerHandler extends IDependencyHandler {
169
170
 
170
171
  // @public (undocumented)
171
172
  export interface IDependencyListenerDetails {
173
+ aborted?: boolean;
172
174
  context?: {
173
175
  [key: string]: any;
174
176
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.10-nightly.2301-28
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -187,6 +187,10 @@ declare namespace ApplicationInsights {
187
187
  context?: {
188
188
  [key: string]: any;
189
189
  };
190
+ /**
191
+ * [Optional] A flag that indicates whether the client request was manually aborted by the `abort()`
192
+ */
193
+ aborted?: boolean;
190
194
  }
191
195
 
192
196
  interface IDependencyInitializerHandler extends IDependencyHandler {
@@ -245,6 +249,12 @@ declare namespace ApplicationInsights {
245
249
  context?: {
246
250
  [key: string]: any;
247
251
  };
252
+ /**
253
+ * [Optional] A flag that indicates whether the client request was manually aborted by the `abort()`,
254
+ * as listeners are called just before the request is sent it is unlikely that an application would have
255
+ * called `abort` before `send` this is also available in the dependency initializer.
256
+ */
257
+ aborted?: boolean;
248
258
  }
249
259
 
250
260
  interface IDependencyListenerHandler extends IDependencyHandler {