@microsoft/applicationinsights-react-js 19.4.2-nightly.2607-01 → 19.4.2-nightly.2608-01

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 19.4.2-nightly.2607-01
2
+ * Application Insights JavaScript SDK - React Plugin, 19.4.2-nightly.2608-01
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -38,7 +38,7 @@
38
38
  var ObjClass$1 = Object;
39
39
  var ObjProto$1 = ObjClass$1[strShimPrototype];
40
40
 
41
- /*! https://github.com/nevware21/ts-utils v0.15.0 */
41
+ /*! https://github.com/nevware21/ts-utils v0.16.0 */
42
42
  function _pureAssign(func1, func2) {
43
43
  return func1 || func2;
44
44
  }
@@ -966,9 +966,10 @@
966
966
  var theBaseClass = errorBase || Error;
967
967
  var orgName = theBaseClass[PROTOTYPE][NAME];
968
968
  var captureFn = Error.captureStackTrace;
969
- return _createCustomError(name, function () {
969
+ var ctorFn = function () {
970
970
  var _this = this;
971
971
  var theArgs = arguments;
972
+ var isOwnInstance = _this[CONSTRUCTOR] === ctorFn;
972
973
  try {
973
974
  safe(_setName, [theBaseClass, name]);
974
975
  var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
@@ -978,14 +979,19 @@
978
979
  objSetPrototypeOf(_self, orgProto);
979
980
  }
980
981
  }
981
- captureFn && captureFn(_self, _this[CONSTRUCTOR]);
982
- constructCb && constructCb(_self, theArgs);
982
+ if (isOwnInstance) {
983
+ captureFn && captureFn(_self, ctorFn);
984
+ }
985
+ if (constructCb) {
986
+ fnCall(constructCb, _self, _self, theArgs, isOwnInstance);
987
+ }
983
988
  return _self;
984
989
  }
985
990
  finally {
986
991
  safe(_setName, [theBaseClass, orgName]);
987
992
  }
988
- }, theBaseClass);
993
+ };
994
+ return _createCustomError(name, ctorFn, theBaseClass);
989
995
  }
990
996
  var strReplace = (_unwrapFunction("replace", StrProto));
991
997
  function _createTrimFn(exp) {
@@ -2024,7 +2030,7 @@
2024
2030
  return result;
2025
2031
  }
2026
2032
 
2027
- var version = "3.4.3-nightly3.2606-08";
2033
+ var version = "3.4.4-nightly3.2607-03";
2028
2034
  var instanceName = "." + newId(6);
2029
2035
  var _dataUid = 0;
2030
2036
  function _canAcceptData(target) {