@microsoft/1ds-post-js 4.3.1-nightly3.2407-03 → 4.3.1-nightly3.2407-06

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 (49) hide show
  1. package/bundle/es5/{ms.post-4.3.1-nightly3.2407-03.gbl.js → ms.post-4.3.1-nightly3.2407-06.gbl.js} +22 -9
  2. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.3.1-nightly3.2407-03.js → ms.post-4.3.1-nightly3.2407-06.js} +22 -9
  7. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.js.map +1 -0
  8. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.min.js +7 -0
  9. package/bundle/es5/ms.post-4.3.1-nightly3.2407-06.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +21 -8
  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 +21 -8
  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 +19 -6
  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 +8 -3
  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 +3 -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 +2 -1
  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 +17 -1
  42. package/types/1ds-post-js.namespaced.d.ts +17 -1
  43. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.gbl.js.map +0 -1
  44. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.gbl.min.js +0 -7
  45. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.gbl.min.js.map +0 -1
  46. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.integrity.json +0 -46
  47. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.js.map +0 -1
  48. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.min.js +0 -7
  49. package/bundle/es5/ms.post-4.3.1-nightly3.2407-03.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.3.1-nightly3.2407-03
2
+ * 1DS JS SDK POST plugin, 4.3.1-nightly3.2407-06
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -1794,7 +1794,7 @@
1794
1794
  return result;
1795
1795
  }
1796
1796
 
1797
- var version = '3.3.1-nightly3.2407-03';
1797
+ var version = '3.3.1-nightly3.2407-06';
1798
1798
  var instanceName = "." + newId(6);
1799
1799
  var _dataUid = 0;
1800
1800
  function _canAcceptData(target) {
@@ -3347,6 +3347,7 @@
3347
3347
  var _isOneDs;
3348
3348
  var _onCompleteFuncs;
3349
3349
  var _disableCredentials;
3350
+ var _fetchCredentials;
3350
3351
  var _fallbackInst;
3351
3352
  var _disableXhr;
3352
3353
  var _disableBeacon;
@@ -3372,6 +3373,7 @@
3372
3373
  try {
3373
3374
  _onCompleteFuncs = config.senderOnCompleteCallBack || {};
3374
3375
  _disableCredentials = !!config.disableCredentials;
3376
+ _fetchCredentials = config.fetchCredentials;
3375
3377
  _isOneDs = !!config.isOneDs;
3376
3378
  _enableSendPromise = !!config.enableSendPromise;
3377
3379
  _disableXhr = !!config.disableXhr;
@@ -3587,7 +3589,10 @@
3587
3589
  });
3588
3590
  init[_DYN_HEADERS$1 ] = requestHeaders;
3589
3591
  }
3590
- if (_sendCredentials && _isOneDs) {
3592
+ if (_fetchCredentials) {
3593
+ init.credentials = _fetchCredentials;
3594
+ }
3595
+ else if (_sendCredentials && _isOneDs) {
3591
3596
  init.credentials = "include";
3592
3597
  }
3593
3598
  if (sync) {
@@ -3753,6 +3758,7 @@
3753
3758
  _isOneDs = null;
3754
3759
  _onCompleteFuncs = null;
3755
3760
  _disableCredentials = null;
3761
+ _fetchCredentials = null;
3756
3762
  _fallbackInst = null;
3757
3763
  _disableXhr = false;
3758
3764
  _disableBeacon = false;
@@ -4059,7 +4065,7 @@
4059
4065
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
4060
4066
 
4061
4067
  var _a$1;
4062
- var Version = '4.3.1-nightly3.2407-03';
4068
+ var Version = '4.3.1-nightly3.2407-06';
4063
4069
  var FullVersionString = "1DS-Web-JS-" + Version;
4064
4070
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
4065
4071
  var _fieldTypeEventPropMap = (_a$1 = {},
@@ -4290,6 +4296,7 @@
4290
4296
  var _DYN_ADD_NO_RESPONSE = "addNoResponse";
4291
4297
  var _DYN_EXCLUDE_CS_META_DATA = "excludeCsMetaData";
4292
4298
  var _DYN_USE_SEND_BEACON = "useSendBeacon";
4299
+ var _DYN_FETCH_CREDENTIALS = "fetchCredentials";
4293
4300
  var _DYN_ALWAYS_USE_XHR_OVERR7 = "alwaysUseXhrOverride";
4294
4301
  var _DYN_UNLOAD_TRANSPORTS = "unloadTransports";
4295
4302
  var _DYN_SERIALIZE_OFFLINE_EV8 = "serializeOfflineEvt";
@@ -4870,6 +4877,7 @@
4870
4877
  var _timeoutWrapper;
4871
4878
  var _excludeCsMetaData;
4872
4879
  var _sendPostMgr;
4880
+ var _fetchCredentials;
4873
4881
  dynamicProto(HttpManager, this, function (_self) {
4874
4882
  _initDefaults();
4875
4883
  var _sendCredentials = true;
@@ -4916,6 +4924,9 @@
4916
4924
  if (!isNullOrUndefined(channelConfig[_DYN_USE_SEND_BEACON ])) {
4917
4925
  _useBeacons = !!channelConfig[_DYN_USE_SEND_BEACON ];
4918
4926
  }
4927
+ if (channelConfig[_DYN_FETCH_CREDENTIALS ]) {
4928
+ _fetchCredentials = channelConfig[_DYN_FETCH_CREDENTIALS ];
4929
+ }
4919
4930
  var sendPostConfig = _getSendPostMgrConfig();
4920
4931
  if (!_sendPostMgr) {
4921
4932
  _sendPostMgr = new SenderPostManager();
@@ -5040,7 +5051,7 @@
5040
5051
  return null;
5041
5052
  }
5042
5053
  _self["_getDbgPlgTargets"] = function () {
5043
- return [_sendInterfaces[0 ], _killSwitch, _serializer, _sendInterfaces];
5054
+ return [_sendInterfaces[0 ], _killSwitch, _serializer, _sendInterfaces, _getSendPostMgrConfig()];
5044
5055
  };
5045
5056
  function _getSendPostMgrConfig() {
5046
5057
  try {
@@ -5054,6 +5065,7 @@
5054
5065
  enableSendPromise: false,
5055
5066
  isOneDs: true,
5056
5067
  disableCredentials: !_sendCredentials,
5068
+ fetchCredentials: _fetchCredentials,
5057
5069
  disableXhr: false,
5058
5070
  disableBeacon: !_useBeacons,
5059
5071
  disableBeaconSync: !_useBeacons,
@@ -5722,6 +5734,7 @@
5722
5734
  stringifyObjects: undefValue,
5723
5735
  enableCompoundKey: undefValue,
5724
5736
  disableOptimizeObj: false,
5737
+ fetchCredentials: undefValue,
5725
5738
  transports: undefValue,
5726
5739
  unloadTransports: undefValue,
5727
5740
  useSendBeacon: undefValue,
@@ -5744,7 +5757,7 @@
5744
5757
  var _this = _super.call(this) || this;
5745
5758
  _this.identifier = "PostChannel";
5746
5759
  _this.priority = 1011;
5747
- _this.version = '4.3.1-nightly3.2407-03';
5760
+ _this.version = '4.3.1-nightly3.2407-06';
5748
5761
  var _postConfig;
5749
5762
  var _isTeardownCalled = false;
5750
5763
  var _flushCallbackQueue = [];