@microsoft/applicationinsights-react-js 3.3.0-beta.2203-08 → 3.3.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
- * Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-08
2
+ * Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -2106,6 +2106,8 @@
2106
2106
  var strEvents = "events";
2107
2107
  createUniqueNamespace("aiEvtPageHide");
2108
2108
  createUniqueNamespace("aiEvtPageShow");
2109
+ var rRemoveEmptyNs = /\.[\.]+/g;
2110
+ var rRemoveTrailingEmptyNs = /[\.]+$/;
2109
2111
  var _guid = 1;
2110
2112
  var elmNodeData = createElmNodeData("events");
2111
2113
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
@@ -2143,7 +2145,7 @@
2143
2145
  var parsedEvent = (eventNamespace.exec(eventName) || []);
2144
2146
  return {
2145
2147
  type: parsedEvent[1],
2146
- ns: ((parsedEvent[2] || "").split(".").sort()).join(".")
2148
+ ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
2147
2149
  };
2148
2150
  }
2149
2151
  function _getRegisteredEvents(target, evtName, addDefault) {