@microsoft/1ds-post-js 4.3.3 → 4.3.4-nightly3.2409-17

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.3.3.gbl.js → ms.post-4.3.4-nightly3.2409-17.gbl.js} +39 -20
  2. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.3.3.js → ms.post-4.3.4-nightly3.2409-17.js} +39 -20
  7. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.js.map +1 -0
  8. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.min.js +7 -0
  9. package/bundle/es5/ms.post-4.3.4-nightly3.2409-17.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +38 -19
  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 +38 -19
  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 +36 -17
  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 +1 -1
  40. package/types/1ds-post-js.namespaced.d.ts +1 -1
  41. package/bundle/es5/ms.post-4.3.3.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.3.3.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.3.3.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.3.3.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.3.3.js.map +0 -1
  46. package/bundle/es5/ms.post-4.3.3.min.js +0 -7
  47. package/bundle/es5/ms.post-4.3.3.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.3.3
2
+ * 1DS JS SDK POST plugin, 4.3.4-nightly3.2409-17
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -20,7 +20,7 @@
20
20
  var ObjClass$1 = Object;
21
21
  var ObjProto$1 = ObjClass$1[strShimPrototype];
22
22
 
23
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
23
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
24
24
  /*#__NO_SIDE_EFFECTS__*/
25
25
  function _pureAssign(func1, func2) {
26
26
  return func1 || func2;
@@ -73,6 +73,10 @@
73
73
  return typeof value === UNDEFINED || value === UNDEFINED;
74
74
  }
75
75
  /*#__NO_SIDE_EFFECTS__*/
76
+ function isStrictUndefined(arg) {
77
+ return !isDefined(arg);
78
+ }
79
+ /*#__NO_SIDE_EFFECTS__*/
76
80
  function isNullOrUndefined(value) {
77
81
  return value === NULL_VALUE || isUndefined(value);
78
82
  }
@@ -144,7 +148,7 @@
144
148
  }
145
149
  }
146
150
  objForEachKey(value, function (key, value) {
147
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
151
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
148
152
  });
149
153
  return prop;
150
154
  }
@@ -179,7 +183,7 @@
179
183
  }
180
184
  try {
181
185
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
182
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
186
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
183
187
  }
184
188
  catch (e) {
185
189
  propertyValueDump = " - " + dumpObj(e, format);
@@ -264,9 +268,9 @@
264
268
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
265
269
  /*#__NO_SIDE_EFFECTS__*/
266
270
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
267
- var clsFn = clsProto && clsProto[funcName];
271
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
268
272
  return function (thisArg) {
269
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
273
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
270
274
  if (theFunc || polyFunc) {
271
275
  var theArgs = arguments;
272
276
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -357,24 +361,37 @@
357
361
  var cachedValue;
358
362
  return function () {
359
363
  !_globalLazyTestHooks && _initTestHooks();
360
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
364
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
365
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
366
+ }
361
367
  return cachedValue.v;
362
368
  };
363
369
  }
364
- /*#__NO_SIDE_EFFECTS__*/
365
370
  function getGlobal(useCached) {
366
371
  !_globalLazyTestHooks && _initTestHooks();
367
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
372
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
373
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
374
+ }
368
375
  return _cachedGlobal.v;
369
376
  }
370
377
  /*#__NO_SIDE_EFFECTS__*/
371
378
  function getInst(name, useCached) {
372
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
379
+ var gbl;
380
+ if (!_cachedGlobal || useCached === false) {
381
+ gbl = getGlobal(useCached);
382
+ }
383
+ else {
384
+ gbl = _cachedGlobal.v;
385
+ }
373
386
  if (gbl && gbl[name]) {
374
387
  return gbl[name];
375
388
  }
376
389
  if (name === WINDOW) {
377
- return getWindow();
390
+ try {
391
+ return window;
392
+ }
393
+ catch (e) {
394
+ }
378
395
  }
379
396
  return NULL_VALUE;
380
397
  }
@@ -444,7 +461,7 @@
444
461
  if (iter) {
445
462
  if (!isIterator(iter)) {
446
463
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
447
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
464
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
448
465
  }
449
466
  if (isIterator(iter)) {
450
467
  var err = UNDEF_VALUE;
@@ -513,7 +530,7 @@
513
530
  }
514
531
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
515
532
  function arrSlice(theArray, start, end) {
516
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
533
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
517
534
  }
518
535
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
519
536
  /*#__NO_SIDE_EFFECTS__*/
@@ -625,7 +642,7 @@
625
642
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
626
643
  proto = proto[CONSTRUCTOR];
627
644
  }
628
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
645
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
629
646
  }
630
647
  }
631
648
  catch (ex) {
@@ -735,6 +752,8 @@
735
752
  return _createTimeoutWith(true, overrideFn, ArrSlice[CALL](arguments, 1));
736
753
  }
737
754
 
755
+ (getGlobal() || {})["Symbol"];
756
+ (getGlobal() || {})["Reflect"];
738
757
  var strHasOwnProperty = "hasOwnProperty";
739
758
  var extendStaticsFn = function (d, b) {
740
759
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -1794,7 +1813,7 @@
1794
1813
  return result;
1795
1814
  }
1796
1815
 
1797
- var version = '3.3.3';
1816
+ var version = '3.3.4-nightly3.2409-17';
1798
1817
  var instanceName = "." + newId(6);
1799
1818
  var _dataUid = 0;
1800
1819
  function _canAcceptData(target) {
@@ -4065,7 +4084,7 @@
4065
4084
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
4066
4085
 
4067
4086
  var _a$1;
4068
- var Version = '4.3.3';
4087
+ var Version = '4.3.4-nightly3.2409-17';
4069
4088
  var FullVersionString = "1DS-Web-JS-" + Version;
4070
4089
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
4071
4090
  var _fieldTypeEventPropMap = (_a$1 = {},
@@ -5758,7 +5777,7 @@
5758
5777
  var _this = _super.call(this) || this;
5759
5778
  _this.identifier = "PostChannel";
5760
5779
  _this.priority = 1011;
5761
- _this.version = '4.3.3';
5780
+ _this.version = '4.3.4-nightly3.2409-17';
5762
5781
  var _postConfig;
5763
5782
  var _isTeardownCalled = false;
5764
5783
  var _flushCallbackQueue = [];