@microsoft/applicationinsights-dependencies-js 2.8.9-nightly.2210-01 → 2.8.9-nightly.2210-03

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights XHR dependencies plugin, 2.8.9-nightly.2210-01
2
+ * Microsoft Application Insights XHR dependencies plugin, 2.8.9-nightly.2210-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.9-nightly.2210-01
2
+ * Application Insights JavaScript SDK - Dependencies Plugin, 2.8.9-nightly.2210-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -572,7 +572,7 @@
572
572
  }
573
573
  function strTrim(str) {
574
574
  if (str) {
575
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|\s+$/g, STR_EMPTY) : str);
575
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|(?=\s)\s+$/g, STR_EMPTY) : str);
576
576
  }
577
577
  return str;
578
578
  }
@@ -1256,7 +1256,7 @@
1256
1256
  }
1257
1257
 
1258
1258
  var _objDefineProperty = ObjDefineProperty;
1259
- var version = "2.8.9-nightly.2210-01";
1259
+ var version = "2.8.9-nightly.2210-03";
1260
1260
  var instanceName = "." + newId(6);
1261
1261
  var _dataUid = 0;
1262
1262
  function _createAccessor(target, prop, value) {
@@ -1340,7 +1340,7 @@
1340
1340
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
1341
1341
  function _normalizeNamespace(name) {
1342
1342
  if (name && name[_DYN_REPLACE ]) {
1343
- return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
1343
+ return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY);
1344
1344
  }
1345
1345
  return name;
1346
1346
  }
@@ -2419,7 +2419,7 @@
2419
2419
  function urlParseHost(url, inclPort) {
2420
2420
  var fullHost = urlParseFullHost(url, inclPort) || "";
2421
2421
  if (fullHost) {
2422
- var match = fullHost.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);
2422
+ var match = fullHost.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);
2423
2423
  if (match != null && match[_DYN_LENGTH$1 ] > 3 && isString(match[2]) && match[2][_DYN_LENGTH$1 ] > 0) {
2424
2424
  return match[2] + (match[3] || "");
2425
2425
  }
@@ -2429,7 +2429,7 @@
2429
2429
  function urlParseFullHost(url, inclPort) {
2430
2430
  var result = null;
2431
2431
  if (url) {
2432
- var match = url.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);
2432
+ var match = url.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);
2433
2433
  if (match != null && match[_DYN_LENGTH$1 ] > 2 && isString(match[2]) && match[2][_DYN_LENGTH$1 ] > 0) {
2434
2434
  result = match[2] || "";
2435
2435
  if (inclPort && match[_DYN_LENGTH$1 ] > 2) {