@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,5 +1,5 @@
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) {
@@ -8,7 +8,7 @@
8
8
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights = global.Microsoft.ApplicationInsights || {})));
9
9
  })(this, (function (exports) { 'use strict';
10
10
 
11
- /*! https://github.com/nevware21/ts-utils v0.11.3 */
11
+ /*! https://github.com/nevware21/ts-utils v0.11.4 */
12
12
  /*#__NO_SIDE_EFFECTS__*/
13
13
  function _pureAssign(func1, func2) {
14
14
  return func1 || func2;
@@ -78,6 +78,10 @@
78
78
  return typeof value === UNDEFINED || value === UNDEFINED;
79
79
  }
80
80
  /*#__NO_SIDE_EFFECTS__*/
81
+ function isStrictUndefined(arg) {
82
+ return !isDefined(arg);
83
+ }
84
+ /*#__NO_SIDE_EFFECTS__*/
81
85
  function isNullOrUndefined(value) {
82
86
  return value === NULL_VALUE || isUndefined(value);
83
87
  }
@@ -92,7 +96,7 @@
92
96
  /*#__NO_SIDE_EFFECTS__*/
93
97
  function isPrimitiveType(theType) {
94
98
  !_primitiveTypes && (_primitiveTypes = ["string", "number", "boolean", UNDEFINED, "symbol", "bigint"]);
95
- return theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1;
99
+ return !!(theType !== OBJECT && _primitiveTypes.indexOf(theType) !== -1);
96
100
  }
97
101
  var isString = ( /*#__PURE__*/_createIs("string"));
98
102
  var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
@@ -160,7 +164,7 @@
160
164
  }
161
165
  }
162
166
  objForEachKey(value, function (key, value) {
163
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
167
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
164
168
  });
165
169
  return prop;
166
170
  }
@@ -195,7 +199,7 @@
195
199
  }
196
200
  try {
197
201
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
198
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
202
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
199
203
  }
200
204
  catch (e) {
201
205
  propertyValueDump = " - " + dumpObj(e, format);
@@ -296,9 +300,9 @@
296
300
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
297
301
  /*#__NO_SIDE_EFFECTS__*/
298
302
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
299
- var clsFn = clsProto && clsProto[funcName];
303
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
300
304
  return function (thisArg) {
301
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
305
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
302
306
  if (theFunc || polyFunc) {
303
307
  var theArgs = arguments;
304
308
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -415,24 +419,37 @@
415
419
  var cachedValue;
416
420
  return function () {
417
421
  !_globalLazyTestHooks && _initTestHooks();
418
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
422
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
423
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
424
+ }
419
425
  return cachedValue.v;
420
426
  };
421
427
  }
422
- /*#__NO_SIDE_EFFECTS__*/
423
428
  function getGlobal(useCached) {
424
429
  !_globalLazyTestHooks && _initTestHooks();
425
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
430
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
431
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
432
+ }
426
433
  return _cachedGlobal.v;
427
434
  }
428
435
  /*#__NO_SIDE_EFFECTS__*/
429
436
  function getInst(name, useCached) {
430
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
437
+ var gbl;
438
+ if (!_cachedGlobal || useCached === false) {
439
+ gbl = getGlobal(useCached);
440
+ }
441
+ else {
442
+ gbl = _cachedGlobal.v;
443
+ }
431
444
  if (gbl && gbl[name]) {
432
445
  return gbl[name];
433
446
  }
434
447
  if (name === WINDOW) {
435
- return getWindow();
448
+ try {
449
+ return window;
450
+ }
451
+ catch (e) {
452
+ }
436
453
  }
437
454
  return NULL_VALUE;
438
455
  }
@@ -506,7 +523,7 @@
506
523
  if (iter) {
507
524
  if (!isIterator(iter)) {
508
525
  !_iterSymbol$1 && (_iterSymbol$1 = createCachedValue(getKnownSymbol(3 )));
509
- iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : null;
526
+ iter = iter[_iterSymbol$1.v] ? iter[_iterSymbol$1.v]() : NULL_VALUE;
510
527
  }
511
528
  if (isIterator(iter)) {
512
529
  var err = UNDEF_VALUE;
@@ -576,7 +593,7 @@
576
593
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
577
594
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
578
595
  function arrSlice(theArray, start, end) {
579
- return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
596
+ return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
580
597
  }
581
598
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
582
599
  var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
@@ -689,7 +706,7 @@
689
706
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
690
707
  proto = proto[CONSTRUCTOR];
691
708
  }
692
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
709
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
693
710
  }
694
711
  }
695
712
  catch (ex) {
@@ -734,12 +751,14 @@
734
751
  };
735
752
  var theType = typeof value;
736
753
  var isPlain = false;
737
- var isPrim = false;
738
- if (value && theType === OBJECT) {
739
- isPlain = isPlainObject(value);
740
- }
741
- else {
742
- isPrim = value === NULL_VALUE || isPrimitiveType(theType);
754
+ var isPrim = value === NULL_VALUE;
755
+ if (!isPrim) {
756
+ if (value && theType === OBJECT) {
757
+ isPlain = isPlainObject(value);
758
+ }
759
+ else {
760
+ isPrim = isPrimitiveType(theType);
761
+ }
743
762
  }
744
763
  var details = {
745
764
  type: theType,
@@ -852,7 +871,7 @@
852
871
  throwTypeError("'" + dumpObj(value) + "' is not a string");
853
872
  }
854
873
  var searchValue = isString(searchString) ? searchString : asString(searchString);
855
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
874
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
856
875
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
857
876
  }
858
877
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -1200,6 +1219,8 @@
1200
1219
  var ObjClass = Object;
1201
1220
  var ObjProto = ObjClass[strShimPrototype];
1202
1221
 
1222
+ (getGlobal() || {})["Symbol"];
1223
+ (getGlobal() || {})["Reflect"];
1203
1224
  var strHasOwnProperty = "hasOwnProperty";
1204
1225
  var __objAssignFnImpl = function (t) {
1205
1226
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -2243,7 +2264,7 @@
2243
2264
  return result;
2244
2265
  }
2245
2266
 
2246
- var version = '3.3.4-nightly3.2409-15';
2267
+ var version = '3.3.4-nightly3.2409-17';
2247
2268
  var instanceName = "." + newId(6);
2248
2269
  var _dataUid = 0;
2249
2270
  function _canAcceptData(target) {
@@ -7508,7 +7529,7 @@
7508
7529
  }
7509
7530
  }
7510
7531
  var EnvelopeCreator = {
7511
- Version: '3.3.4-nightly3.2409-15'
7532
+ Version: '3.3.4-nightly3.2409-17'
7512
7533
  };
7513
7534
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
7514
7535
  EnvelopeCreatorInit(logger, telemetryItem);