@microsoft/applicationinsights-common 3.3.4-nightly3.2409-15 → 3.3.4-nightly3.2409-18

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 (97) hide show
  1. package/browser/es5/applicationinsights-common.cjs.js +36 -15
  2. package/browser/es5/applicationinsights-common.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-common.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-common.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-common.gbl.js +38 -17
  6. package/browser/es5/applicationinsights-common.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-common.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-common.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-common.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-common.js +38 -17
  11. package/browser/es5/applicationinsights-common.js.map +1 -1
  12. package/browser/es5/applicationinsights-common.min.js +2 -2
  13. package/browser/es5/applicationinsights-common.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-common.js +36 -15
  15. package/dist/es5/applicationinsights-common.js.map +1 -1
  16. package/dist/es5/applicationinsights-common.min.js +2 -2
  17. package/dist/es5/applicationinsights-common.min.js.map +1 -1
  18. package/dist-es5/ConnectionStringParser.js +1 -1
  19. package/dist-es5/Constants.js +1 -1
  20. package/dist-es5/DomHelperFuncs.js +1 -1
  21. package/dist-es5/Enums.js +1 -1
  22. package/dist-es5/HelperFuncs.js +1 -1
  23. package/dist-es5/Interfaces/ConnectionString.js +1 -1
  24. package/dist-es5/Interfaces/Context/IApplication.js +1 -1
  25. package/dist-es5/Interfaces/Context/IDevice.js +1 -1
  26. package/dist-es5/Interfaces/Context/IInternal.js +1 -1
  27. package/dist-es5/Interfaces/Context/ILocation.js +1 -1
  28. package/dist-es5/Interfaces/Context/IOperatingSystem.js +1 -1
  29. package/dist-es5/Interfaces/Context/ISample.js +1 -1
  30. package/dist-es5/Interfaces/Context/ISession.js +1 -1
  31. package/dist-es5/Interfaces/Context/ISessionManager.js +1 -1
  32. package/dist-es5/Interfaces/Context/ITelemetryTrace.js +1 -1
  33. package/dist-es5/Interfaces/Context/IUser.js +1 -1
  34. package/dist-es5/Interfaces/Context/IWeb.js +1 -1
  35. package/dist-es5/Interfaces/Contracts/AvailabilityData.js +1 -1
  36. package/dist-es5/Interfaces/Contracts/ContextTagKeys.js +1 -1
  37. package/dist-es5/Interfaces/Contracts/DataPointType.js +1 -1
  38. package/dist-es5/Interfaces/Contracts/DependencyKind.js +1 -1
  39. package/dist-es5/Interfaces/Contracts/DependencySourceType.js +1 -1
  40. package/dist-es5/Interfaces/Contracts/IBase.js +1 -1
  41. package/dist-es5/Interfaces/Contracts/IData.js +1 -1
  42. package/dist-es5/Interfaces/Contracts/IDataPoint.js +1 -1
  43. package/dist-es5/Interfaces/Contracts/IDomain.js +1 -1
  44. package/dist-es5/Interfaces/Contracts/IEnvelope.js +1 -1
  45. package/dist-es5/Interfaces/Contracts/IEventData.js +1 -1
  46. package/dist-es5/Interfaces/Contracts/IExceptionData.js +1 -1
  47. package/dist-es5/Interfaces/Contracts/IExceptionDetails.js +1 -1
  48. package/dist-es5/Interfaces/Contracts/IMessageData.js +1 -1
  49. package/dist-es5/Interfaces/Contracts/IMetricData.js +1 -1
  50. package/dist-es5/Interfaces/Contracts/IPageViewData.js +1 -1
  51. package/dist-es5/Interfaces/Contracts/IPageViewPerfData.js +1 -1
  52. package/dist-es5/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
  53. package/dist-es5/Interfaces/Contracts/IStackFrame.js +1 -1
  54. package/dist-es5/Interfaces/Contracts/RequestData.js +1 -1
  55. package/dist-es5/Interfaces/Contracts/SeverityLevel.js +1 -1
  56. package/dist-es5/Interfaces/IAppInsights.js +1 -1
  57. package/dist-es5/Interfaces/IConfig.js +1 -1
  58. package/dist-es5/Interfaces/ICorrelationConfig.js +1 -1
  59. package/dist-es5/Interfaces/IDependencyTelemetry.js +1 -1
  60. package/dist-es5/Interfaces/IEventTelemetry.js +1 -1
  61. package/dist-es5/Interfaces/IExceptionTelemetry.js +1 -1
  62. package/dist-es5/Interfaces/IMetricTelemetry.js +1 -1
  63. package/dist-es5/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
  64. package/dist-es5/Interfaces/IPageViewTelemetry.js +1 -1
  65. package/dist-es5/Interfaces/IPartC.js +1 -1
  66. package/dist-es5/Interfaces/IPropertiesPlugin.js +1 -1
  67. package/dist-es5/Interfaces/IRequestContext.js +1 -1
  68. package/dist-es5/Interfaces/IStorageBuffer.js +1 -1
  69. package/dist-es5/Interfaces/ITelemetryContext.js +1 -1
  70. package/dist-es5/Interfaces/IThrottleMgr.js +1 -1
  71. package/dist-es5/Interfaces/ITraceTelemetry.js +1 -1
  72. package/dist-es5/Interfaces/PartAExtensions.js +1 -1
  73. package/dist-es5/Interfaces/Telemetry/IEnvelope.js +1 -1
  74. package/dist-es5/Interfaces/Telemetry/ISerializable.js +1 -1
  75. package/dist-es5/Offline.js +1 -1
  76. package/dist-es5/RequestResponseHeaders.js +1 -1
  77. package/dist-es5/StorageHelperFuncs.js +1 -1
  78. package/dist-es5/Telemetry/Common/Data.js +1 -1
  79. package/dist-es5/Telemetry/Common/DataPoint.js +1 -1
  80. package/dist-es5/Telemetry/Common/DataSanitizer.js +1 -1
  81. package/dist-es5/Telemetry/Common/Envelope.js +1 -1
  82. package/dist-es5/Telemetry/Event.js +1 -1
  83. package/dist-es5/Telemetry/Exception.js +1 -1
  84. package/dist-es5/Telemetry/Metric.js +1 -1
  85. package/dist-es5/Telemetry/PageView.js +1 -1
  86. package/dist-es5/Telemetry/PageViewPerformance.js +1 -1
  87. package/dist-es5/Telemetry/RemoteDependencyData.js +1 -1
  88. package/dist-es5/Telemetry/Trace.js +1 -1
  89. package/dist-es5/TelemetryItemCreator.js +1 -1
  90. package/dist-es5/ThrottleMgr.js +1 -1
  91. package/dist-es5/UrlHelperFuncs.js +1 -1
  92. package/dist-es5/Util.js +1 -1
  93. package/dist-es5/__DynamicConstants.js +1 -1
  94. package/dist-es5/applicationinsights-common.js +1 -1
  95. package/package.json +2 -2
  96. package/types/applicationinsights-common.d.ts +1 -1
  97. package/types/applicationinsights-common.namespaced.d.ts +1 -1
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Common, 3.3.4-nightly3.2409-15
2
+ * Application Insights JavaScript SDK - Common, 3.3.4-nightly3.2409-18
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;
@@ -69,6 +69,10 @@ function isUndefined(value) {
69
69
  return typeof value === UNDEFINED || value === UNDEFINED;
70
70
  }
71
71
  /*#__NO_SIDE_EFFECTS__*/
72
+ function isStrictUndefined(arg) {
73
+ return !isDefined(arg);
74
+ }
75
+ /*#__NO_SIDE_EFFECTS__*/
72
76
  function isNullOrUndefined(value) {
73
77
  return value === NULL_VALUE || isUndefined(value);
74
78
  }
@@ -131,7 +135,7 @@ function _createProp(value) {
131
135
  }
132
136
  }
133
137
  objForEachKey(value, function (key, value) {
134
- prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
138
+ prop[propMap[key]] = isStrictUndefined(value) ? prop[propMap[key]] : value;
135
139
  });
136
140
  return prop;
137
141
  }
@@ -166,7 +170,7 @@ function dumpObj(object, format) {
166
170
  }
167
171
  try {
168
172
  propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
169
- propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
173
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
170
174
  }
171
175
  catch (e) {
172
176
  propertyValueDump = " - " + dumpObj(e, format);
@@ -238,9 +242,9 @@ function _getGlobalConfig() {
238
242
  var _unwrapFunction = ( _unwrapFunctionWithPoly);
239
243
  /*#__NO_SIDE_EFFECTS__*/
240
244
  function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
241
- var clsFn = clsProto && clsProto[funcName];
245
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
242
246
  return function (thisArg) {
243
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
247
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
244
248
  if (theFunc || polyFunc) {
245
249
  var theArgs = arguments;
246
250
  return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
@@ -320,24 +324,37 @@ function _getGlobalInstFn(getFn, theArgs) {
320
324
  var cachedValue;
321
325
  return function () {
322
326
  !_globalLazyTestHooks && _initTestHooks();
323
- (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
327
+ if (!cachedValue || _globalLazyTestHooks.lzy) {
328
+ cachedValue = createCachedValue(safe(getFn, theArgs).v);
329
+ }
324
330
  return cachedValue.v;
325
331
  };
326
332
  }
327
- /*#__NO_SIDE_EFFECTS__*/
328
333
  function getGlobal(useCached) {
329
334
  !_globalLazyTestHooks && _initTestHooks();
330
- (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
335
+ if (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) {
336
+ _cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE);
337
+ }
331
338
  return _cachedGlobal.v;
332
339
  }
333
340
  /*#__NO_SIDE_EFFECTS__*/
334
341
  function getInst(name, useCached) {
335
- var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
342
+ var gbl;
343
+ if (!_cachedGlobal || useCached === false) {
344
+ gbl = getGlobal(useCached);
345
+ }
346
+ else {
347
+ gbl = _cachedGlobal.v;
348
+ }
336
349
  if (gbl && gbl[name]) {
337
350
  return gbl[name];
338
351
  }
339
352
  if (name === WINDOW) {
340
- return getWindow();
353
+ try {
354
+ return window;
355
+ }
356
+ catch (e) {
357
+ }
341
358
  }
342
359
  return NULL_VALUE;
343
360
  }
@@ -503,7 +520,7 @@ function isPlainObject(value) {
503
520
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
504
521
  proto = proto[CONSTRUCTOR];
505
522
  }
506
- result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
523
+ result = !!(proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString);
507
524
  }
508
525
  }
509
526
  catch (ex) {
@@ -515,7 +532,9 @@ var _perf;
515
532
  /*#__NO_SIDE_EFFECTS__*/
516
533
  function getPerformance() {
517
534
  !_globalLazyTestHooks && _initTestHooks();
518
- (!_perf || _globalLazyTestHooks.lzy) && (_perf = createCachedValue(safe((getInst), ["performance"]).v));
535
+ if (!_perf || _globalLazyTestHooks.lzy) {
536
+ _perf = createCachedValue(safe((getInst), ["performance"]).v);
537
+ }
519
538
  return _perf.v;
520
539
  }
521
540
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
@@ -525,7 +544,7 @@ function polyStrEndsWith(value, searchString, length) {
525
544
  throwTypeError("'" + dumpObj(value) + "' is not a string");
526
545
  }
527
546
  var searchValue = isString(searchString) ? searchString : asString(searchString);
528
- var end = !isUndefined(length) && length < value[LENGTH] ? length : value[LENGTH];
547
+ var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
529
548
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
530
549
  }
531
550
  var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
@@ -673,6 +692,8 @@ var strShimPrototype = "prototype";
673
692
  var ObjClass = Object;
674
693
  var ObjProto = ObjClass[strShimPrototype];
675
694
 
695
+ (getGlobal() || {})["Symbol"];
696
+ (getGlobal() || {})["Reflect"];
676
697
  var strHasOwnProperty = "hasOwnProperty";
677
698
  var __objAssignFnImpl = function (t) {
678
699
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -1164,7 +1185,7 @@ function newId(maxLength) {
1164
1185
  return result;
1165
1186
  }
1166
1187
 
1167
- var version = '3.3.4-nightly3.2409-15';
1188
+ var version = '3.3.4-nightly3.2409-18';
1168
1189
  var instanceName = "." + newId(6);
1169
1190
  var _dataUid = 0;
1170
1191
  function _canAcceptData(target) {