@microsoft/applicationinsights-channel-js 2.8.9-nightly.2210-01 → 2.8.9-nightly.2210-02

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 JavaScript SDK Channel, 2.8.9-nightly.2210-01
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.9-nightly.2210-02
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 - Channel, 2.8.9-nightly.2210-01
2
+ * Application Insights JavaScript SDK - Channel, 2.8.9-nightly.2210-02
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -587,7 +587,7 @@
587
587
  }
588
588
  function strTrim(str) {
589
589
  if (str) {
590
- str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|\s+$/g, STR_EMPTY) : str);
590
+ str = (_strTrim && str[cStrTrim]) ? str[cStrTrim]() : (str[_DYN_REPLACE ] ? str[_DYN_REPLACE ](/^\s+|(?=\s)\s+$/g, STR_EMPTY) : str);
591
591
  }
592
592
  return str;
593
593
  }
@@ -1331,7 +1331,7 @@
1331
1331
  }
1332
1332
 
1333
1333
  var _objDefineProperty = ObjDefineProperty;
1334
- var version = "2.8.9-nightly.2210-01";
1334
+ var version = "2.8.9-nightly.2210-02";
1335
1335
  var instanceName = "." + newId(6);
1336
1336
  var _dataUid = 0;
1337
1337
  function _createAccessor(target, prop, value) {
@@ -1417,7 +1417,7 @@
1417
1417
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
1418
1418
  function _normalizeNamespace(name) {
1419
1419
  if (name && name[_DYN_REPLACE ]) {
1420
- return name.replace(/^\s*\.*|\.*\s*$/g, STR_EMPTY);
1420
+ return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY);
1421
1421
  }
1422
1422
  return name;
1423
1423
  }
@@ -2404,7 +2404,7 @@
2404
2404
  function urlParseHost(url, inclPort) {
2405
2405
  var fullHost = urlParseFullHost(url, inclPort) || "";
2406
2406
  if (fullHost) {
2407
- var match = fullHost.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);
2407
+ var match = fullHost.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);
2408
2408
  if (match != null && match[_DYN_LENGTH$1 ] > 3 && isString(match[2]) && match[2][_DYN_LENGTH$1 ] > 0) {
2409
2409
  return match[2] + (match[3] || "");
2410
2410
  }
@@ -2414,7 +2414,7 @@
2414
2414
  function urlParseFullHost(url, inclPort) {
2415
2415
  var result = null;
2416
2416
  if (url) {
2417
- var match = url.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);
2417
+ var match = url.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);
2418
2418
  if (match != null && match[_DYN_LENGTH$1 ] > 2 && isString(match[2]) && match[2][_DYN_LENGTH$1 ] > 0) {
2419
2419
  result = match[2] || "";
2420
2420
  if (inclPort && match[_DYN_LENGTH$1 ] > 2) {
@@ -3416,7 +3416,7 @@
3416
3416
  }
3417
3417
  }
3418
3418
  var EnvelopeCreator = {
3419
- Version: "2.8.9-nightly.2210-01"
3419
+ Version: "2.8.9-nightly.2210-02"
3420
3420
  };
3421
3421
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3422
3422
  EnvelopeCreatorInit(logger, telemetryItem);