@microsoft/1ds-post-js 4.0.4-nightly3.2310-09 → 4.0.4-nightly3.2310-11

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-11.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-11.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-11.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-11.gbl.min.js.map} +1 -1
  5. package/bundle/es5/ms.post-4.0.4-nightly3.2310-11.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.js → ms.post-4.0.4-nightly3.2310-11.js} +25 -10
  7. package/bundle/es5/{ms.post-4.0.4-nightly3.2310-09.js.map → ms.post-4.0.4-nightly3.2310-11.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-11.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-11.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,5 +1,5 @@
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-11
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-09';
1667
+ var version = '3.0.5-nightly3.2310-11';
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-09';
3496
+ var Version = '4.0.4-nightly3.2310-11';
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
- _sendBatchesNotification(droppedBatches_1, 8003 , thePayload[_DYN_SEND_TYPE ], true);
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(thePayload[_DYN_BATCHES ]);
5118
+ _addCompleteTimings(theBatches);
5104
5119
  }
5105
- _sendBatchesNotification(thePayload[_DYN_BATCHES ], batchReason, thePayload[_DYN_SEND_TYPE ], true);
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-09';
5290
+ _this.version = '4.0.4-nightly3.2310-11';
5276
5291
  var _postConfig;
5277
5292
  var _isTeardownCalled = false;
5278
5293
  var _flushCallbackQueue = [];