@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.
Files changed (43) hide show
  1. 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
  2. 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
  3. 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
  4. 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
  5. package/bundle/es5/ms.post-4.0.4-nightly3.2310-10.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.js → ms.post-4.0.4-nightly3.2310-10.js} +25 -10
  7. 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
  8. 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
  9. 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
  10. package/bundle/es5/ms.post.gbl.js +24 -9
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +24 -9
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +22 -7
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +1 -1
  27. package/dist-es5/HttpManager.js +21 -4
  28. package/dist-es5/HttpManager.js.map +1 -1
  29. package/dist-es5/Index.js +1 -1
  30. package/dist-es5/InternalConstants.js +1 -1
  31. package/dist-es5/KillSwitch.js +1 -1
  32. package/dist-es5/PostChannel.js +2 -2
  33. package/dist-es5/PostChannel.js.map +1 -1
  34. package/dist-es5/RetryPolicy.js +1 -1
  35. package/dist-es5/Serializer.js +1 -1
  36. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  37. package/dist-es5/__DynamicConstants.js +3 -3
  38. package/dist-es5/__DynamicConstants.js.map +1 -1
  39. package/dist-es5/typings/XDomainRequest.js +1 -1
  40. package/package.json +2 -2
  41. package/types/1ds-post-js.d.ts +1 -1
  42. package/types/1ds-post-js.namespaced.d.ts +1 -1
  43. package/bundle/es5/ms.post-4.0.4-nightly3.2310-09.integrity.json +0 -46
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.0.4-nightly3.2310-09
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 = "es5_ms_post_4_0_4_nightly3_2310_09", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.0.4-nightly3.2310-09";
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-09';
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-09';
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 ])) {
@@ -4684,7 +4687,9 @@ var HttpManager = /** @class */ (function () {
4684
4687
  var nav_1 = getNavigator();
4685
4688
  if (!nav_1.sendBeacon(theUrl, payload[_DYN_DATA ])) {
4686
4689
  if (thePayload) {
4690
+ var persistStorage = !!_core.getPlugin("LocalStorage");
4687
4691
  var droppedBatches_1 = [];
4692
+ var sentBatches_1 = [];
4688
4693
  arrForEach(thePayload[_DYN_BATCHES ], function (theBatch) {
4689
4694
  if (droppedBatches_1 && theBatch && theBatch[_DYN_COUNT ]() > 0) {
4690
4695
  var theEvents = theBatch[_DYN_EVENTS ]();
@@ -4693,13 +4698,21 @@ var HttpManager = /** @class */ (function () {
4693
4698
  droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](lp));
4694
4699
  break;
4695
4700
  }
4701
+ else {
4702
+ sentBatches_1[_DYN_PUSH ](theBatch[lp]);
4703
+ }
4696
4704
  }
4697
4705
  }
4698
4706
  else {
4699
4707
  droppedBatches_1[_DYN_PUSH ](theBatch[_DYN_SPLIT ](0));
4700
4708
  }
4701
4709
  });
4702
- _sendBatchesNotification(droppedBatches_1, 8003 , thePayload[_DYN_SEND_TYPE ], true);
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
+ }
4703
4716
  }
4704
4717
  else {
4705
4718
  status = 0;
@@ -5113,13 +5126,15 @@ var HttpManager = /** @class */ (function () {
5113
5126
  if (backOffTrans) {
5114
5127
  _postManager[_DYN__BACK_OFF_TRANSMISSI11 ]();
5115
5128
  }
5129
+ var theBatches = thePayload[_DYN_BATCHES ];
5116
5130
  if (batchReason === 200 ) {
5131
+ theBatches = thePayload.sentEvts || thePayload[_DYN_BATCHES ];
5117
5132
  if (!backOffTrans && !thePayload[_DYN_IS_SYNC ]) {
5118
5133
  _postManager._clearBackOff();
5119
5134
  }
5120
- _addCompleteTimings(thePayload[_DYN_BATCHES ]);
5135
+ _addCompleteTimings(theBatches);
5121
5136
  }
5122
- _sendBatchesNotification(thePayload[_DYN_BATCHES ], batchReason, thePayload[_DYN_SEND_TYPE ], true);
5137
+ _sendBatchesNotification(theBatches, batchReason, thePayload[_DYN_SEND_TYPE ], true);
5123
5138
  }
5124
5139
  finally {
5125
5140
  if (thePayload[_DYN_SEND_TYPE ] === 0 ) {
@@ -5289,7 +5304,7 @@ var PostChannel = /** @class */ (function (_super) {
5289
5304
  var _this = _super.call(this) || this;
5290
5305
  _this.identifier = "PostChannel";
5291
5306
  _this.priority = 1011;
5292
- _this.version = '4.0.4-nightly3.2310-09';
5307
+ _this.version = '4.0.4-nightly3.2310-10';
5293
5308
  var _postConfig;
5294
5309
  var _isTeardownCalled = false;
5295
5310
  var _flushCallbackQueue = [];