@microsoft/applicationinsights-channel-js 2.7.5-nightly.2204-03 → 2.7.6
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-channel-js.integrity.json +9 -9
- package/browser/applicationinsights-channel-js.js +446 -1218
- package/browser/applicationinsights-channel-js.js.map +1 -1
- package/browser/applicationinsights-channel-js.min.js +2 -2
- package/browser/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.api.json +89 -32
- package/dist/applicationinsights-channel-js.api.md +2 -0
- package/dist/applicationinsights-channel-js.d.ts +2 -1
- package/dist/applicationinsights-channel-js.js +446 -1218
- package/dist/applicationinsights-channel-js.js.map +1 -1
- package/dist/applicationinsights-channel-js.min.js +2 -2
- package/dist/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.rollup.d.ts +2 -1
- package/dist-esm/EnvelopeCreator.js +2 -2
- package/dist-esm/EnvelopeCreator.js.map +1 -1
- package/dist-esm/Interfaces.js +1 -1
- package/dist-esm/Offline.js +65 -77
- package/dist-esm/Offline.js.map +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +62 -72
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +3 -3
- package/dist-esm/TelemetryProcessors/Sample.js.map +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-esm/applicationinsights-channel-js.js +1 -1
- package/package.json +54 -57
- package/src/EnvelopeCreator.ts +2 -2
- package/src/Offline.ts +76 -88
- package/src/Sender.ts +90 -83
- package/src/Serializer.ts +8 -4
- package/src/TelemetryProcessors/Sample.ts +1 -1
- package/src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.ts +1 -3
- package/types/Offline.d.ts +11 -8
- package/types/Sender.d.ts +1 -0
- package/types/TelemetryProcessors/Sample.d.ts +2 -2
- 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.
|
|
5
|
-
"schemaVersion":
|
|
4
|
+
"toolVersion": "7.23.0",
|
|
5
|
+
"schemaVersion": 1005,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
8
8
|
"$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
|
|
@@ -156,7 +156,8 @@
|
|
|
156
156
|
"@betaDocumentation": true,
|
|
157
157
|
"@internalRemarks": true,
|
|
158
158
|
"@preapproved": true
|
|
159
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"reportUnsupportedHtmlElements": false
|
|
160
161
|
}
|
|
161
162
|
},
|
|
162
163
|
"kind": "Package",
|
|
@@ -316,21 +317,24 @@
|
|
|
316
317
|
"parameterTypeTokenRange": {
|
|
317
318
|
"startIndex": 1,
|
|
318
319
|
"endIndex": 2
|
|
319
|
-
}
|
|
320
|
+
},
|
|
321
|
+
"isOptional": false
|
|
320
322
|
},
|
|
321
323
|
{
|
|
322
324
|
"parameterName": "message",
|
|
323
325
|
"parameterTypeTokenRange": {
|
|
324
326
|
"startIndex": 3,
|
|
325
327
|
"endIndex": 4
|
|
326
|
-
}
|
|
328
|
+
},
|
|
329
|
+
"isOptional": false
|
|
327
330
|
},
|
|
328
331
|
{
|
|
329
332
|
"parameterName": "event",
|
|
330
333
|
"parameterTypeTokenRange": {
|
|
331
334
|
"startIndex": 5,
|
|
332
335
|
"endIndex": 6
|
|
333
|
-
}
|
|
336
|
+
},
|
|
337
|
+
"isOptional": true
|
|
334
338
|
}
|
|
335
339
|
],
|
|
336
340
|
"name": "_onError"
|
|
@@ -384,14 +388,16 @@
|
|
|
384
388
|
"parameterTypeTokenRange": {
|
|
385
389
|
"startIndex": 1,
|
|
386
390
|
"endIndex": 2
|
|
387
|
-
}
|
|
391
|
+
},
|
|
392
|
+
"isOptional": false
|
|
388
393
|
},
|
|
389
394
|
{
|
|
390
395
|
"parameterName": "results",
|
|
391
396
|
"parameterTypeTokenRange": {
|
|
392
397
|
"startIndex": 3,
|
|
393
398
|
"endIndex": 4
|
|
394
|
-
}
|
|
399
|
+
},
|
|
400
|
+
"isOptional": false
|
|
395
401
|
}
|
|
396
402
|
],
|
|
397
403
|
"name": "_onPartialSuccess"
|
|
@@ -444,14 +450,16 @@
|
|
|
444
450
|
"parameterTypeTokenRange": {
|
|
445
451
|
"startIndex": 1,
|
|
446
452
|
"endIndex": 2
|
|
447
|
-
}
|
|
453
|
+
},
|
|
454
|
+
"isOptional": false
|
|
448
455
|
},
|
|
449
456
|
{
|
|
450
457
|
"parameterName": "countOfItemsInPayload",
|
|
451
458
|
"parameterTypeTokenRange": {
|
|
452
459
|
"startIndex": 3,
|
|
453
460
|
"endIndex": 4
|
|
454
|
-
}
|
|
461
|
+
},
|
|
462
|
+
"isOptional": false
|
|
455
463
|
}
|
|
456
464
|
],
|
|
457
465
|
"name": "_onSuccess"
|
|
@@ -589,14 +597,16 @@
|
|
|
589
597
|
"parameterTypeTokenRange": {
|
|
590
598
|
"startIndex": 1,
|
|
591
599
|
"endIndex": 2
|
|
592
|
-
}
|
|
600
|
+
},
|
|
601
|
+
"isOptional": false
|
|
593
602
|
},
|
|
594
603
|
{
|
|
595
604
|
"parameterName": "payload",
|
|
596
605
|
"parameterTypeTokenRange": {
|
|
597
606
|
"startIndex": 3,
|
|
598
607
|
"endIndex": 4
|
|
599
|
-
}
|
|
608
|
+
},
|
|
609
|
+
"isOptional": false
|
|
600
610
|
}
|
|
601
611
|
],
|
|
602
612
|
"name": "_xdrOnLoad"
|
|
@@ -658,21 +668,24 @@
|
|
|
658
668
|
"parameterTypeTokenRange": {
|
|
659
669
|
"startIndex": 1,
|
|
660
670
|
"endIndex": 2
|
|
661
|
-
}
|
|
671
|
+
},
|
|
672
|
+
"isOptional": false
|
|
662
673
|
},
|
|
663
674
|
{
|
|
664
675
|
"parameterName": "payload",
|
|
665
676
|
"parameterTypeTokenRange": {
|
|
666
677
|
"startIndex": 3,
|
|
667
678
|
"endIndex": 4
|
|
668
|
-
}
|
|
679
|
+
},
|
|
680
|
+
"isOptional": false
|
|
669
681
|
},
|
|
670
682
|
{
|
|
671
683
|
"parameterName": "countOfItemsInPayload",
|
|
672
684
|
"parameterTypeTokenRange": {
|
|
673
685
|
"startIndex": 5,
|
|
674
686
|
"endIndex": 6
|
|
675
|
-
}
|
|
687
|
+
},
|
|
688
|
+
"isOptional": false
|
|
676
689
|
}
|
|
677
690
|
],
|
|
678
691
|
"name": "_xhrReadyStateChange"
|
|
@@ -739,14 +752,16 @@
|
|
|
739
752
|
"parameterTypeTokenRange": {
|
|
740
753
|
"startIndex": 1,
|
|
741
754
|
"endIndex": 2
|
|
742
|
-
}
|
|
755
|
+
},
|
|
756
|
+
"isOptional": false
|
|
743
757
|
},
|
|
744
758
|
{
|
|
745
759
|
"parameterName": "value",
|
|
746
760
|
"parameterTypeTokenRange": {
|
|
747
761
|
"startIndex": 3,
|
|
748
762
|
"endIndex": 4
|
|
749
|
-
}
|
|
763
|
+
},
|
|
764
|
+
"isOptional": false
|
|
750
765
|
}
|
|
751
766
|
],
|
|
752
767
|
"name": "addHeader"
|
|
@@ -818,28 +833,32 @@
|
|
|
818
833
|
"parameterTypeTokenRange": {
|
|
819
834
|
"startIndex": 1,
|
|
820
835
|
"endIndex": 2
|
|
821
|
-
}
|
|
836
|
+
},
|
|
837
|
+
"isOptional": false
|
|
822
838
|
},
|
|
823
839
|
{
|
|
824
840
|
"parameterName": "iKey",
|
|
825
841
|
"parameterTypeTokenRange": {
|
|
826
842
|
"startIndex": 3,
|
|
827
843
|
"endIndex": 4
|
|
828
|
-
}
|
|
844
|
+
},
|
|
845
|
+
"isOptional": false
|
|
829
846
|
},
|
|
830
847
|
{
|
|
831
848
|
"parameterName": "logger",
|
|
832
849
|
"parameterTypeTokenRange": {
|
|
833
850
|
"startIndex": 5,
|
|
834
851
|
"endIndex": 6
|
|
835
|
-
}
|
|
852
|
+
},
|
|
853
|
+
"isOptional": false
|
|
836
854
|
},
|
|
837
855
|
{
|
|
838
856
|
"parameterName": "convertUndefined",
|
|
839
857
|
"parameterTypeTokenRange": {
|
|
840
858
|
"startIndex": 7,
|
|
841
859
|
"endIndex": 8
|
|
842
|
-
}
|
|
860
|
+
},
|
|
861
|
+
"isOptional": true
|
|
843
862
|
}
|
|
844
863
|
],
|
|
845
864
|
"name": "constructEnvelope"
|
|
@@ -981,28 +1000,32 @@
|
|
|
981
1000
|
"parameterTypeTokenRange": {
|
|
982
1001
|
"startIndex": 1,
|
|
983
1002
|
"endIndex": 4
|
|
984
|
-
}
|
|
1003
|
+
},
|
|
1004
|
+
"isOptional": false
|
|
985
1005
|
},
|
|
986
1006
|
{
|
|
987
1007
|
"parameterName": "core",
|
|
988
1008
|
"parameterTypeTokenRange": {
|
|
989
1009
|
"startIndex": 5,
|
|
990
1010
|
"endIndex": 6
|
|
991
|
-
}
|
|
1011
|
+
},
|
|
1012
|
+
"isOptional": false
|
|
992
1013
|
},
|
|
993
1014
|
{
|
|
994
1015
|
"parameterName": "extensions",
|
|
995
1016
|
"parameterTypeTokenRange": {
|
|
996
1017
|
"startIndex": 7,
|
|
997
1018
|
"endIndex": 9
|
|
998
|
-
}
|
|
1019
|
+
},
|
|
1020
|
+
"isOptional": false
|
|
999
1021
|
},
|
|
1000
1022
|
{
|
|
1001
1023
|
"parameterName": "pluginChain",
|
|
1002
1024
|
"parameterTypeTokenRange": {
|
|
1003
1025
|
"startIndex": 10,
|
|
1004
1026
|
"endIndex": 11
|
|
1005
|
-
}
|
|
1027
|
+
},
|
|
1028
|
+
"isOptional": true
|
|
1006
1029
|
}
|
|
1007
1030
|
],
|
|
1008
1031
|
"name": "initialize"
|
|
@@ -1142,14 +1165,16 @@
|
|
|
1142
1165
|
"parameterTypeTokenRange": {
|
|
1143
1166
|
"startIndex": 1,
|
|
1144
1167
|
"endIndex": 2
|
|
1145
|
-
}
|
|
1168
|
+
},
|
|
1169
|
+
"isOptional": false
|
|
1146
1170
|
},
|
|
1147
1171
|
{
|
|
1148
1172
|
"parameterName": "itemCtx",
|
|
1149
1173
|
"parameterTypeTokenRange": {
|
|
1150
1174
|
"startIndex": 3,
|
|
1151
1175
|
"endIndex": 4
|
|
1152
|
-
}
|
|
1176
|
+
},
|
|
1177
|
+
"isOptional": true
|
|
1153
1178
|
}
|
|
1154
1179
|
],
|
|
1155
1180
|
"name": "processTelemetry"
|
|
@@ -1183,6 +1208,35 @@
|
|
|
1183
1208
|
"parameters": [],
|
|
1184
1209
|
"name": "resume"
|
|
1185
1210
|
},
|
|
1211
|
+
{
|
|
1212
|
+
"kind": "Method",
|
|
1213
|
+
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#teardown:member(1)",
|
|
1214
|
+
"docComment": "",
|
|
1215
|
+
"excerptTokens": [
|
|
1216
|
+
{
|
|
1217
|
+
"kind": "Content",
|
|
1218
|
+
"text": "teardown(): "
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "Content",
|
|
1222
|
+
"text": "void"
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"kind": "Content",
|
|
1226
|
+
"text": ";"
|
|
1227
|
+
}
|
|
1228
|
+
],
|
|
1229
|
+
"isOptional": false,
|
|
1230
|
+
"isStatic": false,
|
|
1231
|
+
"returnTypeTokenRange": {
|
|
1232
|
+
"startIndex": 1,
|
|
1233
|
+
"endIndex": 2
|
|
1234
|
+
},
|
|
1235
|
+
"releaseTag": "Public",
|
|
1236
|
+
"overloadIndex": 1,
|
|
1237
|
+
"parameters": [],
|
|
1238
|
+
"name": "teardown"
|
|
1239
|
+
},
|
|
1186
1240
|
{
|
|
1187
1241
|
"kind": "Method",
|
|
1188
1242
|
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#triggerSend:member(1)",
|
|
@@ -1241,21 +1295,24 @@
|
|
|
1241
1295
|
"parameterTypeTokenRange": {
|
|
1242
1296
|
"startIndex": 1,
|
|
1243
1297
|
"endIndex": 2
|
|
1244
|
-
}
|
|
1298
|
+
},
|
|
1299
|
+
"isOptional": true
|
|
1245
1300
|
},
|
|
1246
1301
|
{
|
|
1247
1302
|
"parameterName": "forcedSender",
|
|
1248
1303
|
"parameterTypeTokenRange": {
|
|
1249
1304
|
"startIndex": 3,
|
|
1250
1305
|
"endIndex": 4
|
|
1251
|
-
}
|
|
1306
|
+
},
|
|
1307
|
+
"isOptional": true
|
|
1252
1308
|
},
|
|
1253
1309
|
{
|
|
1254
1310
|
"parameterName": "sendReason",
|
|
1255
1311
|
"parameterTypeTokenRange": {
|
|
1256
1312
|
"startIndex": 5,
|
|
1257
1313
|
"endIndex": 6
|
|
1258
|
-
}
|
|
1314
|
+
},
|
|
1315
|
+
"isOptional": true
|
|
1259
1316
|
}
|
|
1260
1317
|
],
|
|
1261
1318
|
"name": "triggerSend"
|
|
@@ -1263,12 +1320,12 @@
|
|
|
1263
1320
|
],
|
|
1264
1321
|
"extendsTokenRange": {
|
|
1265
1322
|
"startIndex": 1,
|
|
1266
|
-
"endIndex":
|
|
1323
|
+
"endIndex": 2
|
|
1267
1324
|
},
|
|
1268
1325
|
"implementsTokenRanges": [
|
|
1269
1326
|
{
|
|
1270
1327
|
"startIndex": 4,
|
|
1271
|
-
"endIndex":
|
|
1328
|
+
"endIndex": 5
|
|
1272
1329
|
}
|
|
1273
1330
|
]
|
|
1274
1331
|
}
|
|
@@ -49,6 +49,8 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
|
|
|
49
49
|
_sender: SenderFunction;
|
|
50
50
|
// Warning: (ae-forgotten-export) The symbol "ISenderConfig" needs to be exported by the entry point applicationinsights-channel-js.d.ts
|
|
51
51
|
readonly _senderConfig: ISenderConfig;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
teardown(): void;
|
|
52
54
|
triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
|
|
53
55
|
// Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
|
|
54
56
|
_xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Channel, 2.7.
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Channel, 2.7.6
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -194,6 +194,7 @@ declare namespace ApplicationInsights {
|
|
|
194
194
|
* Will not flush if the Send has been paused.
|
|
195
195
|
*/
|
|
196
196
|
onunloadFlush(): void;
|
|
197
|
+
teardown(): void;
|
|
197
198
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
198
199
|
processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
199
200
|
/**
|