@microsoft/1ds-post-js 4.0.4-nightly3.2310-08 → 4.0.4-nightly3.2310-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.
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.gbl.js → ms.post-4.0.4-nightly3.2310-10.gbl.js} +43 -21
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.gbl.js.map → ms.post-4.0.4-nightly3.2310-10.gbl.js.map} +1 -1
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.gbl.min.js → ms.post-4.0.4-nightly3.2310-10.gbl.min.js} +3 -3
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.gbl.min.js.map → ms.post-4.0.4-nightly3.2310-10.gbl.min.js.map} +1 -1
- package/bundle/es5/ms.post-4.0.4-nightly3.2310-10.integrity.json +46 -0
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.js → ms.post-4.0.4-nightly3.2310-10.js} +43 -21
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.js.map → ms.post-4.0.4-nightly3.2310-10.js.map} +1 -1
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.min.js → ms.post-4.0.4-nightly3.2310-10.min.js} +3 -3
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.min.js.map → ms.post-4.0.4-nightly3.2310-10.min.js.map} +1 -1
- package/bundle/es5/ms.post.gbl.js +42 -20
- package/bundle/es5/ms.post.gbl.js.map +1 -1
- package/bundle/es5/ms.post.gbl.min.js +2 -2
- package/bundle/es5/ms.post.gbl.min.js.map +1 -1
- package/bundle/es5/ms.post.integrity.json +17 -17
- package/bundle/es5/ms.post.js +42 -20
- package/bundle/es5/ms.post.js.map +1 -1
- package/bundle/es5/ms.post.min.js +2 -2
- package/bundle/es5/ms.post.min.js.map +1 -1
- package/dist/es5/ms.post.js +40 -18
- package/dist/es5/ms.post.js.map +1 -1
- package/dist/es5/ms.post.min.js +2 -2
- package/dist/es5/ms.post.min.js.map +1 -1
- package/dist-es5/BatchNotificationActions.js +1 -1
- package/dist-es5/ClockSkewManager.js +1 -1
- package/dist-es5/DataModels.js +1 -1
- package/dist-es5/EventBatch.js +1 -1
- package/dist-es5/HttpManager.js +41 -17
- package/dist-es5/HttpManager.js.map +1 -1
- package/dist-es5/Index.js +1 -1
- package/dist-es5/InternalConstants.js +1 -1
- package/dist-es5/KillSwitch.js +1 -1
- package/dist-es5/PostChannel.js +2 -2
- package/dist-es5/PostChannel.js.map +1 -1
- package/dist-es5/RetryPolicy.js +1 -1
- package/dist-es5/Serializer.js +1 -1
- package/dist-es5/TimeoutOverrideWrapper.js +1 -1
- package/dist-es5/__DynamicConstants.js +3 -3
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/typings/XDomainRequest.js +1 -1
- package/package.json +2 -2
- package/types/1ds-post-js.d.ts +1 -1
- package/types/1ds-post-js.namespaced.d.ts +1 -1
- package/bundle/es5/ms.post-4.0.4-nightly3.2310-08.integrity.json +0 -46
package/dist/es5/ms.post.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK POST plugin, 4.0.4-nightly3.2310-
|
|
2
|
+
* 1DS JS SDK POST plugin, 4.0.4-nightly3.2310-10
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -1664,7 +1664,7 @@
|
|
|
1664
1664
|
return result;
|
|
1665
1665
|
}
|
|
1666
1666
|
|
|
1667
|
-
var version = '3.0.5-nightly3.2310-
|
|
1667
|
+
var version = '3.0.5-nightly3.2310-10';
|
|
1668
1668
|
var instanceName = "." + newId(6);
|
|
1669
1669
|
var _dataUid = 0;
|
|
1670
1670
|
function _canAcceptData(target) {
|
|
@@ -3493,7 +3493,7 @@
|
|
|
3493
3493
|
var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
|
|
3494
3494
|
|
|
3495
3495
|
var _a$1;
|
|
3496
|
-
var Version = '4.0.4-nightly3.2310-
|
|
3496
|
+
var Version = '4.0.4-nightly3.2310-10';
|
|
3497
3497
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
3498
3498
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
3499
3499
|
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
@@ -4383,6 +4383,9 @@
|
|
|
4383
4383
|
_disableXhrSync = !!channelConfig[_DYN_DISABLE_XHR_SYNC ];
|
|
4384
4384
|
_disableFetchKeepAlive = !!channelConfig[_DYN_DISABLE_FETCH_KEEP_A6 ];
|
|
4385
4385
|
_addNoResponse = channelConfig.addNoResponse !== false;
|
|
4386
|
+
if (!!core.getPlugin("LocalStorage")) {
|
|
4387
|
+
_disableFetchKeepAlive = true;
|
|
4388
|
+
}
|
|
4386
4389
|
_useBeacons = !isReactNative();
|
|
4387
4390
|
_serializer = new Serializer(_core, valueSanitizer, stringifyObjects, enableCompoundKey);
|
|
4388
4391
|
if (!isNullOrUndefined(channelConfig[_DYN_USE_SEND_BEACON ])) {
|
|
@@ -4559,6 +4562,19 @@
|
|
|
4559
4562
|
if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH ] > 0) {
|
|
4560
4563
|
requestInit[_DYN_HEADERS ] = payload[_DYN_HEADERS ];
|
|
4561
4564
|
}
|
|
4565
|
+
var handleResponse = function (status, headerMap, responseText) {
|
|
4566
|
+
if (!responseHandled) {
|
|
4567
|
+
responseHandled = true;
|
|
4568
|
+
_doOnComplete(oncomplete, status, headerMap, responseText);
|
|
4569
|
+
_handleCollectorResponse(responseText);
|
|
4570
|
+
}
|
|
4571
|
+
};
|
|
4572
|
+
var handleError = function () {
|
|
4573
|
+
if (!responseHandled) {
|
|
4574
|
+
responseHandled = true;
|
|
4575
|
+
_doOnComplete(oncomplete, 0, {});
|
|
4576
|
+
}
|
|
4577
|
+
};
|
|
4562
4578
|
fetch(theUrl, requestInit).then(function (response) {
|
|
4563
4579
|
var headerMap = {};
|
|
4564
4580
|
var responseText = STR_EMPTY;
|
|
@@ -4571,19 +4587,13 @@
|
|
|
4571
4587
|
if (response.body) {
|
|
4572
4588
|
response.text().then(function (text) {
|
|
4573
4589
|
responseText = text;
|
|
4574
|
-
|
|
4590
|
+
handleResponse(response.status, headerMap, responseText);
|
|
4591
|
+
}, handleError);
|
|
4575
4592
|
}
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
_doOnComplete(oncomplete, response.status, headerMap, responseText);
|
|
4579
|
-
_handleCollectorResponse(responseText);
|
|
4580
|
-
}
|
|
4581
|
-
}).catch(function (error) {
|
|
4582
|
-
if (!responseHandled) {
|
|
4583
|
-
responseHandled = true;
|
|
4584
|
-
_doOnComplete(oncomplete, 0, {});
|
|
4593
|
+
else {
|
|
4594
|
+
handleResponse(response.status, headerMap, "");
|
|
4585
4595
|
}
|
|
4586
|
-
});
|
|
4596
|
+
}).catch(handleError);
|
|
4587
4597
|
if (ignoreResponse && !responseHandled) {
|
|
4588
4598
|
responseHandled = true;
|
|
4589
4599
|
_doOnComplete(oncomplete, 200, {});
|
|
@@ -4660,7 +4670,9 @@
|
|
|
4660
4670
|
var nav_1 = getNavigator();
|
|
4661
4671
|
if (!nav_1.sendBeacon(theUrl, payload[_DYN_DATA ])) {
|
|
4662
4672
|
if (thePayload) {
|
|
4673
|
+
var persistStorage = !!_core.getPlugin("LocalStorage");
|
|
4663
4674
|
var droppedBatches_1 = [];
|
|
4675
|
+
var sentBatches_1 = [];
|
|
4664
4676
|
arrForEach(thePayload[_DYN_BATCHES ], function (theBatch) {
|
|
4665
4677
|
if (droppedBatches_1 && theBatch && theBatch[_DYN_COUNT ]() > 0) {
|
|
4666
4678
|
var theEvents = theBatch[_DYN_EVENTS ]();
|
|
@@ -4669,13 +4681,21 @@
|
|
|
4669
4681
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](lp));
|
|
4670
4682
|
break;
|
|
4671
4683
|
}
|
|
4684
|
+
else {
|
|
4685
|
+
sentBatches_1[_DYN_PUSH ](theBatch[lp]);
|
|
4686
|
+
}
|
|
4672
4687
|
}
|
|
4673
4688
|
}
|
|
4674
4689
|
else {
|
|
4675
4690
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](0));
|
|
4676
4691
|
}
|
|
4677
4692
|
});
|
|
4678
|
-
|
|
4693
|
+
if (sentBatches_1[_DYN_LENGTH ] > 0) {
|
|
4694
|
+
thePayload.sentEvts = sentBatches_1;
|
|
4695
|
+
}
|
|
4696
|
+
if (!persistStorage) {
|
|
4697
|
+
_sendBatchesNotification(droppedBatches_1, 8003 , thePayload[_DYN_SEND_TYPE ], true);
|
|
4698
|
+
}
|
|
4679
4699
|
}
|
|
4680
4700
|
else {
|
|
4681
4701
|
status = 0;
|
|
@@ -5089,13 +5109,15 @@
|
|
|
5089
5109
|
if (backOffTrans) {
|
|
5090
5110
|
_postManager[_DYN__BACK_OFF_TRANSMISSI11 ]();
|
|
5091
5111
|
}
|
|
5112
|
+
var theBatches = thePayload[_DYN_BATCHES ];
|
|
5092
5113
|
if (batchReason === 200 ) {
|
|
5114
|
+
theBatches = thePayload.sentEvts || thePayload[_DYN_BATCHES ];
|
|
5093
5115
|
if (!backOffTrans && !thePayload[_DYN_IS_SYNC ]) {
|
|
5094
5116
|
_postManager._clearBackOff();
|
|
5095
5117
|
}
|
|
5096
|
-
_addCompleteTimings(
|
|
5118
|
+
_addCompleteTimings(theBatches);
|
|
5097
5119
|
}
|
|
5098
|
-
_sendBatchesNotification(
|
|
5120
|
+
_sendBatchesNotification(theBatches, batchReason, thePayload[_DYN_SEND_TYPE ], true);
|
|
5099
5121
|
}
|
|
5100
5122
|
finally {
|
|
5101
5123
|
if (thePayload[_DYN_SEND_TYPE ] === 0 ) {
|
|
@@ -5265,7 +5287,7 @@
|
|
|
5265
5287
|
var _this = _super.call(this) || this;
|
|
5266
5288
|
_this.identifier = "PostChannel";
|
|
5267
5289
|
_this.priority = 1011;
|
|
5268
|
-
_this.version = '4.0.4-nightly3.2310-
|
|
5290
|
+
_this.version = '4.0.4-nightly3.2310-10';
|
|
5269
5291
|
var _postConfig;
|
|
5270
5292
|
var _isTeardownCalled = false;
|
|
5271
5293
|
var _flushCallbackQueue = [];
|