@microsoft/1ds-post-js 4.1.0-nightly3.2401-04 → 4.1.0-nightly3.2401-08

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.1.0-nightly3.2401-04.gbl.js → ms.post-4.1.0-nightly3.2401-08.gbl.js} +87 -67
  2. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.1.0-nightly3.2401-04.js → ms.post-4.1.0-nightly3.2401-08.js} +87 -67
  7. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.js.map +1 -0
  8. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.min.js +7 -0
  9. package/bundle/es5/ms.post-4.1.0-nightly3.2401-08.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +86 -66
  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 +86 -66
  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 +84 -64
  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 +2 -2
  39. package/types/1ds-post-js.d.ts +1 -1
  40. package/types/1ds-post-js.namespaced.d.ts +1 -1
  41. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.js.map +0 -1
  46. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.min.js +0 -7
  47. package/bundle/es5/ms.post-4.1.0-nightly3.2401-04.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.1.0-nightly3.2401-04
2
+ * 1DS JS SDK POST plugin, 4.1.0-nightly3.2401-08
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_1_0_nightly3_2401_04", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.1.0-nightly3.2401-04";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_1_0_nightly3_2401_08", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.1.0-nightly3.2401-08";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -52,11 +52,13 @@ var CONSTRUCTOR = "constructor";
52
52
  var SYMBOL = "Symbol";
53
53
  var POLYFILL_TAG = "_polyfill";
54
54
  var INDEX_OF = "indexOf";
55
+ var LAST_INDEX_OF = "lastIndexOf";
55
56
  var LENGTH = "length";
56
57
  var DONE = "done";
57
58
  var VALUE = "value";
58
59
  var NAME = "name";
59
60
  var SLICE = "slice";
61
+ var CALL = "call";
60
62
  var ObjClass = Object;
61
63
  var ObjProto = ObjClass[PROTOTYPE];
62
64
  var StrCls = String;
@@ -87,7 +89,7 @@ function _createObjIs(theName) {
87
89
  };
88
90
  }
89
91
  function objToString(value) {
90
- return ObjProto.toString.call(value);
92
+ return ObjProto.toString[CALL](value);
91
93
  }
92
94
  function isUndefined(value) {
93
95
  return typeof value === UNDEFINED || value === UNDEFINED;
@@ -101,8 +103,8 @@ function isStrictNullOrUndefined(value) {
101
103
  function isDefined(arg) {
102
104
  return !!arg || arg !== UNDEF_VALUE;
103
105
  }
104
- var isString = _createIs(STRING);
105
- var isFunction = _createIs(FUNCTION);
106
+ var isString = ( _createIs(STRING));
107
+ var isFunction = ( _createIs(FUNCTION));
106
108
  function isObject(value) {
107
109
  if (!value && isNullOrUndefined(value)) {
108
110
  return false;
@@ -110,17 +112,17 @@ function isObject(value) {
110
112
  return !!value && typeof value === OBJECT;
111
113
  }
112
114
  var isArray = ArrCls.isArray;
113
- var isNumber = _createIs(NUMBER);
114
- var isBoolean = _createIs(BOOLEAN);
115
- var isError = _createObjIs("Error");
115
+ var isNumber = ( _createIs(NUMBER));
116
+ var isBoolean = ( _createIs(BOOLEAN));
117
+ var isError = ( _createObjIs("Error"));
116
118
  function isPromiseLike(value) {
117
- return !!value && isFunction(value.then);
119
+ return !!(value && value.then && isFunction(value.then));
118
120
  }
119
121
 
120
122
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
121
123
 
122
124
  function objHasOwnProperty(obj, prop) {
123
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
125
+ return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
124
126
  }
125
127
 
126
128
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
@@ -132,7 +134,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
132
134
  if (theObject && isObject(theObject)) {
133
135
  for (var prop in theObject) {
134
136
  if (objHasOwn(theObject, prop)) {
135
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
137
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
136
138
  break;
137
139
  }
138
140
  }
@@ -154,8 +156,12 @@ function throwTypeError(message) {
154
156
  }
155
157
 
156
158
  var _objFreeze = ObjClass["freeze"];
157
- var _doNothing = function (value) { return value; };
158
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
159
+ function _doNothing(value) {
160
+ return value;
161
+ }
162
+ function _getProto(value) {
163
+ return value[__PROTO__] || NULL_VALUE;
164
+ }
159
165
  var objAssign = ObjClass["assign"];
160
166
  function objKeys(value) {
161
167
  if (!isObject(value) || value === NULL_VALUE) {
@@ -183,7 +189,7 @@ function createEnumKeyMap(values) {
183
189
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
184
190
  }
185
191
 
186
- var _wellKnownSymbolMap = createEnumKeyMap({
192
+ var _wellKnownSymbolMap = createEnumKeyMap({
187
193
  asyncIterator: 0 ,
188
194
  hasInstance: 1 ,
189
195
  isConcatSpreadable: 2 ,
@@ -243,43 +249,46 @@ function dumpObj(object, format) {
243
249
  return objToString(object) + ": " + propertyValueDump;
244
250
  }
245
251
 
246
- var _arrSlice = ArrProto[SLICE];
247
- var _throwMissingFunction = function (funcName, thisArg) {
252
+ var _slice;
253
+ function _throwMissingFunction(funcName, thisArg) {
248
254
  throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
249
- };
250
- var _unwrapInstFunction = function (funcName) {
255
+ }
256
+ function _unwrapInstFunction(funcName) {
257
+ _slice = _slice || ArrProto[SLICE];
251
258
  return function (thisArg) {
252
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
259
+ return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
253
260
  };
254
- };
255
- var _unwrapFunction = function (funcName, clsProto) {
261
+ }
262
+ function _unwrapFunction(funcName, clsProto) {
263
+ _slice = _slice || ArrProto[SLICE];
256
264
  var clsFn = clsProto && clsProto[funcName];
257
265
  return function (thisArg) {
258
266
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
259
267
  if (theFunc) {
260
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
268
+ return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
261
269
  }
262
270
  _throwMissingFunction(funcName, thisArg);
263
271
  };
264
- };
265
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
272
+ }
273
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
274
+ _slice = _slice || ArrProto[SLICE];
266
275
  var clsFn = clsProto && clsProto[funcName];
267
276
  return function (thisArg) {
268
277
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
269
278
  if (theFunc || polyFunc) {
270
279
  var theArgs = arguments;
271
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
280
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
272
281
  }
273
282
  _throwMissingFunction(funcName, thisArg);
274
283
  };
275
- };
284
+ }
276
285
 
277
286
  var mathMax = MathCls.max;
278
287
 
279
- var strSlice = _unwrapFunction(SLICE, StrProto);
288
+ var strSlice = ( _unwrapFunction(SLICE, StrProto));
280
289
 
281
- var strSubstring = _unwrapFunction("substring", StrProto);
282
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
290
+ var strSubstring = ( _unwrapFunction("substring", StrProto));
291
+ var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
283
292
  function polyStrSubstr(value, start, length) {
284
293
  if (isNullOrUndefined(value)) {
285
294
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -300,7 +309,7 @@ function strLeft(value, count) {
300
309
  return strSubstring(value, 0, count);
301
310
  }
302
311
 
303
- var strStartsWith = _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
312
+ var strStartsWith = ( _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
304
313
  function polyStrStartsWith(value, searchString, position) {
305
314
  if (!isString(value)) {
306
315
  throwTypeError("'" + dumpObj(value) + "' is not a string");
@@ -420,12 +429,14 @@ var _cachedWindow;
420
429
  var _cachedDocument;
421
430
  var _cachedNavigator;
422
431
  var _isNode;
423
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
424
- var getGlobal = function (useCached) {
432
+ function lazySafeGetInst(name) {
433
+ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
434
+ }
435
+ function getGlobal(useCached) {
425
436
  (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
426
437
  return _cachedGlobal.v;
427
- };
428
- var getInst = function (name, useCached) {
438
+ }
439
+ function getInst(name, useCached) {
429
440
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
430
441
  if (gbl && gbl[name]) {
431
442
  return gbl[name];
@@ -434,26 +445,32 @@ var getInst = function (name, useCached) {
434
445
  return _cachedWindow.v;
435
446
  }
436
447
  return NULL_VALUE;
437
- };
438
- var hasDocument = function () { return !!getDocument(); };
439
- var getDocument = function () {
448
+ }
449
+ function hasDocument() {
450
+ return !!getDocument();
451
+ }
452
+ function getDocument() {
440
453
  (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
441
454
  return _cachedDocument.v;
442
- };
443
- var hasWindow = function () { return !!getWindow(); };
444
- var getWindow = function () {
455
+ }
456
+ function hasWindow() {
457
+ return !!getWindow();
458
+ }
459
+ function getWindow() {
445
460
  (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
446
461
  return _cachedWindow.v;
447
- };
448
- var hasNavigator = function () { return !!getNavigator(); };
449
- var getNavigator = function () {
462
+ }
463
+ function hasNavigator() {
464
+ return !!getNavigator();
465
+ }
466
+ function getNavigator() {
450
467
  (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
451
468
  return _cachedNavigator.v;
452
- };
453
- var isNode = function () {
469
+ }
470
+ function isNode() {
454
471
  !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
455
472
  return _isNode.v;
456
- };
473
+ }
457
474
 
458
475
  var _symbol;
459
476
  var _symbolFor;
@@ -507,7 +524,7 @@ function iterForOf(iter, callbackfn, thisArg) {
507
524
  try {
508
525
  var count = 0;
509
526
  while (!(iterResult = iter.next())[DONE]) {
510
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
527
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
511
528
  break;
512
529
  }
513
530
  count++;
@@ -536,7 +553,7 @@ function iterForOf(iter, callbackfn, thisArg) {
536
553
  }
537
554
  }
538
555
 
539
- var fnApply = _unwrapInstFunction("apply");
556
+ var fnApply = ( _unwrapInstFunction("apply"));
540
557
 
541
558
  function arrAppend(target, elms) {
542
559
  if (!isUndefined(elms) && target) {
@@ -560,7 +577,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
560
577
  var len = theArray[LENGTH] >>> 0;
561
578
  for (var idx = 0; idx < len; idx++) {
562
579
  if (idx in theArray) {
563
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
580
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
564
581
  break;
565
582
  }
566
583
  }
@@ -568,14 +585,12 @@ function arrForEach(theArray, callbackfn, thisArg) {
568
585
  }
569
586
  }
570
587
 
571
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
588
+ var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
589
+ ( _unwrapFunction(LAST_INDEX_OF, ArrProto));
572
590
 
573
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
591
+ var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
574
592
 
575
- var fnCall = _unwrapInstFunction("call");
576
-
577
- var _objCreate = ObjClass["create"];
578
- var objCreate = _objCreate || polyObjCreate;
593
+ var objCreate = ObjClass["create"] || polyObjCreate;
579
594
  function polyObjCreate(obj) {
580
595
  if (!obj) {
581
596
  return {};
@@ -602,7 +617,7 @@ function objSetPrototypeOf(obj, proto) {
602
617
  return fn(obj, proto);
603
618
  }
604
619
 
605
- var _createCustomError = function (name, d, b) {
620
+ function _createCustomError(name, d, b) {
606
621
  _safeDefineName(d, name);
607
622
  d = objSetPrototypeOf(d, b);
608
623
  function __() {
@@ -611,7 +626,7 @@ var _createCustomError = function (name, d, b) {
611
626
  }
612
627
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
613
628
  return d;
614
- };
629
+ }
615
630
  var _safeSetName = function (baseClass, name) {
616
631
  try {
617
632
  name && (baseClass[NAME] = name);
@@ -669,9 +684,13 @@ function _createTrimFn(exp) {
669
684
  return value;
670
685
  };
671
686
  }
672
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
687
+ var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
688
+ var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
689
+ var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
673
690
 
674
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
691
+ var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
692
+ ( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
693
+ ( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
675
694
 
676
695
  var _fnToString;
677
696
  var _objCtrFnString;
@@ -687,7 +706,7 @@ function isPlainObject(value) {
687
706
  if (value !== _gblWindow) {
688
707
  if (!_objCtrFnString) {
689
708
  _fnToString = Function[PROTOTYPE].toString;
690
- _objCtrFnString = fnCall(_fnToString, ObjClass);
709
+ _objCtrFnString = _fnToString[CALL](ObjClass);
691
710
  }
692
711
  try {
693
712
  var proto = objGetPrototypeOf(value);
@@ -696,7 +715,7 @@ function isPlainObject(value) {
696
715
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
697
716
  proto = proto[CONSTRUCTOR];
698
717
  }
699
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
718
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
700
719
  }
701
720
  }
702
721
  catch (ex) {
@@ -718,7 +737,8 @@ function perfNow() {
718
737
  return utcNow();
719
738
  }
720
739
 
721
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
740
+ var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
741
+ ( _unwrapFunction(LAST_INDEX_OF, StrProto));
722
742
 
723
743
  var REF = "ref";
724
744
  var UNREF = "un" + REF;
@@ -1681,7 +1701,7 @@ function newId(maxLength) {
1681
1701
  return result;
1682
1702
  }
1683
1703
 
1684
- var version = '3.1.0-nightly3.2401-04';
1704
+ var version = '3.1.0-nightly3.2401-08';
1685
1705
  var instanceName = "." + newId(6);
1686
1706
  var _dataUid = 0;
1687
1707
  function _canAcceptData(target) {
@@ -3510,7 +3530,7 @@ var _DYN_LENGTH$1 = "length";
3510
3530
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
3511
3531
 
3512
3532
  var _a$1;
3513
- var Version = '4.1.0-nightly3.2401-04';
3533
+ var Version = '4.1.0-nightly3.2401-08';
3514
3534
  var FullVersionString = "1DS-Web-JS-" + Version;
3515
3535
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
3516
3536
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -5304,7 +5324,7 @@ var PostChannel = /** @class */ (function (_super) {
5304
5324
  var _this = _super.call(this) || this;
5305
5325
  _this.identifier = "PostChannel";
5306
5326
  _this.priority = 1011;
5307
- _this.version = '4.1.0-nightly3.2401-04';
5327
+ _this.version = '4.1.0-nightly3.2401-08';
5308
5328
  var _postConfig;
5309
5329
  var _isTeardownCalled = false;
5310
5330
  var _flushCallbackQueue = [];
@@ -6021,4 +6041,4 @@ exports.PostChannel = PostChannel;
6021
6041
  exports.RT_PROFILE = RT_PROFILE;
6022
6042
 
6023
6043
  }));
6024
- //# sourceMappingURL=ms.post-4.1.0-nightly3.2401-04.gbl.js.map
6044
+ //# sourceMappingURL=ms.post-4.1.0-nightly3.2401-08.gbl.js.map