@microsoft/1ds-post-js 4.0.6 → 4.0.7

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.0.6.gbl.js → ms.post-4.0.7.gbl.js} +83 -100
  2. package/bundle/es5/ms.post-4.0.7.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.0.7.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.0.7.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.0.7.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.6.js → ms.post-4.0.7.js} +83 -100
  7. package/bundle/es5/ms.post-4.0.7.js.map +1 -0
  8. package/bundle/es5/ms.post-4.0.7.min.js +7 -0
  9. package/bundle/es5/ms.post-4.0.7.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +82 -99
  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 +82 -99
  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 +80 -97
  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 +66 -63
  39. package/types/1ds-post-js.d.ts +6 -2
  40. package/types/1ds-post-js.namespaced.d.ts +2247 -100
  41. package/bundle/es5/ms.post-4.0.6.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.0.6.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.0.6.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.0.6.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.0.6.js.map +0 -1
  46. package/bundle/es5/ms.post-4.0.6.min.js +0 -7
  47. package/bundle/es5/ms.post-4.0.6.min.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.0.6
2
+ * 1DS JS SDK POST plugin, 4.0.7
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_0_6", msMod="__ms$mod__";
9
- var mods={}, modDetail=mods[modName]={}, ver="4.0.6";
8
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_7", msMod="__ms$mod__";
9
+ var mods={}, modDetail=mods[modName]={}, ver="4.0.7";
10
10
  // Versioned namespace "oneDS4"
11
11
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
12
12
  // Global namespace "oneDS"
@@ -40,23 +40,16 @@ var ObjProto$1 = ObjClass$1[strShimPrototype];
40
40
  var UNDEF_VALUE = undefined;
41
41
  var NULL_VALUE = null;
42
42
  var EMPTY = "";
43
- var BOOLEAN = "boolean";
44
43
  var FUNCTION = "function";
45
- var NUMBER = "number";
46
44
  var OBJECT = "object";
47
45
  var PROTOTYPE = "prototype";
48
46
  var __PROTO__ = "__proto__";
49
- var STRING = "string";
50
47
  var UNDEFINED = "undefined";
51
48
  var CONSTRUCTOR = "constructor";
52
49
  var SYMBOL = "Symbol";
53
50
  var POLYFILL_TAG = "_polyfill";
54
- var INDEX_OF = "indexOf";
55
51
  var LENGTH = "length";
56
- var DONE = "done";
57
- var VALUE = "value";
58
52
  var NAME = "name";
59
- var SLICE = "slice";
60
53
  var CALL = "call";
61
54
  var TO_STRING = "toString";
62
55
  var ObjClass = Object;
@@ -66,6 +59,7 @@ var StrProto = StrCls[PROTOTYPE];
66
59
  var MathCls = Math;
67
60
  var ArrCls = Array;
68
61
  var ArrProto = ArrCls[PROTOTYPE];
62
+ var ArrSlice = ArrProto["slice"];
69
63
 
70
64
  function safe(func, argArray) {
71
65
  try {
@@ -100,7 +94,7 @@ function isStrictNullOrUndefined(value) {
100
94
  function isDefined(arg) {
101
95
  return !!arg || arg !== UNDEF_VALUE;
102
96
  }
103
- var isString = ( /*#__PURE__*/_createIs(STRING));
97
+ var isString = ( /*#__PURE__*/_createIs("string"));
104
98
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
105
99
  /*#__NO_SIDE_EFFECTS__*/
106
100
  function isObject(value) {
@@ -110,8 +104,8 @@ function isObject(value) {
110
104
  return !!value && typeof value === OBJECT;
111
105
  }
112
106
  var isArray = ArrCls.isArray;
113
- var isNumber = ( /*#__PURE__*/_createIs(NUMBER));
114
- var isBoolean = ( /*#__PURE__*/_createIs(BOOLEAN));
107
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
108
+ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
115
109
  /*#__NO_SIDE_EFFECTS__*/
116
110
  function isPromiseLike(value) {
117
111
  return !!(value && value.then && isFunction(value.then));
@@ -208,6 +202,7 @@ var asString = StrCls;
208
202
 
209
203
  var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
210
204
  var _globalCfg;
205
+ /*#__NO_SIDE_EFFECTS__*/
211
206
  function _getGlobalValue() {
212
207
  var result;
213
208
  if (typeof globalThis !== UNDEFINED) {
@@ -242,7 +237,7 @@ function dumpObj(object, format) {
242
237
  object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
243
238
  }
244
239
  try {
245
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === NUMBER) ? format : 4) : UNDEF_VALUE);
240
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
246
241
  propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
247
242
  }
248
243
  catch (e) {
@@ -251,18 +246,15 @@ function dumpObj(object, format) {
251
246
  return objType + ": " + propertyValueDump;
252
247
  }
253
248
 
254
- var _slice;
255
- var _unwrapInstFunction = _unwrapFunctionWithPoly;
256
249
  var _unwrapFunction = _unwrapFunctionWithPoly;
257
250
  /*#__NO_SIDE_EFFECTS__*/
258
251
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
259
- _slice = _slice || ArrProto[SLICE];
260
252
  var clsFn = clsProto && clsProto[funcName];
261
253
  return function (thisArg) {
262
254
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
263
255
  if (theFunc || polyFunc) {
264
256
  var theArgs = arguments;
265
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
257
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
266
258
  }
267
259
  throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
268
260
  };
@@ -270,7 +262,7 @@ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
270
262
 
271
263
  var mathMax = MathCls.max;
272
264
 
273
- var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
265
+ var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
274
266
 
275
267
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
276
268
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
@@ -342,7 +334,7 @@ function polyGetKnownSymbol(name) {
342
334
  var propMap = {
343
335
  e: "enumerable",
344
336
  c: "configurable",
345
- v: VALUE,
337
+ v: "value",
346
338
  w: "writable",
347
339
  g: "get",
348
340
  s: "set"
@@ -375,6 +367,7 @@ var _globalLazyTestHooks;
375
367
  function _initTestHooks() {
376
368
  _globalLazyTestHooks = _getGlobalConfig();
377
369
  }
370
+ /*#__NO_SIDE_EFFECTS__*/
378
371
  function getLazy(cb) {
379
372
  var lazyValue = {};
380
373
  !_globalLazyTestHooks && _initTestHooks();
@@ -412,10 +405,14 @@ function createCachedValue(value) {
412
405
 
413
406
  var WINDOW = "window";
414
407
  var _cachedGlobal;
415
- var _cachedWindow;
416
- var _cachedDocument;
417
- var _cachedNavigator;
418
- var _isNode;
408
+ function _getGlobalInstFn(getFn, theArgs) {
409
+ var cachedValue;
410
+ return function () {
411
+ !_globalLazyTestHooks && _initTestHooks();
412
+ (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
413
+ return cachedValue.v;
414
+ };
415
+ }
419
416
  /*#__NO_SIDE_EFFECTS__*/
420
417
  function lazySafeGetInst(name) {
421
418
  return getLazy(function () { return safe((getInst), [name]).v || UNDEF_VALUE; });
@@ -432,41 +429,25 @@ function getInst(name, useCached) {
432
429
  if (gbl && gbl[name]) {
433
430
  return gbl[name];
434
431
  }
435
- if (name === WINDOW && _cachedWindow) {
436
- return _cachedWindow.v;
432
+ if (name === WINDOW) {
433
+ return getWindow();
437
434
  }
438
435
  return NULL_VALUE;
439
436
  }
440
- /*#__NO_SIDE_EFFECTS__*/
441
- function getDocument() {
442
- !_globalLazyTestHooks && _initTestHooks();
443
- (!_cachedDocument || _globalLazyTestHooks.lzy) && (_cachedDocument = createCachedValue(safe((getInst), ["document"]).v));
444
- return _cachedDocument.v;
445
- }
437
+ var getDocument = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["document"]));
446
438
  /*#__NO_SIDE_EFFECTS__*/
447
439
  function hasWindow() {
448
440
  return !!getWindow();
449
441
  }
450
- /*#__NO_SIDE_EFFECTS__*/
451
- function getWindow() {
452
- !_globalLazyTestHooks && _initTestHooks();
453
- (!_cachedWindow || _globalLazyTestHooks.lzy) && (_cachedWindow = createCachedValue(safe((getInst), [WINDOW]).v));
454
- return _cachedWindow.v;
455
- }
442
+ var getWindow = ( /*#__PURE__*/_getGlobalInstFn(getInst, [WINDOW]));
456
443
  /*#__NO_SIDE_EFFECTS__*/
457
444
  function hasNavigator() {
458
445
  return !!getNavigator();
459
446
  }
460
- /*#__NO_SIDE_EFFECTS__*/
461
- function getNavigator() {
462
- !_globalLazyTestHooks && _initTestHooks();
463
- (!_cachedNavigator || _globalLazyTestHooks.lzy) && (_cachedNavigator = createCachedValue(safe((getInst), ["navigator"]).v));
464
- return _cachedNavigator.v;
465
- }
466
- function isNode() {
467
- !_isNode && (_isNode = createCachedValue(!!safe(function () { return (process && (process.versions || {}).node); }).v));
468
- return _isNode.v;
469
- }
447
+ var getNavigator = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["navigator"]));
448
+ var isNode = ( /*#__PURE__*/_getGlobalInstFn(function () {
449
+ return !!safe(function () { return (process && (process.versions || {}).node); }).v;
450
+ }));
470
451
 
471
452
  var _symbol;
472
453
  var _symbolFor;
@@ -527,8 +508,8 @@ function iterForOf(iter, callbackfn, thisArg) {
527
508
  var iterResult = void 0;
528
509
  try {
529
510
  var count = 0;
530
- while (!(iterResult = iter.next())[DONE]) {
531
- if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
511
+ while (!(iterResult = iter.next()).done) {
512
+ if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
532
513
  break;
533
514
  }
534
515
  count++;
@@ -543,7 +524,7 @@ function iterForOf(iter, callbackfn, thisArg) {
543
524
  }
544
525
  finally {
545
526
  try {
546
- if (iterResult && !iterResult[DONE]) {
527
+ if (iterResult && !iterResult.done) {
547
528
  iter.return && iter.return(iterResult);
548
529
  }
549
530
  }
@@ -557,7 +538,9 @@ function iterForOf(iter, callbackfn, thisArg) {
557
538
  }
558
539
  }
559
540
 
560
- var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
541
+ function fnApply(fn, thisArg, argArray) {
542
+ return fn.apply(thisArg, argArray);
543
+ }
561
544
 
562
545
  function arrAppend(target, elms) {
563
546
  if (!isUndefined(elms) && target) {
@@ -589,9 +572,11 @@ function arrForEach(theArray, callbackfn, thisArg) {
589
572
  }
590
573
  }
591
574
 
592
- var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
575
+ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
593
576
 
594
- var arrSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, ArrProto));
577
+ function arrSlice(theArray, start, end) {
578
+ return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
579
+ }
595
580
 
596
581
  var objCreate = ObjClass["create"] || polyObjCreate;
597
582
  /*#__NO_SIDE_EFFECTS__*/
@@ -621,6 +606,7 @@ function objSetPrototypeOf(obj, proto) {
621
606
  return fn(obj, proto);
622
607
  }
623
608
 
609
+ /*#__NO_SIDE_EFFECTS__*/
624
610
  function _createCustomError(name, d, b) {
625
611
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
626
612
  d = objSetPrototypeOf(d, b);
@@ -644,7 +630,7 @@ function createCustomError(name, constructCb, errorBase) {
644
630
  var theArgs = arguments;
645
631
  try {
646
632
  safe(_setName, [theBaseClass, name]);
647
- var _self = fnApply(theBaseClass, _this, ArrProto[SLICE][CALL](theArgs)) || _this;
633
+ var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
648
634
  if (_self !== _this) {
649
635
  var orgProto = objGetPrototypeOf(_this);
650
636
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -724,7 +710,7 @@ function perfNow() {
724
710
  return utcNow();
725
711
  }
726
712
 
727
- var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
713
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
728
714
 
729
715
  var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
730
716
  /*#__NO_SIDE_EFFECTS__*/
@@ -738,55 +724,51 @@ function polyStrStartsWith(value, searchString, position) {
738
724
  }
739
725
 
740
726
  var REF = "ref";
741
- var UNREF = "un" + REF;
727
+ var UNREF = "unref";
742
728
  var HAS_REF = "hasRef";
743
729
  var ENABLED = "enabled";
730
+ /*#__NO_SIDE_EFFECTS__*/
744
731
  function _createTimerHandler(startTimer, refreshFn, cancelFn) {
745
- var _a;
746
732
  var ref = true;
747
733
  var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;
748
734
  var theTimerHandler;
749
- var _unref = function () {
735
+ function _unref() {
750
736
  ref = false;
751
737
  timerId && timerId[UNREF] && timerId[UNREF]();
752
738
  return theTimerHandler;
753
- };
754
- var _ref = function () {
755
- ref = true;
756
- timerId && timerId[REF] && timerId[REF]();
739
+ }
740
+ function _cancel() {
741
+ timerId && cancelFn(timerId);
742
+ timerId = NULL_VALUE;
743
+ }
744
+ function _refresh() {
745
+ timerId = refreshFn(timerId);
746
+ if (!ref) {
747
+ _unref();
748
+ }
757
749
  return theTimerHandler;
750
+ }
751
+ function _setEnabled(value) {
752
+ !value && timerId && _cancel();
753
+ value && !timerId && _refresh();
754
+ }
755
+ theTimerHandler = {
756
+ cancel: _cancel,
757
+ refresh: _refresh
758
758
  };
759
- var _hasRef = function () {
759
+ theTimerHandler[HAS_REF] = function () {
760
760
  if (timerId && timerId[HAS_REF]) {
761
761
  return timerId[HAS_REF]();
762
762
  }
763
763
  return ref;
764
764
  };
765
- var _refresh = function () {
766
- timerId = refreshFn(timerId);
767
- if (!ref) {
768
- _unref();
769
- }
765
+ theTimerHandler[REF] = function () {
766
+ ref = true;
767
+ timerId && timerId[REF] && timerId[REF]();
770
768
  return theTimerHandler;
771
769
  };
772
- var _cancel = function () {
773
- timerId && cancelFn(timerId);
774
- timerId = NULL_VALUE;
775
- };
776
- var _setEnabled = function (value) {
777
- !value && timerId && _cancel();
778
- value && !timerId && _refresh();
779
- };
780
- theTimerHandler = (_a = {
781
- cancel: _cancel,
782
- refresh: _refresh
783
- },
784
- _a[HAS_REF] = _hasRef,
785
- _a[REF] = _ref,
786
- _a[UNREF] = _unref,
787
- _a[ENABLED] = false,
788
- _a);
789
- objDefineProp(theTimerHandler, ENABLED, {
770
+ theTimerHandler[UNREF] = _unref;
771
+ theTimerHandler = objDefineProp(theTimerHandler, ENABLED, {
790
772
  get: function () { return !!timerId; },
791
773
  set: _setEnabled
792
774
  });
@@ -798,7 +780,7 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
798
780
  };
799
781
  }
800
782
 
801
- function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
783
+ function _createTimeoutWith(startTimer, overrideFn, theArgs) {
802
784
  var isArr = isArray(overrideFn);
803
785
  var len = isArr ? overrideFn.length : 0;
804
786
  var setFn = (len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE)) || setTimeout;
@@ -806,7 +788,7 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
806
788
  var timerFn = theArgs[0];
807
789
  theArgs[0] = function () {
808
790
  handler.dn();
809
- fnApply(timerFn, self, ArrProto[SLICE][CALL](arguments));
791
+ fnApply(timerFn, UNDEF_VALUE, ArrSlice[CALL](arguments));
810
792
  };
811
793
  var handler = _createTimerHandler(startTimer, function (timerId) {
812
794
  if (timerId) {
@@ -814,19 +796,19 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
814
796
  timerId.refresh();
815
797
  return timerId;
816
798
  }
817
- fnApply(clearFn, self, [timerId]);
799
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
818
800
  }
819
- return fnApply(setFn, self, theArgs);
801
+ return fnApply(setFn, UNDEF_VALUE, theArgs);
820
802
  }, function (timerId) {
821
- fnApply(clearFn, self, [timerId]);
803
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
822
804
  });
823
805
  return handler.h;
824
806
  }
825
807
  function scheduleTimeout(callback, timeout) {
826
- return _createTimeoutWith(this, true, UNDEF_VALUE, ArrProto[SLICE][CALL](arguments));
808
+ return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));
827
809
  }
828
810
  function scheduleTimeoutWith(overrideFn, callback, timeout) {
829
- return _createTimeoutWith(this, true, overrideFn, ArrProto[SLICE][CALL](arguments, 1));
811
+ return _createTimeoutWith(true, overrideFn, ArrSlice[CALL](arguments, 1));
830
812
  }
831
813
 
832
814
  var strHasOwnProperty = "hasOwnProperty";
@@ -1138,7 +1120,7 @@ var _DYN_GET_PLUGIN = "getPlugin";
1138
1120
  var _DYN_NAME = "name";
1139
1121
  var _DYN_TIME = "time";
1140
1122
  var _DYN_PROCESS_NEXT = "processNext";
1141
- var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
1123
+ var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1142
1124
  var _DYN_UNLOAD = "unload";
1143
1125
  var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1144
1126
  var _DYN_CREATE_NEW = "createNew";
@@ -1700,7 +1682,7 @@ function newId(maxLength) {
1700
1682
  return result;
1701
1683
  }
1702
1684
 
1703
- var version = '3.0.8';
1685
+ var version = '3.0.9';
1704
1686
  var instanceName = "." + newId(6);
1705
1687
  var _dataUid = 0;
1706
1688
  function _canAcceptData(target) {
@@ -2259,6 +2241,7 @@ function _createAndUseHandler(state, configHandler) {
2259
2241
  configHandler = null;
2260
2242
  }
2261
2243
  };
2244
+ objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? "" : "[X]"); } });
2262
2245
  state.use(handler, configHandler);
2263
2246
  return handler;
2264
2247
  }
@@ -3215,7 +3198,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
3215
3198
  function _setDefaults(config, core, pluginChain) {
3216
3199
  createDynamicConfig(config, defaultValues, safeGetLogger(core));
3217
3200
  if (!pluginChain && core) {
3218
- pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 ]()[_DYN_GET_NEXT ]();
3201
+ pluginChain = core[_DYN_GET_PROCESS_TEL_CONT2 ]()[_DYN_GET_NEXT ]();
3219
3202
  }
3220
3203
  var nextPlugin = _nextPlugin;
3221
3204
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
@@ -3529,7 +3512,7 @@ var _DYN_LENGTH$1 = "length";
3529
3512
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
3530
3513
 
3531
3514
  var _a$1;
3532
- var Version = '4.0.6';
3515
+ var Version = '4.0.7';
3533
3516
  var FullVersionString = "1DS-Web-JS-" + Version;
3534
3517
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
3535
3518
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -5321,7 +5304,7 @@ var PostChannel = /** @class */ (function (_super) {
5321
5304
  var _this = _super.call(this) || this;
5322
5305
  _this.identifier = "PostChannel";
5323
5306
  _this.priority = 1011;
5324
- _this.version = '4.0.6';
5307
+ _this.version = '4.0.7';
5325
5308
  var _postConfig;
5326
5309
  var _isTeardownCalled = false;
5327
5310
  var _flushCallbackQueue = [];
@@ -6038,4 +6021,4 @@ exports.PostChannel = PostChannel;
6038
6021
  exports.RT_PROFILE = RT_PROFILE;
6039
6022
 
6040
6023
  }));
6041
- //# sourceMappingURL=ms.post-4.0.6.gbl.js.map
6024
+ //# sourceMappingURL=ms.post-4.0.7.gbl.js.map