@microsoft/applicationinsights-channel-js 2.7.3-nightly.2112-08 → 2.7.3-nightly.2201-01
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 +42 -22
- 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.d.ts +1 -1
- package/dist/applicationinsights-channel-js.js +42 -22
- 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 -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 +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +50 -27
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +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 +3 -3
- package/src/EnvelopeCreator.ts +1 -1
- package/src/Sender.ts +51 -27
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-channel-js",
|
|
3
|
-
"version": "2.7.3-nightly.
|
|
3
|
+
"version": "2.7.3-nightly.2201-01",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-channel-js.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-zGkLL2fXDz4v1Ks8Q3XAiQvxq4KLBrq0C1YkMv5k51M= sha384-sh9jUq5lPuglwzYvgKMgJfF7twOfYR39zNbwYipiYwbCp5XNN0Kqvmsjjw+e2AzU sha512-eS4Uj43xdNtJHHbvwKADjyIcUmiNTiK0/TJCqyl/utGyH2i8+8x8Dhog6j9I9uGKnQhwJ1w3i1TjXM0GCi//Vw==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "zGkLL2fXDz4v1Ks8Q3XAiQvxq4KLBrq0C1YkMv5k51M=",
|
|
11
|
+
"sha384": "sh9jUq5lPuglwzYvgKMgJfF7twOfYR39zNbwYipiYwbCp5XNN0Kqvmsjjw+e2AzU",
|
|
12
|
+
"sha512": "eS4Uj43xdNtJHHbvwKADjyIcUmiNTiK0/TJCqyl/utGyH2i8+8x8Dhog6j9I9uGKnQhwJ1w3i1TjXM0GCi//Vw=="
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"@min.js": {
|
|
16
16
|
"file": "applicationinsights-channel-js.min.js",
|
|
17
17
|
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-
|
|
18
|
+
"integrity": "sha256-u7Z0Q1FH0P6B335FblLqig7frIeYaHQoiaTrWTpN7DY= sha384-MCi6rJfC036aZOTXNW/SzSU51H7EhXMTggZWdP609wgHeP3PyIswCRGeVGxY18Wg sha512-AIEWGGRWiDWTtUTpn5CFev4poDoy/VjImcZwYNHaA3NJTZaMIEAO4sEiM5WED2wIqYfxifPmdK8QLkmWOiBY2Q==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "u7Z0Q1FH0P6B335FblLqig7frIeYaHQoiaTrWTpN7DY=",
|
|
21
|
+
"sha384": "MCi6rJfC036aZOTXNW/SzSU51H7EhXMTggZWdP609wgHeP3PyIswCRGeVGxY18Wg",
|
|
22
|
+
"sha512": "AIEWGGRWiDWTtUTpn5CFev4poDoy/VjImcZwYNHaA3NJTZaMIEAO4sEiM5WED2wIqYfxifPmdK8QLkmWOiBY2Q=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 2.7.3-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 2.7.3-nightly.2201-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -2832,7 +2832,7 @@
|
|
|
2832
2832
|
}
|
|
2833
2833
|
}
|
|
2834
2834
|
var EnvelopeCreator = {
|
|
2835
|
-
Version: "2.7.3-nightly.
|
|
2835
|
+
Version: "2.7.3-nightly.2201-01"
|
|
2836
2836
|
};
|
|
2837
2837
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
2838
2838
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -3739,6 +3739,8 @@
|
|
|
3739
3739
|
var plainTextBatch = new Blob([batch], { type: "application/json" });
|
|
3740
3740
|
var requestHeaders = new Headers();
|
|
3741
3741
|
var batchLength = batch.length;
|
|
3742
|
+
var ignoreResponse = false;
|
|
3743
|
+
var responseHandled = false;
|
|
3742
3744
|
if (isInternalApplicationInsightsEndpoint(endPointUrl)) {
|
|
3743
3745
|
requestHeaders.append(RequestHeaders.sdkContextHeader, RequestHeaders.sdkContextHeaderAppIdRequest);
|
|
3744
3746
|
}
|
|
@@ -3755,6 +3757,7 @@
|
|
|
3755
3757
|
_a);
|
|
3756
3758
|
if (!isAsync) {
|
|
3757
3759
|
init.keepalive = true;
|
|
3760
|
+
ignoreResponse = true;
|
|
3758
3761
|
_syncFetchPayload += batchLength;
|
|
3759
3762
|
}
|
|
3760
3763
|
var request = new Request(endPointUrl, init);
|
|
@@ -3763,27 +3766,44 @@
|
|
|
3763
3766
|
}
|
|
3764
3767
|
catch (e) {
|
|
3765
3768
|
}
|
|
3766
|
-
fetch(request).then(function (response) {
|
|
3767
|
-
if (!isAsync) {
|
|
3768
|
-
_syncFetchPayload -= batchLength;
|
|
3769
|
-
batchLength = 0;
|
|
3770
|
-
}
|
|
3771
|
-
if (!response.ok) {
|
|
3772
|
-
_self._onError(payload, response.statusText);
|
|
3773
|
-
}
|
|
3774
|
-
else {
|
|
3775
|
-
response.text().then(function (text) {
|
|
3776
|
-
_checkResponsStatus(response.status, payload, response.url, payload.length, response.statusText, text);
|
|
3777
|
-
});
|
|
3778
|
-
}
|
|
3779
|
-
})["catch"](function (error) {
|
|
3780
|
-
if (!isAsync) {
|
|
3781
|
-
_syncFetchPayload -= batchLength;
|
|
3782
|
-
batchLength = 0;
|
|
3783
|
-
}
|
|
3784
|
-
_self._onError(payload, error.message);
|
|
3785
|
-
});
|
|
3786
3769
|
_self._buffer.markAsSent(payload);
|
|
3770
|
+
try {
|
|
3771
|
+
fetch(request).then(function (response) {
|
|
3772
|
+
if (!isAsync) {
|
|
3773
|
+
_syncFetchPayload -= batchLength;
|
|
3774
|
+
batchLength = 0;
|
|
3775
|
+
}
|
|
3776
|
+
if (!responseHandled) {
|
|
3777
|
+
responseHandled = true;
|
|
3778
|
+
if (!response.ok) {
|
|
3779
|
+
_self._onError(payload, response.statusText);
|
|
3780
|
+
}
|
|
3781
|
+
else {
|
|
3782
|
+
response.text().then(function (text) {
|
|
3783
|
+
_checkResponsStatus(response.status, payload, response.url, payload.length, response.statusText, text);
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
})["catch"](function (error) {
|
|
3788
|
+
if (!isAsync) {
|
|
3789
|
+
_syncFetchPayload -= batchLength;
|
|
3790
|
+
batchLength = 0;
|
|
3791
|
+
}
|
|
3792
|
+
if (!responseHandled) {
|
|
3793
|
+
responseHandled = true;
|
|
3794
|
+
_self._onError(payload, error.message);
|
|
3795
|
+
}
|
|
3796
|
+
});
|
|
3797
|
+
}
|
|
3798
|
+
catch (e) {
|
|
3799
|
+
if (!responseHandled) {
|
|
3800
|
+
_self._onError(payload, dumpObj(e));
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
if (ignoreResponse && !responseHandled) {
|
|
3804
|
+
responseHandled = true;
|
|
3805
|
+
_self._onSuccess(payload, payload.length);
|
|
3806
|
+
}
|
|
3787
3807
|
}
|
|
3788
3808
|
function _parseResponse(response) {
|
|
3789
3809
|
try {
|