@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,5 +1,5 @@
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
  */
@@ -35,11 +35,13 @@
35
35
  var SYMBOL = "Symbol";
36
36
  var POLYFILL_TAG = "_polyfill";
37
37
  var INDEX_OF = "indexOf";
38
+ var LAST_INDEX_OF = "lastIndexOf";
38
39
  var LENGTH = "length";
39
40
  var DONE = "done";
40
41
  var VALUE = "value";
41
42
  var NAME = "name";
42
43
  var SLICE = "slice";
44
+ var CALL = "call";
43
45
  var ObjClass = Object;
44
46
  var ObjProto = ObjClass[PROTOTYPE];
45
47
  var StrCls = String;
@@ -70,7 +72,7 @@
70
72
  };
71
73
  }
72
74
  function objToString(value) {
73
- return ObjProto.toString.call(value);
75
+ return ObjProto.toString[CALL](value);
74
76
  }
75
77
  function isUndefined(value) {
76
78
  return typeof value === UNDEFINED || value === UNDEFINED;
@@ -84,8 +86,8 @@
84
86
  function isDefined(arg) {
85
87
  return !!arg || arg !== UNDEF_VALUE;
86
88
  }
87
- var isString = _createIs(STRING);
88
- var isFunction = _createIs(FUNCTION);
89
+ var isString = ( _createIs(STRING));
90
+ var isFunction = ( _createIs(FUNCTION));
89
91
  function isObject(value) {
90
92
  if (!value && isNullOrUndefined(value)) {
91
93
  return false;
@@ -93,17 +95,17 @@
93
95
  return !!value && typeof value === OBJECT;
94
96
  }
95
97
  var isArray = ArrCls.isArray;
96
- var isNumber = _createIs(NUMBER);
97
- var isBoolean = _createIs(BOOLEAN);
98
- var isError = _createObjIs("Error");
98
+ var isNumber = ( _createIs(NUMBER));
99
+ var isBoolean = ( _createIs(BOOLEAN));
100
+ var isError = ( _createObjIs("Error"));
99
101
  function isPromiseLike(value) {
100
- return !!value && isFunction(value.then);
102
+ return !!(value && value.then && isFunction(value.then));
101
103
  }
102
104
 
103
105
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
104
106
 
105
107
  function objHasOwnProperty(obj, prop) {
106
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
108
+ return obj && ObjProto.hasOwnProperty[CALL](obj, prop);
107
109
  }
108
110
 
109
111
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
@@ -115,7 +117,7 @@
115
117
  if (theObject && isObject(theObject)) {
116
118
  for (var prop in theObject) {
117
119
  if (objHasOwn(theObject, prop)) {
118
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
120
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
119
121
  break;
120
122
  }
121
123
  }
@@ -137,8 +139,12 @@
137
139
  }
138
140
 
139
141
  var _objFreeze = ObjClass["freeze"];
140
- var _doNothing = function (value) { return value; };
141
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
142
+ function _doNothing(value) {
143
+ return value;
144
+ }
145
+ function _getProto(value) {
146
+ return value[__PROTO__] || NULL_VALUE;
147
+ }
142
148
  var objAssign = ObjClass["assign"];
143
149
  function objKeys(value) {
144
150
  if (!isObject(value) || value === NULL_VALUE) {
@@ -166,7 +172,7 @@
166
172
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
167
173
  }
168
174
 
169
- var _wellKnownSymbolMap = createEnumKeyMap({
175
+ var _wellKnownSymbolMap = createEnumKeyMap({
170
176
  asyncIterator: 0 ,
171
177
  hasInstance: 1 ,
172
178
  isConcatSpreadable: 2 ,
@@ -226,43 +232,46 @@
226
232
  return objToString(object) + ": " + propertyValueDump;
227
233
  }
228
234
 
229
- var _arrSlice = ArrProto[SLICE];
230
- var _throwMissingFunction = function (funcName, thisArg) {
235
+ var _slice;
236
+ function _throwMissingFunction(funcName, thisArg) {
231
237
  throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
232
- };
233
- var _unwrapInstFunction = function (funcName) {
238
+ }
239
+ function _unwrapInstFunction(funcName) {
240
+ _slice = _slice || ArrProto[SLICE];
234
241
  return function (thisArg) {
235
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
242
+ return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
236
243
  };
237
- };
238
- var _unwrapFunction = function (funcName, clsProto) {
244
+ }
245
+ function _unwrapFunction(funcName, clsProto) {
246
+ _slice = _slice || ArrProto[SLICE];
239
247
  var clsFn = clsProto && clsProto[funcName];
240
248
  return function (thisArg) {
241
249
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
242
250
  if (theFunc) {
243
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
251
+ return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
244
252
  }
245
253
  _throwMissingFunction(funcName, thisArg);
246
254
  };
247
- };
248
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
255
+ }
256
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
257
+ _slice = _slice || ArrProto[SLICE];
249
258
  var clsFn = clsProto && clsProto[funcName];
250
259
  return function (thisArg) {
251
260
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
252
261
  if (theFunc || polyFunc) {
253
262
  var theArgs = arguments;
254
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
263
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
255
264
  }
256
265
  _throwMissingFunction(funcName, thisArg);
257
266
  };
258
- };
267
+ }
259
268
 
260
269
  var mathMax = MathCls.max;
261
270
 
262
- var strSlice = _unwrapFunction(SLICE, StrProto);
271
+ var strSlice = ( _unwrapFunction(SLICE, StrProto));
263
272
 
264
- var strSubstring = _unwrapFunction("substring", StrProto);
265
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
273
+ var strSubstring = ( _unwrapFunction("substring", StrProto));
274
+ var strSubstr = ( _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
266
275
  function polyStrSubstr(value, start, length) {
267
276
  if (isNullOrUndefined(value)) {
268
277
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -283,7 +292,7 @@
283
292
  return strSubstring(value, 0, count);
284
293
  }
285
294
 
286
- var strStartsWith = _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
295
+ var strStartsWith = ( _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
287
296
  function polyStrStartsWith(value, searchString, position) {
288
297
  if (!isString(value)) {
289
298
  throwTypeError("'" + dumpObj(value) + "' is not a string");
@@ -403,12 +412,14 @@
403
412
  var _cachedDocument;
404
413
  var _cachedNavigator;
405
414
  var _isNode;
406
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
407
- var getGlobal = function (useCached) {
415
+ function lazySafeGetInst(name) {
416
+ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
417
+ }
418
+ function getGlobal(useCached) {
408
419
  (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
409
420
  return _cachedGlobal.v;
410
- };
411
- var getInst = function (name, useCached) {
421
+ }
422
+ function getInst(name, useCached) {
412
423
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
413
424
  if (gbl && gbl[name]) {
414
425
  return gbl[name];
@@ -417,26 +428,32 @@
417
428
  return _cachedWindow.v;
418
429
  }
419
430
  return NULL_VALUE;
420
- };
421
- var hasDocument = function () { return !!getDocument(); };
422
- var getDocument = function () {
431
+ }
432
+ function hasDocument() {
433
+ return !!getDocument();
434
+ }
435
+ function getDocument() {
423
436
  (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
424
437
  return _cachedDocument.v;
425
- };
426
- var hasWindow = function () { return !!getWindow(); };
427
- var getWindow = function () {
438
+ }
439
+ function hasWindow() {
440
+ return !!getWindow();
441
+ }
442
+ function getWindow() {
428
443
  (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
429
444
  return _cachedWindow.v;
430
- };
431
- var hasNavigator = function () { return !!getNavigator(); };
432
- var getNavigator = function () {
445
+ }
446
+ function hasNavigator() {
447
+ return !!getNavigator();
448
+ }
449
+ function getNavigator() {
433
450
  (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
434
451
  return _cachedNavigator.v;
435
- };
436
- var isNode = function () {
452
+ }
453
+ function isNode() {
437
454
  !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
438
455
  return _isNode.v;
439
- };
456
+ }
440
457
 
441
458
  var _symbol;
442
459
  var _symbolFor;
@@ -490,7 +507,7 @@
490
507
  try {
491
508
  var count = 0;
492
509
  while (!(iterResult = iter.next())[DONE]) {
493
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
510
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
494
511
  break;
495
512
  }
496
513
  count++;
@@ -519,7 +536,7 @@
519
536
  }
520
537
  }
521
538
 
522
- var fnApply = _unwrapInstFunction("apply");
539
+ var fnApply = ( _unwrapInstFunction("apply"));
523
540
 
524
541
  function arrAppend(target, elms) {
525
542
  if (!isUndefined(elms) && target) {
@@ -543,7 +560,7 @@
543
560
  var len = theArray[LENGTH] >>> 0;
544
561
  for (var idx = 0; idx < len; idx++) {
545
562
  if (idx in theArray) {
546
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
563
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
547
564
  break;
548
565
  }
549
566
  }
@@ -551,14 +568,12 @@
551
568
  }
552
569
  }
553
570
 
554
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
571
+ var arrIndexOf = ( _unwrapFunction(INDEX_OF, ArrProto));
572
+ ( _unwrapFunction(LAST_INDEX_OF, ArrProto));
555
573
 
556
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
574
+ var arrSlice = ( _unwrapFunction(SLICE, ArrProto));
557
575
 
558
- var fnCall = _unwrapInstFunction("call");
559
-
560
- var _objCreate = ObjClass["create"];
561
- var objCreate = _objCreate || polyObjCreate;
576
+ var objCreate = ObjClass["create"] || polyObjCreate;
562
577
  function polyObjCreate(obj) {
563
578
  if (!obj) {
564
579
  return {};
@@ -585,7 +600,7 @@
585
600
  return fn(obj, proto);
586
601
  }
587
602
 
588
- var _createCustomError = function (name, d, b) {
603
+ function _createCustomError(name, d, b) {
589
604
  _safeDefineName(d, name);
590
605
  d = objSetPrototypeOf(d, b);
591
606
  function __() {
@@ -594,7 +609,7 @@
594
609
  }
595
610
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
596
611
  return d;
597
- };
612
+ }
598
613
  var _safeSetName = function (baseClass, name) {
599
614
  try {
600
615
  name && (baseClass[NAME] = name);
@@ -652,9 +667,13 @@
652
667
  return value;
653
668
  };
654
669
  }
655
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
670
+ var polyStrTrim = ( _createTrimFn(/^\s+|(?=\s)\s+$/g));
671
+ var polyStrTrimStart = ( _createTrimFn(/^\s+/g));
672
+ var polyStrTrimEnd = ( _createTrimFn(/(?=\s)\s+$/g));
656
673
 
657
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
674
+ var strTrim = ( _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
675
+ ( _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart));
676
+ ( _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd));
658
677
 
659
678
  var _fnToString;
660
679
  var _objCtrFnString;
@@ -670,7 +689,7 @@
670
689
  if (value !== _gblWindow) {
671
690
  if (!_objCtrFnString) {
672
691
  _fnToString = Function[PROTOTYPE].toString;
673
- _objCtrFnString = fnCall(_fnToString, ObjClass);
692
+ _objCtrFnString = _fnToString[CALL](ObjClass);
674
693
  }
675
694
  try {
676
695
  var proto = objGetPrototypeOf(value);
@@ -679,7 +698,7 @@
679
698
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
680
699
  proto = proto[CONSTRUCTOR];
681
700
  }
682
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
701
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
683
702
  }
684
703
  }
685
704
  catch (ex) {
@@ -701,7 +720,8 @@
701
720
  return utcNow();
702
721
  }
703
722
 
704
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
723
+ var strIndexOf = ( _unwrapFunction(INDEX_OF, StrProto));
724
+ ( _unwrapFunction(LAST_INDEX_OF, StrProto));
705
725
 
706
726
  var REF = "ref";
707
727
  var UNREF = "un" + REF;
@@ -1664,7 +1684,7 @@
1664
1684
  return result;
1665
1685
  }
1666
1686
 
1667
- var version = '3.1.0-nightly3.2401-04';
1687
+ var version = '3.1.0-nightly3.2401-08';
1668
1688
  var instanceName = "." + newId(6);
1669
1689
  var _dataUid = 0;
1670
1690
  function _canAcceptData(target) {
@@ -3493,7 +3513,7 @@
3493
3513
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
3494
3514
 
3495
3515
  var _a$1;
3496
- var Version = '4.1.0-nightly3.2401-04';
3516
+ var Version = '4.1.0-nightly3.2401-08';
3497
3517
  var FullVersionString = "1DS-Web-JS-" + Version;
3498
3518
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
3499
3519
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -5287,7 +5307,7 @@
5287
5307
  var _this = _super.call(this) || this;
5288
5308
  _this.identifier = "PostChannel";
5289
5309
  _this.priority = 1011;
5290
- _this.version = '4.1.0-nightly3.2401-04';
5310
+ _this.version = '4.1.0-nightly3.2401-08';
5291
5311
  var _postConfig;
5292
5312
  var _isTeardownCalled = false;
5293
5313
  var _flushCallbackQueue = [];