@microsoft/1ds-post-js 4.0.4-nightly3.2310-09 → 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-09.gbl.js → ms.post-4.0.4-nightly3.2310-10.gbl.js} +25 -10
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.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-09.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-09.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-09.js → ms.post-4.0.4-nightly3.2310-10.js} +25 -10
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.js.map → ms.post-4.0.4-nightly3.2310-10.js.map} +1 -1
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.min.js → ms.post-4.0.4-nightly3.2310-10.min.js} +3 -3
- package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.min.js.map → ms.post-4.0.4-nightly3.2310-10.min.js.map} +1 -1
- package/bundle/es5/ms.post.gbl.js +24 -9
- 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 +24 -9
- 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 +22 -7
- 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 +21 -4
- 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-09.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 ])) {
|
|
@@ -4667,7 +4670,9 @@
|
|
|
4667
4670
|
var nav_1 = getNavigator();
|
|
4668
4671
|
if (!nav_1.sendBeacon(theUrl, payload[_DYN_DATA ])) {
|
|
4669
4672
|
if (thePayload) {
|
|
4673
|
+
var persistStorage = !!_core.getPlugin("LocalStorage");
|
|
4670
4674
|
var droppedBatches_1 = [];
|
|
4675
|
+
var sentBatches_1 = [];
|
|
4671
4676
|
arrForEach(thePayload[_DYN_BATCHES ], function (theBatch) {
|
|
4672
4677
|
if (droppedBatches_1 && theBatch && theBatch[_DYN_COUNT ]() > 0) {
|
|
4673
4678
|
var theEvents = theBatch[_DYN_EVENTS ]();
|
|
@@ -4676,13 +4681,21 @@
|
|
|
4676
4681
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](lp));
|
|
4677
4682
|
break;
|
|
4678
4683
|
}
|
|
4684
|
+
else {
|
|
4685
|
+
sentBatches_1[_DYN_PUSH ](theBatch[lp]);
|
|
4686
|
+
}
|
|
4679
4687
|
}
|
|
4680
4688
|
}
|
|
4681
4689
|
else {
|
|
4682
4690
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](0));
|
|
4683
4691
|
}
|
|
4684
4692
|
});
|
|
4685
|
-
|
|
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
|
+
}
|
|
4686
4699
|
}
|
|
4687
4700
|
else {
|
|
4688
4701
|
status = 0;
|
|
@@ -5096,13 +5109,15 @@
|
|
|
5096
5109
|
if (backOffTrans) {
|
|
5097
5110
|
_postManager[_DYN__BACK_OFF_TRANSMISSI11 ]();
|
|
5098
5111
|
}
|
|
5112
|
+
var theBatches = thePayload[_DYN_BATCHES ];
|
|
5099
5113
|
if (batchReason === 200 ) {
|
|
5114
|
+
theBatches = thePayload.sentEvts || thePayload[_DYN_BATCHES ];
|
|
5100
5115
|
if (!backOffTrans && !thePayload[_DYN_IS_SYNC ]) {
|
|
5101
5116
|
_postManager._clearBackOff();
|
|
5102
5117
|
}
|
|
5103
|
-
_addCompleteTimings(
|
|
5118
|
+
_addCompleteTimings(theBatches);
|
|
5104
5119
|
}
|
|
5105
|
-
_sendBatchesNotification(
|
|
5120
|
+
_sendBatchesNotification(theBatches, batchReason, thePayload[_DYN_SEND_TYPE ], true);
|
|
5106
5121
|
}
|
|
5107
5122
|
finally {
|
|
5108
5123
|
if (thePayload[_DYN_SEND_TYPE ] === 0 ) {
|
|
@@ -5272,7 +5287,7 @@
|
|
|
5272
5287
|
var _this = _super.call(this) || this;
|
|
5273
5288
|
_this.identifier = "PostChannel";
|
|
5274
5289
|
_this.priority = 1011;
|
|
5275
|
-
_this.version = '4.0.4-nightly3.2310-
|
|
5290
|
+
_this.version = '4.0.4-nightly3.2310-10';
|
|
5276
5291
|
var _postConfig;
|
|
5277
5292
|
var _isTeardownCalled = false;
|
|
5278
5293
|
var _flushCallbackQueue = [];
|