@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/bundle/es5/{ms.post-4.0.4-nightly3.2310-08.gbl.js → ms.post-4.0.4-nightly3.2310-10.gbl.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
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
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
var undef = "undefined";
|
|
8
|
-
var nsKey, key, nm, theExports = {}, modName = "
|
|
9
|
-
var mods={}, modDetail=mods[modName]={}, ver="4.0.4-nightly3.2310-
|
|
8
|
+
var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_4_nightly3_2310_10", msMod="__ms$mod__";
|
|
9
|
+
var mods={}, modDetail=mods[modName]={}, ver="4.0.4-nightly3.2310-10";
|
|
10
10
|
// Versioned namespace "oneDS4"
|
|
11
11
|
var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
|
|
12
12
|
// Global namespace "oneDS"
|
|
@@ -1681,7 +1681,7 @@ function newId(maxLength) {
|
|
|
1681
1681
|
return result;
|
|
1682
1682
|
}
|
|
1683
1683
|
|
|
1684
|
-
var version = '3.0.5-nightly3.2310-
|
|
1684
|
+
var version = '3.0.5-nightly3.2310-10';
|
|
1685
1685
|
var instanceName = "." + newId(6);
|
|
1686
1686
|
var _dataUid = 0;
|
|
1687
1687
|
function _canAcceptData(target) {
|
|
@@ -3510,7 +3510,7 @@ var _DYN_LENGTH$1 = "length";
|
|
|
3510
3510
|
var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
|
|
3511
3511
|
|
|
3512
3512
|
var _a$1;
|
|
3513
|
-
var Version = '4.0.4-nightly3.2310-
|
|
3513
|
+
var Version = '4.0.4-nightly3.2310-10';
|
|
3514
3514
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
3515
3515
|
var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
|
|
3516
3516
|
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
@@ -4400,6 +4400,9 @@ var HttpManager = /** @class */ (function () {
|
|
|
4400
4400
|
_disableXhrSync = !!channelConfig[_DYN_DISABLE_XHR_SYNC ];
|
|
4401
4401
|
_disableFetchKeepAlive = !!channelConfig[_DYN_DISABLE_FETCH_KEEP_A6 ];
|
|
4402
4402
|
_addNoResponse = channelConfig.addNoResponse !== false;
|
|
4403
|
+
if (!!core.getPlugin("LocalStorage")) {
|
|
4404
|
+
_disableFetchKeepAlive = true;
|
|
4405
|
+
}
|
|
4403
4406
|
_useBeacons = !isReactNative();
|
|
4404
4407
|
_serializer = new Serializer(_core, valueSanitizer, stringifyObjects, enableCompoundKey);
|
|
4405
4408
|
if (!isNullOrUndefined(channelConfig[_DYN_USE_SEND_BEACON ])) {
|
|
@@ -4576,6 +4579,19 @@ var HttpManager = /** @class */ (function () {
|
|
|
4576
4579
|
if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH ] > 0) {
|
|
4577
4580
|
requestInit[_DYN_HEADERS ] = payload[_DYN_HEADERS ];
|
|
4578
4581
|
}
|
|
4582
|
+
var handleResponse = function (status, headerMap, responseText) {
|
|
4583
|
+
if (!responseHandled) {
|
|
4584
|
+
responseHandled = true;
|
|
4585
|
+
_doOnComplete(oncomplete, status, headerMap, responseText);
|
|
4586
|
+
_handleCollectorResponse(responseText);
|
|
4587
|
+
}
|
|
4588
|
+
};
|
|
4589
|
+
var handleError = function () {
|
|
4590
|
+
if (!responseHandled) {
|
|
4591
|
+
responseHandled = true;
|
|
4592
|
+
_doOnComplete(oncomplete, 0, {});
|
|
4593
|
+
}
|
|
4594
|
+
};
|
|
4579
4595
|
fetch(theUrl, requestInit).then(function (response) {
|
|
4580
4596
|
var headerMap = {};
|
|
4581
4597
|
var responseText = STR_EMPTY;
|
|
@@ -4588,19 +4604,13 @@ var HttpManager = /** @class */ (function () {
|
|
|
4588
4604
|
if (response.body) {
|
|
4589
4605
|
response.text().then(function (text) {
|
|
4590
4606
|
responseText = text;
|
|
4591
|
-
|
|
4607
|
+
handleResponse(response.status, headerMap, responseText);
|
|
4608
|
+
}, handleError);
|
|
4592
4609
|
}
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
_doOnComplete(oncomplete, response.status, headerMap, responseText);
|
|
4596
|
-
_handleCollectorResponse(responseText);
|
|
4597
|
-
}
|
|
4598
|
-
}).catch(function (error) {
|
|
4599
|
-
if (!responseHandled) {
|
|
4600
|
-
responseHandled = true;
|
|
4601
|
-
_doOnComplete(oncomplete, 0, {});
|
|
4610
|
+
else {
|
|
4611
|
+
handleResponse(response.status, headerMap, "");
|
|
4602
4612
|
}
|
|
4603
|
-
});
|
|
4613
|
+
}).catch(handleError);
|
|
4604
4614
|
if (ignoreResponse && !responseHandled) {
|
|
4605
4615
|
responseHandled = true;
|
|
4606
4616
|
_doOnComplete(oncomplete, 200, {});
|
|
@@ -4677,7 +4687,9 @@ var HttpManager = /** @class */ (function () {
|
|
|
4677
4687
|
var nav_1 = getNavigator();
|
|
4678
4688
|
if (!nav_1.sendBeacon(theUrl, payload[_DYN_DATA ])) {
|
|
4679
4689
|
if (thePayload) {
|
|
4690
|
+
var persistStorage = !!_core.getPlugin("LocalStorage");
|
|
4680
4691
|
var droppedBatches_1 = [];
|
|
4692
|
+
var sentBatches_1 = [];
|
|
4681
4693
|
arrForEach(thePayload[_DYN_BATCHES ], function (theBatch) {
|
|
4682
4694
|
if (droppedBatches_1 && theBatch && theBatch[_DYN_COUNT ]() > 0) {
|
|
4683
4695
|
var theEvents = theBatch[_DYN_EVENTS ]();
|
|
@@ -4686,13 +4698,21 @@ var HttpManager = /** @class */ (function () {
|
|
|
4686
4698
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](lp));
|
|
4687
4699
|
break;
|
|
4688
4700
|
}
|
|
4701
|
+
else {
|
|
4702
|
+
sentBatches_1[_DYN_PUSH ](theBatch[lp]);
|
|
4703
|
+
}
|
|
4689
4704
|
}
|
|
4690
4705
|
}
|
|
4691
4706
|
else {
|
|
4692
4707
|
droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](0));
|
|
4693
4708
|
}
|
|
4694
4709
|
});
|
|
4695
|
-
|
|
4710
|
+
if (sentBatches_1[_DYN_LENGTH ] > 0) {
|
|
4711
|
+
thePayload.sentEvts = sentBatches_1;
|
|
4712
|
+
}
|
|
4713
|
+
if (!persistStorage) {
|
|
4714
|
+
_sendBatchesNotification(droppedBatches_1, 8003 , thePayload[_DYN_SEND_TYPE ], true);
|
|
4715
|
+
}
|
|
4696
4716
|
}
|
|
4697
4717
|
else {
|
|
4698
4718
|
status = 0;
|
|
@@ -5106,13 +5126,15 @@ var HttpManager = /** @class */ (function () {
|
|
|
5106
5126
|
if (backOffTrans) {
|
|
5107
5127
|
_postManager[_DYN__BACK_OFF_TRANSMISSI11 ]();
|
|
5108
5128
|
}
|
|
5129
|
+
var theBatches = thePayload[_DYN_BATCHES ];
|
|
5109
5130
|
if (batchReason === 200 ) {
|
|
5131
|
+
theBatches = thePayload.sentEvts || thePayload[_DYN_BATCHES ];
|
|
5110
5132
|
if (!backOffTrans && !thePayload[_DYN_IS_SYNC ]) {
|
|
5111
5133
|
_postManager._clearBackOff();
|
|
5112
5134
|
}
|
|
5113
|
-
_addCompleteTimings(
|
|
5135
|
+
_addCompleteTimings(theBatches);
|
|
5114
5136
|
}
|
|
5115
|
-
_sendBatchesNotification(
|
|
5137
|
+
_sendBatchesNotification(theBatches, batchReason, thePayload[_DYN_SEND_TYPE ], true);
|
|
5116
5138
|
}
|
|
5117
5139
|
finally {
|
|
5118
5140
|
if (thePayload[_DYN_SEND_TYPE ] === 0 ) {
|
|
@@ -5282,7 +5304,7 @@ var PostChannel = /** @class */ (function (_super) {
|
|
|
5282
5304
|
var _this = _super.call(this) || this;
|
|
5283
5305
|
_this.identifier = "PostChannel";
|
|
5284
5306
|
_this.priority = 1011;
|
|
5285
|
-
_this.version = '4.0.4-nightly3.2310-
|
|
5307
|
+
_this.version = '4.0.4-nightly3.2310-10';
|
|
5286
5308
|
var _postConfig;
|
|
5287
5309
|
var _isTeardownCalled = false;
|
|
5288
5310
|
var _flushCallbackQueue = [];
|
|
@@ -5999,4 +6021,4 @@ exports.PostChannel = PostChannel;
|
|
|
5999
6021
|
exports.RT_PROFILE = RT_PROFILE;
|
|
6000
6022
|
|
|
6001
6023
|
}));
|
|
6002
|
-
//# sourceMappingURL=ms.post-4.0.4-nightly3.2310-
|
|
6024
|
+
//# sourceMappingURL=ms.post-4.0.4-nightly3.2310-10.gbl.js.map
|