@microsoft/applicationinsights-channel-js 2.8.0-nightly.2202-06 → 2.8.0-nightly.2204-06
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 +1666 -1012
- 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 +56 -58
- package/dist/applicationinsights-channel-js.api.md +0 -2
- package/dist/applicationinsights-channel-js.d.ts +1 -2
- package/dist/applicationinsights-channel-js.js +1666 -1012
- 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 +1 -2
- package/dist-esm/EnvelopeCreator.js +5 -5
- package/dist-esm/EnvelopeCreator.js.map +1 -1
- package/dist-esm/Interfaces.js +1 -1
- package/dist-esm/Offline.js +77 -65
- package/dist-esm/Offline.js.map +1 -1
- package/dist-esm/SendBuffer.js +7 -7
- package/dist-esm/SendBuffer.js.map +1 -1
- package/dist-esm/Sender.js +73 -63
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +10 -10
- package/dist-esm/Serializer.js.map +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 +4 -4
- package/src/EnvelopeCreator.ts +8 -8
- package/src/Offline.ts +88 -76
- package/src/SendBuffer.ts +14 -14
- package/src/Sender.ts +106 -113
- package/src/Serializer.ts +17 -21
- package/src/TelemetryProcessors/Sample.ts +1 -1
- package/src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.ts +3 -1
- package/types/Offline.d.ts +8 -11
- package/types/Sender.d.ts +0 -1
- 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.20.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",
|
|
@@ -316,21 +316,24 @@
|
|
|
316
316
|
"parameterTypeTokenRange": {
|
|
317
317
|
"startIndex": 1,
|
|
318
318
|
"endIndex": 2
|
|
319
|
-
}
|
|
319
|
+
},
|
|
320
|
+
"isOptional": false
|
|
320
321
|
},
|
|
321
322
|
{
|
|
322
323
|
"parameterName": "message",
|
|
323
324
|
"parameterTypeTokenRange": {
|
|
324
325
|
"startIndex": 3,
|
|
325
326
|
"endIndex": 4
|
|
326
|
-
}
|
|
327
|
+
},
|
|
328
|
+
"isOptional": false
|
|
327
329
|
},
|
|
328
330
|
{
|
|
329
331
|
"parameterName": "event",
|
|
330
332
|
"parameterTypeTokenRange": {
|
|
331
333
|
"startIndex": 5,
|
|
332
334
|
"endIndex": 6
|
|
333
|
-
}
|
|
335
|
+
},
|
|
336
|
+
"isOptional": true
|
|
334
337
|
}
|
|
335
338
|
],
|
|
336
339
|
"name": "_onError"
|
|
@@ -384,14 +387,16 @@
|
|
|
384
387
|
"parameterTypeTokenRange": {
|
|
385
388
|
"startIndex": 1,
|
|
386
389
|
"endIndex": 2
|
|
387
|
-
}
|
|
390
|
+
},
|
|
391
|
+
"isOptional": false
|
|
388
392
|
},
|
|
389
393
|
{
|
|
390
394
|
"parameterName": "results",
|
|
391
395
|
"parameterTypeTokenRange": {
|
|
392
396
|
"startIndex": 3,
|
|
393
397
|
"endIndex": 4
|
|
394
|
-
}
|
|
398
|
+
},
|
|
399
|
+
"isOptional": false
|
|
395
400
|
}
|
|
396
401
|
],
|
|
397
402
|
"name": "_onPartialSuccess"
|
|
@@ -444,14 +449,16 @@
|
|
|
444
449
|
"parameterTypeTokenRange": {
|
|
445
450
|
"startIndex": 1,
|
|
446
451
|
"endIndex": 2
|
|
447
|
-
}
|
|
452
|
+
},
|
|
453
|
+
"isOptional": false
|
|
448
454
|
},
|
|
449
455
|
{
|
|
450
456
|
"parameterName": "countOfItemsInPayload",
|
|
451
457
|
"parameterTypeTokenRange": {
|
|
452
458
|
"startIndex": 3,
|
|
453
459
|
"endIndex": 4
|
|
454
|
-
}
|
|
460
|
+
},
|
|
461
|
+
"isOptional": false
|
|
455
462
|
}
|
|
456
463
|
],
|
|
457
464
|
"name": "_onSuccess"
|
|
@@ -589,14 +596,16 @@
|
|
|
589
596
|
"parameterTypeTokenRange": {
|
|
590
597
|
"startIndex": 1,
|
|
591
598
|
"endIndex": 2
|
|
592
|
-
}
|
|
599
|
+
},
|
|
600
|
+
"isOptional": false
|
|
593
601
|
},
|
|
594
602
|
{
|
|
595
603
|
"parameterName": "payload",
|
|
596
604
|
"parameterTypeTokenRange": {
|
|
597
605
|
"startIndex": 3,
|
|
598
606
|
"endIndex": 4
|
|
599
|
-
}
|
|
607
|
+
},
|
|
608
|
+
"isOptional": false
|
|
600
609
|
}
|
|
601
610
|
],
|
|
602
611
|
"name": "_xdrOnLoad"
|
|
@@ -658,21 +667,24 @@
|
|
|
658
667
|
"parameterTypeTokenRange": {
|
|
659
668
|
"startIndex": 1,
|
|
660
669
|
"endIndex": 2
|
|
661
|
-
}
|
|
670
|
+
},
|
|
671
|
+
"isOptional": false
|
|
662
672
|
},
|
|
663
673
|
{
|
|
664
674
|
"parameterName": "payload",
|
|
665
675
|
"parameterTypeTokenRange": {
|
|
666
676
|
"startIndex": 3,
|
|
667
677
|
"endIndex": 4
|
|
668
|
-
}
|
|
678
|
+
},
|
|
679
|
+
"isOptional": false
|
|
669
680
|
},
|
|
670
681
|
{
|
|
671
682
|
"parameterName": "countOfItemsInPayload",
|
|
672
683
|
"parameterTypeTokenRange": {
|
|
673
684
|
"startIndex": 5,
|
|
674
685
|
"endIndex": 6
|
|
675
|
-
}
|
|
686
|
+
},
|
|
687
|
+
"isOptional": false
|
|
676
688
|
}
|
|
677
689
|
],
|
|
678
690
|
"name": "_xhrReadyStateChange"
|
|
@@ -739,14 +751,16 @@
|
|
|
739
751
|
"parameterTypeTokenRange": {
|
|
740
752
|
"startIndex": 1,
|
|
741
753
|
"endIndex": 2
|
|
742
|
-
}
|
|
754
|
+
},
|
|
755
|
+
"isOptional": false
|
|
743
756
|
},
|
|
744
757
|
{
|
|
745
758
|
"parameterName": "value",
|
|
746
759
|
"parameterTypeTokenRange": {
|
|
747
760
|
"startIndex": 3,
|
|
748
761
|
"endIndex": 4
|
|
749
|
-
}
|
|
762
|
+
},
|
|
763
|
+
"isOptional": false
|
|
750
764
|
}
|
|
751
765
|
],
|
|
752
766
|
"name": "addHeader"
|
|
@@ -818,28 +832,32 @@
|
|
|
818
832
|
"parameterTypeTokenRange": {
|
|
819
833
|
"startIndex": 1,
|
|
820
834
|
"endIndex": 2
|
|
821
|
-
}
|
|
835
|
+
},
|
|
836
|
+
"isOptional": false
|
|
822
837
|
},
|
|
823
838
|
{
|
|
824
839
|
"parameterName": "iKey",
|
|
825
840
|
"parameterTypeTokenRange": {
|
|
826
841
|
"startIndex": 3,
|
|
827
842
|
"endIndex": 4
|
|
828
|
-
}
|
|
843
|
+
},
|
|
844
|
+
"isOptional": false
|
|
829
845
|
},
|
|
830
846
|
{
|
|
831
847
|
"parameterName": "logger",
|
|
832
848
|
"parameterTypeTokenRange": {
|
|
833
849
|
"startIndex": 5,
|
|
834
850
|
"endIndex": 6
|
|
835
|
-
}
|
|
851
|
+
},
|
|
852
|
+
"isOptional": false
|
|
836
853
|
},
|
|
837
854
|
{
|
|
838
855
|
"parameterName": "convertUndefined",
|
|
839
856
|
"parameterTypeTokenRange": {
|
|
840
857
|
"startIndex": 7,
|
|
841
858
|
"endIndex": 8
|
|
842
|
-
}
|
|
859
|
+
},
|
|
860
|
+
"isOptional": true
|
|
843
861
|
}
|
|
844
862
|
],
|
|
845
863
|
"name": "constructEnvelope"
|
|
@@ -981,28 +999,32 @@
|
|
|
981
999
|
"parameterTypeTokenRange": {
|
|
982
1000
|
"startIndex": 1,
|
|
983
1001
|
"endIndex": 4
|
|
984
|
-
}
|
|
1002
|
+
},
|
|
1003
|
+
"isOptional": false
|
|
985
1004
|
},
|
|
986
1005
|
{
|
|
987
1006
|
"parameterName": "core",
|
|
988
1007
|
"parameterTypeTokenRange": {
|
|
989
1008
|
"startIndex": 5,
|
|
990
1009
|
"endIndex": 6
|
|
991
|
-
}
|
|
1010
|
+
},
|
|
1011
|
+
"isOptional": false
|
|
992
1012
|
},
|
|
993
1013
|
{
|
|
994
1014
|
"parameterName": "extensions",
|
|
995
1015
|
"parameterTypeTokenRange": {
|
|
996
1016
|
"startIndex": 7,
|
|
997
1017
|
"endIndex": 9
|
|
998
|
-
}
|
|
1018
|
+
},
|
|
1019
|
+
"isOptional": false
|
|
999
1020
|
},
|
|
1000
1021
|
{
|
|
1001
1022
|
"parameterName": "pluginChain",
|
|
1002
1023
|
"parameterTypeTokenRange": {
|
|
1003
1024
|
"startIndex": 10,
|
|
1004
1025
|
"endIndex": 11
|
|
1005
|
-
}
|
|
1026
|
+
},
|
|
1027
|
+
"isOptional": true
|
|
1006
1028
|
}
|
|
1007
1029
|
],
|
|
1008
1030
|
"name": "initialize"
|
|
@@ -1142,14 +1164,16 @@
|
|
|
1142
1164
|
"parameterTypeTokenRange": {
|
|
1143
1165
|
"startIndex": 1,
|
|
1144
1166
|
"endIndex": 2
|
|
1145
|
-
}
|
|
1167
|
+
},
|
|
1168
|
+
"isOptional": false
|
|
1146
1169
|
},
|
|
1147
1170
|
{
|
|
1148
1171
|
"parameterName": "itemCtx",
|
|
1149
1172
|
"parameterTypeTokenRange": {
|
|
1150
1173
|
"startIndex": 3,
|
|
1151
1174
|
"endIndex": 4
|
|
1152
|
-
}
|
|
1175
|
+
},
|
|
1176
|
+
"isOptional": true
|
|
1153
1177
|
}
|
|
1154
1178
|
],
|
|
1155
1179
|
"name": "processTelemetry"
|
|
@@ -1183,35 +1207,6 @@
|
|
|
1183
1207
|
"parameters": [],
|
|
1184
1208
|
"name": "resume"
|
|
1185
1209
|
},
|
|
1186
|
-
{
|
|
1187
|
-
"kind": "Method",
|
|
1188
|
-
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#teardown:member(1)",
|
|
1189
|
-
"docComment": "",
|
|
1190
|
-
"excerptTokens": [
|
|
1191
|
-
{
|
|
1192
|
-
"kind": "Content",
|
|
1193
|
-
"text": "teardown(): "
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"kind": "Content",
|
|
1197
|
-
"text": "void"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"kind": "Content",
|
|
1201
|
-
"text": ";"
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
"isOptional": false,
|
|
1205
|
-
"isStatic": false,
|
|
1206
|
-
"returnTypeTokenRange": {
|
|
1207
|
-
"startIndex": 1,
|
|
1208
|
-
"endIndex": 2
|
|
1209
|
-
},
|
|
1210
|
-
"releaseTag": "Public",
|
|
1211
|
-
"overloadIndex": 1,
|
|
1212
|
-
"parameters": [],
|
|
1213
|
-
"name": "teardown"
|
|
1214
|
-
},
|
|
1215
1210
|
{
|
|
1216
1211
|
"kind": "Method",
|
|
1217
1212
|
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#triggerSend:member(1)",
|
|
@@ -1270,21 +1265,24 @@
|
|
|
1270
1265
|
"parameterTypeTokenRange": {
|
|
1271
1266
|
"startIndex": 1,
|
|
1272
1267
|
"endIndex": 2
|
|
1273
|
-
}
|
|
1268
|
+
},
|
|
1269
|
+
"isOptional": true
|
|
1274
1270
|
},
|
|
1275
1271
|
{
|
|
1276
1272
|
"parameterName": "forcedSender",
|
|
1277
1273
|
"parameterTypeTokenRange": {
|
|
1278
1274
|
"startIndex": 3,
|
|
1279
1275
|
"endIndex": 4
|
|
1280
|
-
}
|
|
1276
|
+
},
|
|
1277
|
+
"isOptional": true
|
|
1281
1278
|
},
|
|
1282
1279
|
{
|
|
1283
1280
|
"parameterName": "sendReason",
|
|
1284
1281
|
"parameterTypeTokenRange": {
|
|
1285
1282
|
"startIndex": 5,
|
|
1286
1283
|
"endIndex": 6
|
|
1287
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
"isOptional": true
|
|
1288
1286
|
}
|
|
1289
1287
|
],
|
|
1290
1288
|
"name": "triggerSend"
|
|
@@ -49,8 +49,6 @@ 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;
|
|
54
52
|
triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
|
|
55
53
|
// Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
|
|
56
54
|
_xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Channel, 2.8.0-nightly.
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Channel, 2.8.0-nightly.2204-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -194,7 +194,6 @@ declare namespace ApplicationInsights {
|
|
|
194
194
|
* Will not flush if the Send has been paused.
|
|
195
195
|
*/
|
|
196
196
|
onunloadFlush(): void;
|
|
197
|
-
teardown(): void;
|
|
198
197
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
199
198
|
processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
200
199
|
/**
|