@microsoft/applicationinsights-web-basic 3.3.4-nightly3.2409-15 → 3.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 (45) hide show
  1. package/browser/es5/{aib.3.3.4-nightly3.2409-15.cjs.js → aib.3.3.4-nightly3.2409-17.cjs.js} +46 -25
  2. package/browser/es5/aib.3.3.4-nightly3.2409-17.cjs.js.map +1 -0
  3. package/browser/es5/aib.3.3.4-nightly3.2409-17.cjs.min.js +6 -0
  4. package/browser/es5/aib.3.3.4-nightly3.2409-17.cjs.min.js.map +1 -0
  5. package/browser/es5/{aib.3.3.4-nightly3.2409-15.gbl.js → aib.3.3.4-nightly3.2409-17.gbl.js} +48 -27
  6. package/browser/es5/aib.3.3.4-nightly3.2409-17.gbl.js.map +1 -0
  7. package/browser/es5/aib.3.3.4-nightly3.2409-17.gbl.min.js +6 -0
  8. package/browser/es5/aib.3.3.4-nightly3.2409-17.gbl.min.js.map +1 -0
  9. package/browser/es5/aib.3.3.4-nightly3.2409-17.integrity.json +66 -0
  10. package/browser/es5/{aib.3.3.4-nightly3.2409-15.js → aib.3.3.4-nightly3.2409-17.js} +48 -27
  11. package/browser/es5/aib.3.3.4-nightly3.2409-17.js.map +1 -0
  12. package/browser/es5/aib.3.3.4-nightly3.2409-17.min.js +6 -0
  13. package/browser/es5/aib.3.3.4-nightly3.2409-17.min.js.map +1 -0
  14. package/browser/es5/aib.3.cjs.js +45 -24
  15. package/browser/es5/aib.3.cjs.js.map +1 -1
  16. package/browser/es5/aib.3.cjs.min.js +2 -2
  17. package/browser/es5/aib.3.cjs.min.js.map +1 -1
  18. package/browser/es5/aib.3.gbl.js +47 -26
  19. package/browser/es5/aib.3.gbl.js.map +1 -1
  20. package/browser/es5/aib.3.gbl.min.js +2 -2
  21. package/browser/es5/aib.3.gbl.min.js.map +1 -1
  22. package/browser/es5/aib.3.integrity.json +25 -25
  23. package/browser/es5/aib.3.js +47 -26
  24. package/browser/es5/aib.3.js.map +1 -1
  25. package/browser/es5/aib.3.min.js +2 -2
  26. package/browser/es5/aib.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-web-basic.js +45 -24
  28. package/dist/es5/applicationinsights-web-basic.js.map +1 -1
  29. package/dist/es5/applicationinsights-web-basic.min.js +2 -2
  30. package/dist/es5/applicationinsights-web-basic.min.js.map +1 -1
  31. package/dist-es5/__DynamicConstants.js +1 -1
  32. package/dist-es5/index.js +1 -1
  33. package/package.json +4 -4
  34. package/types/applicationinsights-web-basic.d.ts +1 -1
  35. package/types/applicationinsights-web-basic.namespaced.d.ts +1 -1
  36. package/browser/es5/aib.3.3.4-nightly3.2409-15.cjs.js.map +0 -1
  37. package/browser/es5/aib.3.3.4-nightly3.2409-15.cjs.min.js +0 -6
  38. package/browser/es5/aib.3.3.4-nightly3.2409-15.cjs.min.js.map +0 -1
  39. package/browser/es5/aib.3.3.4-nightly3.2409-15.gbl.js.map +0 -1
  40. package/browser/es5/aib.3.3.4-nightly3.2409-15.gbl.min.js +0 -6
  41. package/browser/es5/aib.3.3.4-nightly3.2409-15.gbl.min.js.map +0 -1
  42. package/browser/es5/aib.3.3.4-nightly3.2409-15.integrity.json +0 -66
  43. package/browser/es5/aib.3.3.4-nightly3.2409-15.js.map +0 -1
  44. package/browser/es5/aib.3.3.4-nightly3.2409-15.min.js +0 -6
  45. package/browser/es5/aib.3.3.4-nightly3.2409-15.min.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 3.3.4-nightly3.2409-15
2
+ * Application Insights JavaScript Web SDK - Basic, 3.3.4-nightly3.2409-17
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  'use strict';
6
6
 
7
7
 
8
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
8
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
9
9
  /*#__NO_SIDE_EFFECTS__*/
10
10
  function _pureAssign(func1, func2) {
11
11
  return func1 || func2;
@@ -75,6 +75,10 @@ function isUndefined(value) {
75
75
  return typeof value === UNDEFINED || value === UNDEFINED;
76
76
  }
77
77
  /*#__NO_SIDE_EFFECTS__*/
78
+ function isStrictUndefined(arg) {
79
+ return !isDefined(arg);
80
+ }
81
+ /*#__NO_SIDE_EFFECTS__*/
78
82
  function isNullOrUndefined(value) {
79
83
  return value === NULL_VALUE || isUndefined(value);
80
84
  }
@@ -89,7 +93,7 @@ function isDefined(arg) {
89
93
  /*#__NO_SIDE_EFFECTS__*/
90
94
  function isPrimitiveType(theType) {
91
95
  !_primitiveTypes && (_primitiveTypes = ["string", "number", "boolean", UNDEFINED, "symbol", "bigint"]);
92
- return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;
96
+ return !!(theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1);
93
97
  }
94
98
  var isString = ( /*#__PURE__*/_createIs("string"));
95
99
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
@@ -157,7 +161,7 @@ function _createProp(value) {
157
161
  }
158
162
  }
159
163
  objForEachKey(value, function (key, value) {
160
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
164
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
161
165
  });
162
166
  return prop;
163
167
  }
@@ -192,7 +196,7 @@ function dumpObj(object, format) {
192
196
  }
193
197
  try {
194
198
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
195
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
199
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
196
200
  }
197
201
  catch (e) {
198
202
  propertyValueDump = " - " + dumpObj(e, format);
@@ -293,9 +297,9 @@ function _getGlobalConfig() {
293
297
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
294
298
  /*#__NO_SIDE_EFFECTS__*/
295
299
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
296
- var clsFn = clsProto && clsProto[funcName];
300
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
297
301
  return function (thisArg) {
298
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
302
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
299
303
  if (theFunc || polyFunc) {
300
304
  var theArgs = arguments;
301
305
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -412,24 +416,37 @@ function _getGlobalInstFn(getFn, theArgs) {
412
416
  var cachedValue;
413
417
  return function () {
414
418
  !_globalLazyTestHooks && _initTestHooks();
415
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
419
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
420
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
421
+ }
416
422
  return cachedValue.v;
417
423
  };
418
424
  }
419
- /*#__NO_SIDE_EFFECTS__*/
420
425
  function getGlobal(useCached) {
421
426
  !_globalLazyTestHooks && _initTestHooks();
422
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
427
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
428
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
429
+ }
423
430
  return _cachedGlobal.v;
424
431
  }
425
432
  /*#__NO_SIDE_EFFECTS__*/
426
433
  function getInst(name, useCached) {
427
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
434
+ var gbl;
435
+ if (!_cachedGlobal || useCached === false) {
436
+ gbl = getGlobal(useCached);
437
+ }
438
+ else {
439
+ gbl = _cachedGlobal.v;
440
+ }
428
441
  if (gbl && gbl[name]) {
429
442
  return gbl[name];
430
443
  }
431
444
  if (name === WINDOW) {
432
- return getWindow();
445
+ try {
446
+ return window;
447
+ }
448
+ catch (e) {
449
+ }
433
450
  }
434
451
  return NULL_VALUE;
435
452
  }
@@ -503,7 +520,7 @@ function iterForOf(iter, callbackfn, thisArg) {
503
520
  if (iter) {
504
521
  if (!isIterator(iter)) {
505
522
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
506
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
523
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
507
524
  }
508
525
  if (isIterator(iter)) {
509
526
  var err = UNDEF_VALUE;
@@ -573,7 +590,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
573
590
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
574
591
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
575
592
  function arrSlice(theArray, start, end) {
576
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
593
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
577
594
  }
578
595
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
579
596
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
@@ -686,7 +703,7 @@ function isPlainObject(value) {
686
703
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
687
704
  proto = proto[CONSTRUCTOR];
688
705
  }
689
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
706
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
690
707
  }
691
708
  }
692
709
  catch (ex) {
@@ -731,12 +748,14 @@ function _deepCopy(visitMap, value, ctx, key) {
731
748
  };
732
749
  var theType = typeof value;
733
750
  var isPlain = false;
734
- var isPrim = false;
735
- if (value && theType === OBJECT) {
736
- isPlain = isPlainObject(value);
737
- }
738
- else {
739
- isPrim = value === NULL_VALUE || isPrimitiveType(theType);
751
+ var isPrim = value === NULL_VALUE;
752
+ if (!isPrim) {
753
+ if (value && theType === OBJECT) {
754
+ isPlain = isPlainObject(value);
755
+ }
756
+ else {
757
+ isPrim = isPrimitiveType(theType);
758
+ }
740
759
  }
741
760
  var details = {
742
761
  type: theType,
@@ -849,7 +868,7 @@ function polyStrEndsWith(value, searchString, length) {
849
868
  throwTypeError("'" + dumpObj(value) + "' is not a string");
850
869
  }
851
870
  var searchValue = isString(searchString) ? searchString : asString(searchString);
852
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
871
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
853
872
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
854
873
  }
855
874
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -1197,6 +1216,8 @@ var strShimPrototype = "prototype";
1197
1216
  var ObjClass = Object;
1198
1217
  var ObjProto = ObjClass[strShimPrototype];
1199
1218
 
1219
+ (getGlobal() || {})["Symbol"];
1220
+ (getGlobal() || {})["Reflect"];
1200
1221
  var strHasOwnProperty = "hasOwnProperty";
1201
1222
  var __objAssignFnImpl = function (t) {
1202
1223
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -2240,7 +2261,7 @@ function newId(maxLength) {
2240
2261
  return result;
2241
2262
  }
2242
2263
 
2243
- var version = '3.3.4-nightly3.2409-15';
2264
+ var version = '3.3.4-nightly3.2409-17';
2244
2265
  var instanceName = "." + newId(6);
2245
2266
  var _dataUid = 0;
2246
2267
  function _canAcceptData(target) {
@@ -7505,7 +7526,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
7505
7526
  }
7506
7527
  }
7507
7528
  var EnvelopeCreator = {
7508
- Version: '3.3.4-nightly3.2409-15'
7529
+ Version: '3.3.4-nightly3.2409-17'
7509
7530
  };
7510
7531
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
7511
7532
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -9194,4 +9215,4 @@ exports.arrForEach = arrForEach;
9194
9215
  exports.isNullOrUndefined = isNullOrUndefined;
9195
9216
  exports.proxyFunctions = proxyFunctions;
9196
9217
  exports.throwError = throwError;
9197
- //# sourceMappingURL=aib.3.3.4-nightly3.2409-15.cjs.js.map
9218
+ //# sourceMappingURL=aib.3.3.4-nightly3.2409-17.cjs.js.map