@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
  (function (global, factory) {
6
6
  var undef = "undefined";
7
- var nsKey, key, nm, theExports = {}, modName = "es5_aib_3_3_4_nightly3_2409_15", msMod="__ms$mod__";
8
- var mods={}, modDetail=mods[modName]={}, ver="3.3.4-nightly3.2409-15";
7
+ var nsKey, key, nm, theExports = {}, modName = "es5_aib_3_3_4_nightly3_2409_17", msMod="__ms$mod__";
8
+ var mods={}, modDetail=mods[modName]={}, ver="3.3.4-nightly3.2409-17";
9
9
  var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
10
10
  // Versioned namespace "Microsoft.ApplicationInsights3"
11
11
  var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
@@ -26,7 +26,7 @@
26
26
  'use strict';
27
27
 
28
28
 
29
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
29
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
30
30
  /*#__NO_SIDE_EFFECTS__*/
31
31
  function _pureAssign(func1, func2) {
32
32
  return func1 || func2;
@@ -96,6 +96,10 @@ function isUndefined(value) {
96
96
  return typeof value === UNDEFINED || value === UNDEFINED;
97
97
  }
98
98
  /*#__NO_SIDE_EFFECTS__*/
99
+ function isStrictUndefined(arg) {
100
+ return !isDefined(arg);
101
+ }
102
+ /*#__NO_SIDE_EFFECTS__*/
99
103
  function isNullOrUndefined(value) {
100
104
  return value === NULL_VALUE || isUndefined(value);
101
105
  }
@@ -110,7 +114,7 @@ function isDefined(arg) {
110
114
  /*#__NO_SIDE_EFFECTS__*/
111
115
  function isPrimitiveType(theType) {
112
116
  !_primitiveTypes && (_primitiveTypes = ["string", "number", "boolean", UNDEFINED, "symbol", "bigint"]);
113
- return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;
117
+ return !!(theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1);
114
118
  }
115
119
  var isString = ( /*#__PURE__*/_createIs("string"));
116
120
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
@@ -178,7 +182,7 @@ function _createProp(value) {
178
182
  }
179
183
  }
180
184
  objForEachKey(value, function (key, value) {
181
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
185
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
182
186
  });
183
187
  return prop;
184
188
  }
@@ -213,7 +217,7 @@ function dumpObj(object, format) {
213
217
  }
214
218
  try {
215
219
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
216
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
220
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
217
221
  }
218
222
  catch (e) {
219
223
  propertyValueDump = " - " + dumpObj(e, format);
@@ -314,9 +318,9 @@ function _getGlobalConfig() {
314
318
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
315
319
  /*#__NO_SIDE_EFFECTS__*/
316
320
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
317
- var clsFn = clsProto && clsProto[funcName];
321
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
318
322
  return function (thisArg) {
319
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
323
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
320
324
  if (theFunc || polyFunc) {
321
325
  var theArgs = arguments;
322
326
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -433,24 +437,37 @@ function _getGlobalInstFn(getFn, theArgs) {
433
437
  var cachedValue;
434
438
  return function () {
435
439
  !_globalLazyTestHooks && _initTestHooks();
436
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
440
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
441
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
442
+ }
437
443
  return cachedValue.v;
438
444
  };
439
445
  }
440
- /*#__NO_SIDE_EFFECTS__*/
441
446
  function getGlobal(useCached) {
442
447
  !_globalLazyTestHooks && _initTestHooks();
443
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
448
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
449
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
450
+ }
444
451
  return _cachedGlobal.v;
445
452
  }
446
453
  /*#__NO_SIDE_EFFECTS__*/
447
454
  function getInst(name, useCached) {
448
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
455
+ var gbl;
456
+ if (!_cachedGlobal || useCached === false) {
457
+ gbl = getGlobal(useCached);
458
+ }
459
+ else {
460
+ gbl = _cachedGlobal.v;
461
+ }
449
462
  if (gbl && gbl[name]) {
450
463
  return gbl[name];
451
464
  }
452
465
  if (name === WINDOW) {
453
- return getWindow();
466
+ try {
467
+ return window;
468
+ }
469
+ catch (e) {
470
+ }
454
471
  }
455
472
  return NULL_VALUE;
456
473
  }
@@ -524,7 +541,7 @@ function iterForOf(iter, callbackfn, thisArg) {
524
541
  if (iter) {
525
542
  if (!isIterator(iter)) {
526
543
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
527
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
544
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
528
545
  }
529
546
  if (isIterator(iter)) {
530
547
  var err = UNDEF_VALUE;
@@ -594,7 +611,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
594
611
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
595
612
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
596
613
  function arrSlice(theArray, start, end) {
597
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
614
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
598
615
  }
599
616
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
600
617
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
@@ -707,7 +724,7 @@ function isPlainObject(value) {
707
724
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
708
725
  proto = proto[CONSTRUCTOR];
709
726
  }
710
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
727
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
711
728
  }
712
729
  }
713
730
  catch (ex) {
@@ -752,12 +769,14 @@ function _deepCopy(visitMap, value, ctx, key) {
752
769
  };
753
770
  var theType = typeof value;
754
771
  var isPlain = false;
755
- var isPrim = false;
756
- if (value && theType === OBJECT) {
757
- isPlain = isPlainObject(value);
758
- }
759
- else {
760
- isPrim = value === NULL_VALUE || isPrimitiveType(theType);
772
+ var isPrim = value === NULL_VALUE;
773
+ if (!isPrim) {
774
+ if (value && theType === OBJECT) {
775
+ isPlain = isPlainObject(value);
776
+ }
777
+ else {
778
+ isPrim = isPrimitiveType(theType);
779
+ }
761
780
  }
762
781
  var details = {
763
782
  type: theType,
@@ -870,7 +889,7 @@ function polyStrEndsWith(value, searchString, length) {
870
889
  throwTypeError("'" + dumpObj(value) + "' is not a string");
871
890
  }
872
891
  var searchValue = isString(searchString) ? searchString : asString(searchString);
873
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
892
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
874
893
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
875
894
  }
876
895
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -1218,6 +1237,8 @@ var strShimPrototype = "prototype";
1218
1237
  var ObjClass = Object;
1219
1238
  var ObjProto = ObjClass[strShimPrototype];
1220
1239
 
1240
+ (getGlobal() || {})["Symbol"];
1241
+ (getGlobal() || {})["Reflect"];
1221
1242
  var strHasOwnProperty = "hasOwnProperty";
1222
1243
  var __objAssignFnImpl = function (t) {
1223
1244
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -2261,7 +2282,7 @@ function newId(maxLength) {
2261
2282
  return result;
2262
2283
  }
2263
2284
 
2264
- var version = '3.3.4-nightly3.2409-15';
2285
+ var version = '3.3.4-nightly3.2409-17';
2265
2286
  var instanceName = "." + newId(6);
2266
2287
  var _dataUid = 0;
2267
2288
  function _canAcceptData(target) {
@@ -7526,7 +7547,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
7526
7547
  }
7527
7548
  }
7528
7549
  var EnvelopeCreator = {
7529
- Version: '3.3.4-nightly3.2409-15'
7550
+ Version: '3.3.4-nightly3.2409-17'
7530
7551
  };
7531
7552
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
7532
7553
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -9217,4 +9238,4 @@ exports.proxyFunctions = proxyFunctions;
9217
9238
  exports.throwError = throwError;
9218
9239
 
9219
9240
  }));
9220
- //# sourceMappingURL=aib.3.3.4-nightly3.2409-15.gbl.js.map
9241
+ //# sourceMappingURL=aib.3.3.4-nightly3.2409-17.gbl.js.map