@microsoft/applicationinsights-channel-js 2.8.0-beta.2203-08 → 2.8.0-beta.2203-09

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.0-beta.2203-08
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-09
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.0-beta.2203-08
2
+ * Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1849,6 +1849,8 @@
1849
1849
  var strEvents = "events";
1850
1850
  createUniqueNamespace("aiEvtPageHide");
1851
1851
  createUniqueNamespace("aiEvtPageShow");
1852
+ var rRemoveEmptyNs = /\.[\.]+/g;
1853
+ var rRemoveTrailingEmptyNs = /[\.]+$/;
1852
1854
  var _guid = 1;
1853
1855
  var elmNodeData = createElmNodeData("events");
1854
1856
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
@@ -1886,7 +1888,7 @@
1886
1888
  var parsedEvent = (eventNamespace.exec(eventName) || []);
1887
1889
  return {
1888
1890
  type: parsedEvent[1],
1889
- ns: ((parsedEvent[2] || "").split(".").sort()).join(".")
1891
+ ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
1890
1892
  };
1891
1893
  }
1892
1894
  function _getRegisteredEvents(target, evtName, addDefault) {
@@ -1959,6 +1961,7 @@
1959
1961
  else {
1960
1962
  newNamespaces = [theNamespace, namespaces];
1961
1963
  }
1964
+ newNamespaces = (_getEvtNamespace("xx", newNamespaces).ns).split(".");
1962
1965
  }
1963
1966
  else {
1964
1967
  newNamespaces = theNamespace;
@@ -3586,7 +3589,7 @@
3586
3589
  }
3587
3590
  }
3588
3591
  var EnvelopeCreator = {
3589
- Version: "2.8.0-beta.2203-08"
3592
+ Version: "2.8.0-beta.2203-09"
3590
3593
  };
3591
3594
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3592
3595
  EnvelopeCreatorInit(logger, telemetryItem);