@microsoft/applicationinsights-web-basic 2.8.6 → 3.0.0-beta.2208-04

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.
package/browser/aib.2.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.6
2
+ * Application Insights JavaScript Web SDK - Basic, 3.0.0-beta.2208-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -389,10 +389,10 @@
389
389
  var _DYN_USER_AGENT = "userAgent";
390
390
  var _DYN_SPLIT$1 = "split";
391
391
  var _DYN_SET_ENABLED = "setEnabled";
392
+ var _DYN_REPLACE = "replace";
392
393
  var _DYN_SUBSTR = "substr";
393
394
  var _DYN_NODE_TYPE = "nodeType";
394
395
  var _DYN_APPLY = "apply";
395
- var _DYN_REPLACE = "replace";
396
396
  var _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
397
397
  var _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
398
398
  var _DYN_TO_LOWER_CASE$1 = "toLowerCase";
@@ -1537,7 +1537,7 @@
1537
1537
  }
1538
1538
 
1539
1539
  var _objDefineProperty = ObjDefineProperty;
1540
- var version = '2.8.6';
1540
+ var version = "3.0.0-beta.2208-04";
1541
1541
  var instanceName = "." + newId(6);
1542
1542
  var _dataUid = 0;
1543
1543
  function _createAccessor(target, prop, value) {
@@ -2026,8 +2026,13 @@
2026
2026
  var _cookieMgrs = null;
2027
2027
  var _canUseCookies;
2028
2028
  function newGuid() {
2029
- var uuid = generateW3CId();
2030
- return uuid[_DYN_SUBSTRING$1 ](0, 8) + "-" + uuid[_DYN_SUBSTRING$1 ](8, 12) + "-" + uuid[_DYN_SUBSTRING$1 ](12, 16) + "-" + uuid[_DYN_SUBSTRING$1 ](16, 20) + "-" + uuid[_DYN_SUBSTRING$1 ](20);
2029
+ function randomHexDigit() {
2030
+ return randomValue(15);
2031
+ }
2032
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_DYN_REPLACE ](GuidRegex, function (c) {
2033
+ var r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
2034
+ return v.toString(16);
2035
+ });
2031
2036
  }
2032
2037
  function perfNow() {
2033
2038
  var perf = getPerformance();
@@ -2090,6 +2095,7 @@
2090
2095
  mwcRandom32: mwcRandom32,
2091
2096
  generateW3CId: generateW3CId
2092
2097
  };
2098
+ var GuidRegex = /[xy]/g;
2093
2099
  function _legacyCookieMgr(config, logger) {
2094
2100
  var cookieMgr = _gblCookieMgr(config, logger);
2095
2101
  var legacyCanUseCookies = CoreUtils._canUseCookies;
@@ -5063,7 +5069,7 @@
5063
5069
  }
5064
5070
  }
5065
5071
  var EnvelopeCreator = {
5066
- Version: '2.8.6'
5072
+ Version: "3.0.0-beta.2208-04"
5067
5073
  };
5068
5074
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5069
5075
  EnvelopeCreatorInit(logger, telemetryItem);