@microsoft/applicationinsights-debugplugin-js 3.4.2-nightly3.2605-06 → 3.4.2-nightly3.2605-11

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 (53) hide show
  1. package/browser/es5/{ai.dbg.3.4.2-nightly3.2605-06.cjs.js → ai.dbg.3.4.2-nightly3.2605-11.cjs.js} +63 -36
  2. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.cjs.js.map +1 -0
  3. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.cjs.min.js +6 -0
  4. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.cjs.min.js.map +1 -0
  5. package/browser/es5/{ai.dbg.3.4.2-nightly3.2605-06.gbl.js → ai.dbg.3.4.2-nightly3.2605-11.gbl.js} +65 -38
  6. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.gbl.js.map +1 -0
  7. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.gbl.min.js +6 -0
  8. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.gbl.min.js.map +1 -0
  9. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.integrity.json +66 -0
  10. package/browser/es5/{ai.dbg.3.4.2-nightly3.2605-06.js → ai.dbg.3.4.2-nightly3.2605-11.js} +65 -38
  11. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.js.map +1 -0
  12. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.min.js +6 -0
  13. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-11.min.js.map +1 -0
  14. package/browser/es5/ai.dbg.3.cjs.js +62 -35
  15. package/browser/es5/ai.dbg.3.cjs.js.map +1 -1
  16. package/browser/es5/ai.dbg.3.cjs.min.js +2 -2
  17. package/browser/es5/ai.dbg.3.cjs.min.js.map +1 -1
  18. package/browser/es5/ai.dbg.3.gbl.js +64 -37
  19. package/browser/es5/ai.dbg.3.gbl.js.map +1 -1
  20. package/browser/es5/ai.dbg.3.gbl.min.js +2 -2
  21. package/browser/es5/ai.dbg.3.gbl.min.js.map +1 -1
  22. package/browser/es5/ai.dbg.3.integrity.json +25 -25
  23. package/browser/es5/ai.dbg.3.js +64 -37
  24. package/browser/es5/ai.dbg.3.js.map +1 -1
  25. package/browser/es5/ai.dbg.3.min.js +2 -2
  26. package/browser/es5/ai.dbg.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-debugplugin-js.js +62 -35
  28. package/dist/es5/applicationinsights-debugplugin-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-debugplugin-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-debugplugin-js.min.js.map +1 -1
  31. package/dist-es5/DebugPlugin.js +1 -1
  32. package/dist-es5/__DynamicConstants.js +1 -1
  33. package/dist-es5/applicationinsights-debugplugin-js.js +1 -1
  34. package/dist-es5/components/Dashboard.js +1 -1
  35. package/dist-es5/components/LogEntry.js +1 -1
  36. package/dist-es5/components/debugBins.js +1 -1
  37. package/dist-es5/components/filterList.js +1 -1
  38. package/dist-es5/components/helpers.js +1 -1
  39. package/dist-es5/components/styleNodeSrc.js +1 -1
  40. package/dist-es5/interfaces/IDebugPluginConfig.js +1 -1
  41. package/package.json +3 -3
  42. package/types/applicationinsights-debugplugin-js.d.ts +1 -1
  43. package/types/applicationinsights-debugplugin-js.namespaced.d.ts +3 -1
  44. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.cjs.js.map +0 -1
  45. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.cjs.min.js +0 -6
  46. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.cjs.min.js.map +0 -1
  47. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.gbl.js.map +0 -1
  48. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.gbl.min.js +0 -6
  49. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.gbl.min.js.map +0 -1
  50. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.integrity.json +0 -66
  51. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.js.map +0 -1
  52. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.min.js +0 -6
  53. package/browser/es5/ai.dbg.3.4.2-nightly3.2605-06.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 3.4.2-nightly3.2605-06
2
+ * Application Insights JavaScript SDK - Debug Plugin, 3.4.2-nightly3.2605-11
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
@@ -11,14 +11,14 @@ var strShimUndefined = "undefined";
11
11
  var strShimPrototype = "prototype";
12
12
  var ObjClass$1 = Object;
13
13
 
14
- /*! https://github.com/nevware21/ts-utils v0.13.0 */
14
+ /*! https://github.com/nevware21/ts-utils v0.14.0 */
15
15
  /*#__NO_SIDE_EFFECTS__*/
16
16
  function _pureAssign(func1, func2) {
17
17
  return func1 || func2;
18
18
  }
19
19
  /*#__NO_SIDE_EFFECTS__*/
20
20
  function _pureRef(value, name) {
21
- return value[name];
21
+ return value !== null && value !== undefined ? value[name] : undefined;
22
22
  }
23
23
  var UNDEF_VALUE = undefined;
24
24
  var NULL_VALUE = null;
@@ -158,7 +158,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
158
158
  if (theObject && (isObject(theObject) || isFunction(theObject))) {
159
159
  for (var prop in theObject) {
160
160
  if (objHasOwn(theObject, prop)) {
161
- if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
161
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theObject : thisArg, prop, theObject[prop]) === -1) {
162
162
  break;
163
163
  }
164
164
  }
@@ -170,14 +170,14 @@ function arrForEach(theArray, callbackfn, thisArg) {
170
170
  var len = theArray[LENGTH] >>> 0;
171
171
  for (var idx = 0; idx < len; idx++) {
172
172
  if (idx in theArray) {
173
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
173
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? theArray : thisArg, theArray[idx], idx, theArray) === -1) {
174
174
  break;
175
175
  }
176
176
  }
177
177
  }
178
178
  }
179
179
  }
180
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
180
+ var _unwrapFunction = _unwrapFunctionWithPoly;
181
181
  /*#__NO_SIDE_EFFECTS__*/
182
182
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
183
183
  var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
@@ -544,7 +544,7 @@ function iterForOf(iter, callbackfn, thisArg) {
544
544
  try {
545
545
  var count = 0;
546
546
  while (!(iterResult = iter.next()).done) {
547
- if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
547
+ if (callbackfn[CALL](isStrictNullOrUndefined(thisArg) ? iter : thisArg, iterResult.value, count, iter) === -1) {
548
548
  break;
549
549
  }
550
550
  count++;
@@ -589,6 +589,7 @@ function arrAppend(target, elms) {
589
589
  return target;
590
590
  }
591
591
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
592
+ var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
592
593
  var _isProtoArray;
593
594
  var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
594
595
  function _polyObjSetPrototypeOf(obj, proto) {
@@ -637,7 +638,7 @@ function createCustomError(name, constructCb, errorBase, superArgsFn) {
637
638
  }
638
639
  }, theBaseClass);
639
640
  }
640
- var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
641
+ var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
641
642
  var _fnToString;
642
643
  var _objCtrFnString;
643
644
  var _gblWindow;
@@ -670,7 +671,6 @@ function isPlainObject(value) {
670
671
  }
671
672
  return result;
672
673
  }
673
- var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
674
674
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
675
675
  var REF = "ref";
676
676
  var UNREF = "unref";
@@ -813,9 +813,11 @@ var strFunction = 'function';
813
813
  var DynInstFuncTable = '_dynInstFuncs';
814
814
  var DynProxyTag = '_isDynProxy';
815
815
  var DynClassName = '_dynClass';
816
+ var DynBaseProtoFuncs = '_dynBaseFuncs';
816
817
  var DynClassNamePrefix = '_dynCls$';
817
818
  var DynInstChkTag = '_dynInstChk';
818
819
  var DynAllowInstChkTag = DynInstChkTag;
820
+ var DynResolvedCachePrefix = '_dyn_r$';
819
821
  var DynProtoDefaultOptions = '_dfOpts';
820
822
  var UnknownValue = '_unknown_';
821
823
  var str__Proto = "__proto__";
@@ -898,6 +900,25 @@ function _hasVisited(values, value) {
898
900
  }
899
901
  return false;
900
902
  }
903
+ function _getBaseProtoFuncs(classProto) {
904
+ if (objHasOwnProperty(classProto, DynBaseProtoFuncs)) {
905
+ return classProto[DynBaseProtoFuncs];
906
+ }
907
+ var baseFuncSources = objCreate(null);
908
+ var baseProto = _getObjProto$1(classProto);
909
+ var visited = [];
910
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
911
+ _forEachProp(baseProto, function (name) {
912
+ if (!baseFuncSources[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
913
+ baseFuncSources[name] = baseProto;
914
+ }
915
+ });
916
+ visited.push(baseProto);
917
+ baseProto = _getObjProto$1(baseProto);
918
+ }
919
+ classProto[DynBaseProtoFuncs] = baseFuncSources;
920
+ return baseFuncSources;
921
+ }
901
922
  function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
902
923
  function _instFuncProxy(target, funcHost, funcName) {
903
924
  var theFunc = funcHost[funcName];
@@ -915,16 +936,11 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
915
936
  _forEachProp(instFuncs, function (name) {
916
937
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
917
938
  });
918
- var baseProto = _getObjProto$1(classProto);
919
- var visited = [];
920
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
921
- _forEachProp(baseProto, function (name) {
922
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
923
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
924
- }
925
- });
926
- visited.push(baseProto);
927
- baseProto = _getObjProto$1(baseProto);
939
+ var baseFuncSources = _getBaseProtoFuncs(classProto);
940
+ for (var name_2 in baseFuncSources) {
941
+ if (!baseFuncs[name_2]) {
942
+ baseFuncs[name_2] = _instFuncProxy(thisTarget, baseFuncSources[name_2], name_2);
943
+ }
928
944
  }
929
945
  return baseFuncs;
930
946
  }
@@ -938,16 +954,18 @@ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
938
954
  }
939
955
  if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
940
956
  var canAddInst = !objHasOwnProperty(target, funcName);
941
- var objProto = _getObjProto$1(target);
942
- var visited = [];
943
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
944
- var protoFunc = objProto[funcName];
945
- if (protoFunc) {
946
- canAddInst = (protoFunc === currentDynProtoProxy);
947
- break;
957
+ if (canAddInst) {
958
+ var objProto = _getObjProto$1(target);
959
+ var visited = [];
960
+ while (objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
961
+ var protoFunc = objProto[funcName];
962
+ if (protoFunc) {
963
+ canAddInst = (protoFunc === currentDynProtoProxy);
964
+ break;
965
+ }
966
+ visited.push(objProto);
967
+ objProto = _getObjProto$1(objProto);
948
968
  }
949
- visited.push(objProto);
950
- objProto = _getObjProto$1(objProto);
951
969
  }
952
970
  try {
953
971
  if (canAddInst) {
@@ -974,25 +992,34 @@ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
974
992
  }
975
993
  function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
976
994
  function _createDynamicPrototype(proto, funcName) {
995
+ var cacheKey = DynResolvedCachePrefix + className + "." + funcName;
977
996
  var dynProtoProxy = function () {
978
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
997
+ var instFuncTable = this[DynInstFuncTable];
998
+ var instFunc = instFuncTable ? instFuncTable[cacheKey] : undefined;
999
+ if (!instFunc) {
1000
+ instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
1001
+ if (instFuncTable) {
1002
+ instFuncTable[cacheKey] = instFunc;
1003
+ }
1004
+ }
979
1005
  return instFunc.apply(this, arguments);
980
1006
  };
981
1007
  dynProtoProxy[DynProxyTag] = 1;
982
1008
  return dynProtoProxy;
983
1009
  }
984
1010
  if (!_isObjectOrArrayPrototype(proto)) {
985
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
986
- if (!_isObjectOrArrayPrototype(instFuncTable)) {
987
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
988
- if (instFuncTable[DynAllowInstChkTag] !== false) {
989
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1011
+ var instFuncTable_1 = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1012
+ if (!_isObjectOrArrayPrototype(instFuncTable_1)) {
1013
+ var instFuncs_1 = instFuncTable_1[className] = (instFuncTable_1[className] || objCreate(null));
1014
+ if (instFuncTable_1[DynAllowInstChkTag] !== false) {
1015
+ instFuncTable_1[DynAllowInstChkTag] = !!setInstanceFunc;
990
1016
  }
991
1017
  if (!_isObjectOrArrayPrototype(instFuncs_1)) {
992
1018
  _forEachProp(target, function (name) {
993
1019
  if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
994
1020
  instFuncs_1[name] = target[name];
995
1021
  delete target[name];
1022
+ delete instFuncTable_1[DynResolvedCachePrefix + className + "." + name];
996
1023
  if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
997
1024
  proto[name] = _createDynamicPrototype(proto, name);
998
1025
  }
@@ -1324,7 +1351,7 @@ function newId(maxLength) {
1324
1351
  return result;
1325
1352
  }
1326
1353
 
1327
- var version = '3.4.2-nightly3.2605-06';
1354
+ var version = "3.4.2-nightly3.2605-11";
1328
1355
  var instanceName = "." + newId(6);
1329
1356
  var _dataUid = 0;
1330
1357
  function _canAcceptData(target) {
@@ -4225,4 +4252,4 @@ var DebugPlugin = /** @class */ (function (_super) {
4225
4252
  var DebugPlugin$1 = DebugPlugin;
4226
4253
 
4227
4254
  exports.DebugPlugin = DebugPlugin$1;
4228
- //# sourceMappingURL=ai.dbg.3.4.2-nightly3.2605-06.cjs.js.map
4255
+ //# sourceMappingURL=ai.dbg.3.4.2-nightly3.2605-11.cjs.js.map