@microsoft/1ds-post-js 4.4.3 → 4.4.4-nightly3.2608-02

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.3.gbl.js → ms.post-4.4.4-nightly3.2608-02.gbl.js} +21 -12
  2. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.4.3.js → ms.post-4.4.4-nightly3.2608-02.js} +21 -12
  7. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.js.map +1 -0
  8. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.min.js +7 -0
  9. package/bundle/es5/ms.post-4.4.4-nightly3.2608-02.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +20 -11
  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 +20 -11
  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 +18 -9
  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 +78 -75
  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.4.3.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.4.3.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.4.3.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.4.3.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.4.3.js.map +0 -1
  46. package/bundle/es5/ms.post-4.4.3.min.js +0 -7
  47. package/bundle/es5/ms.post-4.4.3.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.4.3
2
+ * 1DS JS SDK POST plugin, 4.4.4-nightly3.2608-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -19,7 +19,7 @@
19
19
  var strShimPrototype = "prototype";
20
20
  var ObjClass$1 = Object;
21
21
 
22
- /*! https://github.com/nevware21/ts-utils v0.15.0 */
22
+ /*! https://github.com/nevware21/ts-utils v0.16.0 */
23
23
  /*#__NO_SIDE_EFFECTS__*/
24
24
  function _pureAssign(func1, func2) {
25
25
  return func1 || func2;
@@ -402,6 +402,9 @@
402
402
  function fnApply(fn, thisArg, argArray) {
403
403
  return fn.apply(thisArg, argArray);
404
404
  }
405
+ function fnCall(fn, thisArg) {
406
+ return fn.apply(thisArg, ArrSlice[CALL](arguments, 2));
407
+ }
405
408
  var _globalLazyTestHooks;
406
409
  function _initTestHooks() {
407
410
  _globalLazyTestHooks = _getGlobalConfig();
@@ -689,9 +692,10 @@
689
692
  var theBaseClass = errorBase || Error;
690
693
  var orgName = theBaseClass[PROTOTYPE][NAME];
691
694
  var captureFn = Error.captureStackTrace;
692
- return _createCustomError(name, function () {
695
+ var ctorFn = function () {
693
696
  var _this = this;
694
697
  var theArgs = arguments;
698
+ var isOwnInstance = _this[CONSTRUCTOR] === ctorFn;
695
699
  try {
696
700
  safe(_setName, [theBaseClass, name]);
697
701
  var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
@@ -701,14 +705,19 @@
701
705
  objSetPrototypeOf(_self, orgProto);
702
706
  }
703
707
  }
704
- captureFn && captureFn(_self, _this[CONSTRUCTOR]);
705
- constructCb && constructCb(_self, theArgs);
708
+ if (isOwnInstance) {
709
+ captureFn && captureFn(_self, ctorFn);
710
+ }
711
+ if (constructCb) {
712
+ fnCall(constructCb, _self, _self, theArgs, isOwnInstance);
713
+ }
706
714
  return _self;
707
715
  }
708
716
  finally {
709
717
  safe(_setName, [theBaseClass, orgName]);
710
718
  }
711
- }, theBaseClass);
719
+ };
720
+ return _createCustomError(name, ctorFn, theBaseClass);
712
721
  }
713
722
  var strReplace = (/*#__PURE__*/_unwrapFunction("replace", StrProto));
714
723
  /*#__NO_SIDE_EFFECTS__*/
@@ -1995,7 +2004,7 @@
1995
2004
  return result;
1996
2005
  }
1997
2006
 
1998
- var version = "3.4.3";
2007
+ var version = "3.4.4-nightly3.2608-02";
1999
2008
  var instanceName = "." + newId(6);
2000
2009
  var _dataUid = 0;
2001
2010
  function _canAcceptData(target) {
@@ -4291,7 +4300,7 @@
4291
4300
  }
4292
4301
 
4293
4302
  var _a$1;
4294
- var ExtVersion = '4.4.3';
4303
+ var ExtVersion = '4.4.4-nightly3.2608-02';
4295
4304
  var ExtFullVersionString = "1DS-Web-JS-" + ExtVersion;
4296
4305
  var FullVersionString = ExtFullVersionString;
4297
4306
  var ObjHasOwnProperty = Object.prototype[_DYN_HAS_OWN_PROPERTY ];
@@ -6003,7 +6012,7 @@
6003
6012
  var _this = _super.call(this) || this;
6004
6013
  _this.identifier = "PostChannel";
6005
6014
  _this.priority = 1011;
6006
- _this.version = '4.4.3';
6015
+ _this.version = '4.4.4-nightly3.2608-02';
6007
6016
  var _postConfig;
6008
6017
  var _isTeardownCalled = false;
6009
6018
  var _flushCallbackQueue = [];