@microsoft/1ds-post-js 4.4.2-nightly3.2605-06 → 4.4.2-nightly3.2605-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 (47) hide show
  1. package/bundle/es5/{ms.post-4.4.2-nightly3.2605-06.gbl.js → ms.post-4.4.2-nightly3.2605-11.gbl.js} +79 -43
  2. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.4.2-nightly3.2605-06.js → ms.post-4.4.2-nightly3.2605-11.js} +79 -43
  7. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.js.map +1 -0
  8. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.min.js +7 -0
  9. package/bundle/es5/ms.post-4.4.2-nightly3.2605-11.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +78 -42
  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 +78 -42
  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 +76 -40
  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 +1 -1
  28. package/dist-es5/Index.js +1 -1
  29. package/dist-es5/InternalConstants.js +1 -1
  30. package/dist-es5/KillSwitch.js +1 -1
  31. package/dist-es5/PostChannel.js +2 -2
  32. package/dist-es5/PostChannel.js.map +1 -1
  33. package/dist-es5/RetryPolicy.js +1 -1
  34. package/dist-es5/Serializer.js +1 -1
  35. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  36. package/dist-es5/__DynamicConstants.js +1 -1
  37. package/dist-es5/typings/XDomainRequest.js +1 -1
  38. package/package.json +3 -3
  39. package/types/1ds-post-js.d.ts +1 -1
  40. package/types/1ds-post-js.namespaced.d.ts +3 -1
  41. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.js.map +0 -1
  46. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.min.js +0 -7
  47. package/bundle/es5/ms.post-4.4.2-nightly3.2605-06.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.4.2-nightly3.2605-06
2
+ * 1DS JS SDK POST plugin, 4.4.2-nightly3.2605-11
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_4_2_nightly3_2605_06", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.4.2-nightly3.2605-06";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_4_2_nightly3_2605_11", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.4.2-nightly3.2605-11";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -36,14 +36,14 @@ var strShimUndefined = "undefined";
36
36
  var strShimPrototype = "prototype";
37
37
  var ObjClass$1 = Object;
38
38
 
39
- /*! https://github.com/nevware21/ts-utils v0.13.0 */
39
+ /*! https://github.com/nevware21/ts-utils v0.14.0 */
40
40
  /*#__NO_SIDE_EFFECTS__*/
41
41
  function _pureAssign(func1, func2) {
42
42
  return func1 || func2;
43
43
  }
44
44
  /*#__NO_SIDE_EFFECTS__*/
45
45
  function _pureRef(value, name) {
46
- return value[name];
46
+ return value !== null && value !== undefined ? value[name] : undefined;
47
47
  }
48
48
  var UNDEF_VALUE = undefined;
49
49
  var NULL_VALUE = null;
@@ -170,11 +170,15 @@ function polyObjHasOwn(obj, prop) {
170
170
  _throwIfNullOrUndefined(obj);
171
171
  return objHasOwnProperty(obj, prop) || !!_objGetOwnPropertyDescriptor$2(obj, prop);
172
172
  }
173
+ /*#__NO_SIDE_EFFECTS__*/
174
+ function isUnsafePropKey(key) {
175
+ return key === __PROTO__ || key === CONSTRUCTOR || key === PROTOTYPE;
176
+ }
173
177
  function objForEachKey(theObject, callbackfn, thisArg) {
174
178
  if (theObject && (isObject(theObject) || isFunction(theObject))) {
175
179
  for (var prop in theObject) {
176
180
  if (objHasOwn(theObject, prop)) {
177
- if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
181
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
178
182
  break;
179
183
  }
180
184
  }
@@ -186,14 +190,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
186
190
  var len = theArray[LENGTH] >>> 0;
187
191
  for (var idx = 0; idx < len; idx++) {
188
192
  if (idx in theArray) {
189
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
193
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theArray : thisArg, theArray[idx], idx, theArray) === -1) {
190
194
  break;
191
195
  }
192
196
  }
193
197
  }
194
198
  }
195
199
  }
196
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
200
+ var _unwrapFunction = _unwrapFunctionWithPoly;
197
201
  /*#__NO_SIDE_EFFECTS__*/
198
202
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
199
203
  var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
@@ -622,7 +626,7 @@ function iterForOf(iter, callbackfn, thisArg) {
622
626
  try {
623
627
  var count = 0;
624
628
  while (!(iterResult = iter.next()).done) {
625
- if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
629
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? iter : thisArg, iterResult.value, count, iter) === -1) {
626
630
  break;
627
631
  }
628
632
  count++;
@@ -670,6 +674,8 @@ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
670
674
  function arrSlice(theArray, start, end) {
671
675
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
672
676
  }
677
+ var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
678
+ var mathCeil = ( /*#__PURE__*/_pureRef(MathCls, "ceil"));
673
679
  var _isProtoArray;
674
680
  var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
675
681
  function _polyObjSetPrototypeOf(obj, proto) {
@@ -718,20 +724,21 @@ function createCustomError(name, constructCb, errorBase, superArgsFn) {
718
724
  }
719
725
  }, theBaseClass);
720
726
  }
727
+ var strReplace = ( /*#__PURE__*/_unwrapFunction("replace", StrProto));
721
728
  /*#__NO_SIDE_EFFECTS__*/
722
729
  function _createTrimFn(exp) {
723
730
  return function _doTrim(value) {
724
731
  _throwIfNullOrUndefined(value);
725
- if (value && value.replace) {
726
- value = value.replace(exp, EMPTY);
732
+ value = asString(value);
733
+ if (value) {
734
+ value = strReplace(value, exp, EMPTY);
727
735
  }
728
736
  return value;
729
737
  };
730
738
  }
731
739
  var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
732
740
  var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
733
- var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
734
- var mathCeil = ( /*#__PURE__*/_pureRef(MathCls, "ceil"));
741
+ var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
735
742
  var _fnToString;
736
743
  var _objCtrFnString;
737
744
  var _gblWindow;
@@ -768,7 +775,6 @@ function isPlainObject(value) {
768
775
  function perfNow() {
769
776
  return utcNow();
770
777
  }
771
- var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
772
778
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
773
779
  var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
774
780
  /*#__NO_SIDE_EFFECTS__*/
@@ -922,9 +928,11 @@ var strFunction = 'function';
922
928
  var DynInstFuncTable = '_dynInstFuncs';
923
929
  var DynProxyTag = '_isDynProxy';
924
930
  var DynClassName = '_dynClass';
931
+ var DynBaseProtoFuncs = '_dynBaseFuncs';
925
932
  var DynClassNamePrefix = '_dynCls$';
926
933
  var DynInstChkTag = '_dynInstChk';
927
934
  var DynAllowInstChkTag = DynInstChkTag;
935
+ var DynResolvedCachePrefix = '_dyn_r$';
928
936
  var DynProtoDefaultOptions = '_dfOpts';
929
937
  var UnknownValue = '_unknown_';
930
938
  var str__Proto = "__proto__";
@@ -1007,6 +1015,25 @@ function _hasVisited(values, value) {
1007
1015
  }
1008
1016
  return false;
1009
1017
  }
1018
+ function _getBaseProtoFuncs(classProto) {
1019
+ if (objHasOwnProperty(classProto, DynBaseProtoFuncs)) {
1020
+ return classProto[DynBaseProtoFuncs];
1021
+ }
1022
+ var baseFuncSources = objCreate(null);
1023
+ var baseProto = _getObjProto(classProto);
1024
+ var visited = [];
1025
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
1026
+ _forEachProp(baseProto, function (name) {
1027
+ if (!baseFuncSources[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
1028
+ baseFuncSources[name] = baseProto;
1029
+ }
1030
+ });
1031
+ visited.push(baseProto);
1032
+ baseProto = _getObjProto(baseProto);
1033
+ }
1034
+ classProto[DynBaseProtoFuncs] = baseFuncSources;
1035
+ return baseFuncSources;
1036
+ }
1010
1037
  function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
1011
1038
  function _instFuncProxy(target, funcHost, funcName) {
1012
1039
  var theFunc = funcHost[funcName];
@@ -1024,16 +1051,11 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
1024
1051
  _forEachProp(instFuncs, function (name) {
1025
1052
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
1026
1053
  });
1027
- var baseProto = _getObjProto(classProto);
1028
- var visited = [];
1029
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
1030
- _forEachProp(baseProto, function (name) {
1031
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
1032
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
1033
- }
1034
- });
1035
- visited.push(baseProto);
1036
- baseProto = _getObjProto(baseProto);
1054
+ var baseFuncSources = _getBaseProtoFuncs(classProto);
1055
+ for (var name_2 in baseFuncSources) {
1056
+ if (!baseFuncs[name_2]) {
1057
+ baseFuncs[name_2] = _instFuncProxy(thisTarget, baseFuncSources[name_2], name_2);
1058
+ }
1037
1059
  }
1038
1060
  return baseFuncs;
1039
1061
  }
@@ -1047,16 +1069,18 @@ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
1047
1069
  }
1048
1070
  if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
1049
1071
  var canAddInst = !objHasOwnProperty(target, funcName);
1050
- var objProto = _getObjProto(target);
1051
- var visited = [];
1052
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
1053
- var protoFunc = objProto[funcName];
1054
- if (protoFunc) {
1055
- canAddInst = (protoFunc === currentDynProtoProxy);
1056
- break;
1072
+ if (canAddInst) {
1073
+ var objProto = _getObjProto(target);
1074
+ var visited = [];
1075
+ while (objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
1076
+ var protoFunc = objProto[funcName];
1077
+ if (protoFunc) {
1078
+ canAddInst = (protoFunc === currentDynProtoProxy);
1079
+ break;
1080
+ }
1081
+ visited.push(objProto);
1082
+ objProto = _getObjProto(objProto);
1057
1083
  }
1058
- visited.push(objProto);
1059
- objProto = _getObjProto(objProto);
1060
1084
  }
1061
1085
  try {
1062
1086
  if (canAddInst) {
@@ -1083,25 +1107,34 @@ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
1083
1107
  }
1084
1108
  function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
1085
1109
  function _createDynamicPrototype(proto, funcName) {
1110
+ var cacheKey = DynResolvedCachePrefix + className + "." + funcName;
1086
1111
  var dynProtoProxy = function () {
1087
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
1112
+ var instFuncTable = this[DynInstFuncTable];
1113
+ var instFunc = instFuncTable ? instFuncTable[cacheKey] : undefined;
1114
+ if (!instFunc) {
1115
+ instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
1116
+ if (instFuncTable) {
1117
+ instFuncTable[cacheKey] = instFunc;
1118
+ }
1119
+ }
1088
1120
  return instFunc.apply(this, arguments);
1089
1121
  };
1090
1122
  dynProtoProxy[DynProxyTag] = 1;
1091
1123
  return dynProtoProxy;
1092
1124
  }
1093
1125
  if (!_isObjectOrArrayPrototype(proto)) {
1094
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1095
- if (!_isObjectOrArrayPrototype(instFuncTable)) {
1096
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
1097
- if (instFuncTable[DynAllowInstChkTag] !== false) {
1098
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1126
+ var instFuncTable_1 = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1127
+ if (!_isObjectOrArrayPrototype(instFuncTable_1)) {
1128
+ var instFuncs_1 = instFuncTable_1[className] = (instFuncTable_1[className] || objCreate(null));
1129
+ if (instFuncTable_1[DynAllowInstChkTag] !== false) {
1130
+ instFuncTable_1[DynAllowInstChkTag] = !!setInstanceFunc;
1099
1131
  }
1100
1132
  if (!_isObjectOrArrayPrototype(instFuncs_1)) {
1101
1133
  _forEachProp(target, function (name) {
1102
1134
  if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1103
1135
  instFuncs_1[name] = target[name];
1104
1136
  delete target[name];
1137
+ delete instFuncTable_1[DynResolvedCachePrefix + className + "." + name];
1105
1138
  if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1106
1139
  proto[name] = _createDynamicPrototype(proto, name);
1107
1140
  }
@@ -1976,7 +2009,7 @@ function newId(maxLength) {
1976
2009
  return result;
1977
2010
  }
1978
2011
 
1979
- var version = '3.4.2-nightly3.2605-06';
2012
+ var version = "3.4.2-nightly3.2605-11";
1980
2013
  var instanceName = "." + newId(6);
1981
2014
  var _dataUid = 0;
1982
2015
  function _canAcceptData(target) {
@@ -4272,7 +4305,7 @@ function removePageShowEventListener(listener, evtNamespace) {
4272
4305
  }
4273
4306
 
4274
4307
  var _a$1;
4275
- var ExtVersion = '4.4.2-nightly3.2605-06';
4308
+ var ExtVersion = "4.4.1";
4276
4309
  var ExtFullVersionString = "1DS-Web-JS-" + ExtVersion;
4277
4310
  var FullVersionString = ExtFullVersionString;
4278
4311
  var ObjHasOwnProperty = Object.prototype[_DYN_HAS_OWN_PROPERTY ];
@@ -4368,6 +4401,9 @@ function extend(obj, obj2, obj3, obj4, obj5) {
4368
4401
  for (; i < length; i++) {
4369
4402
  var obj = theArgs[i];
4370
4403
  objForEachKey(obj, function (prop, value) {
4404
+ if (isUnsafePropKey(prop)) {
4405
+ return;
4406
+ }
4371
4407
  if (deep && value && isObject(value)) {
4372
4408
  if (isArray(value)) {
4373
4409
  extended[prop] = extended[prop] || [];
@@ -5981,7 +6017,7 @@ var PostChannel = /** @class */ (function (_super) {
5981
6017
  var _this = _super.call(this) || this;
5982
6018
  _this.identifier = "PostChannel";
5983
6019
  _this.priority = 1011;
5984
- _this.version = '4.4.2-nightly3.2605-06';
6020
+ _this.version = '4.4.2-nightly3.2605-11';
5985
6021
  var _postConfig;
5986
6022
  var _isTeardownCalled = false;
5987
6023
  var _flushCallbackQueue = [];
@@ -6769,4 +6805,4 @@ exports.PostChannel = PostChannel;
6769
6805
  exports.RT_PROFILE = RT_PROFILE;
6770
6806
 
6771
6807
  }));
6772
- //# sourceMappingURL=ms.post-4.4.2-nightly3.2605-06.gbl.js.map
6808
+ //# sourceMappingURL=ms.post-4.4.2-nightly3.2605-11.gbl.js.map