@microsoft/applicationinsights-react-js 3.3.0-beta.2203-07 → 3.3.0-beta.2203-10

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-07
2
+ * Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -98,7 +98,9 @@
98
98
  var __assignFn = ObjAssign || __objAssignFnImpl;
99
99
  var extendStaticsFn = function (d, b) {
100
100
  extendStaticsFn = ObjClass["setPrototypeOf"] ||
101
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
101
+ ({ __proto__: [] } instanceof Array && function (d, b) {
102
+ d.__proto__ = b;
103
+ }) ||
102
104
  function (d, b) {
103
105
  for (var p in b) {
104
106
  if (b[strShimHasOwnProperty](p)) {
@@ -113,7 +115,9 @@
113
115
  throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
114
116
  }
115
117
  extendStaticsFn(d, b);
116
- function __() { this.constructor = d; }
118
+ function __() {
119
+ this.constructor = d;
120
+ }
117
121
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
118
122
  }
119
123
 
@@ -1363,7 +1367,9 @@
1363
1367
  var context = {
1364
1368
  _next: _moveNext,
1365
1369
  ctx: {
1366
- core: function () { return core; },
1370
+ core: function () {
1371
+ return core;
1372
+ },
1367
1373
  diagLog: function () {
1368
1374
  return safeGetLogger(core, config);
1369
1375
  },
@@ -2106,6 +2112,8 @@
2106
2112
  var strEvents = "events";
2107
2113
  createUniqueNamespace("aiEvtPageHide");
2108
2114
  createUniqueNamespace("aiEvtPageShow");
2115
+ var rRemoveEmptyNs = /\.[\.]+/g;
2116
+ var rRemoveTrailingEmptyNs = /[\.]+$/;
2109
2117
  var _guid = 1;
2110
2118
  var elmNodeData = createElmNodeData("events");
2111
2119
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
@@ -2143,7 +2151,7 @@
2143
2151
  var parsedEvent = (eventNamespace.exec(eventName) || []);
2144
2152
  return {
2145
2153
  type: parsedEvent[1],
2146
- ns: ((parsedEvent[2] || "").split(".").sort()).join(".")
2154
+ ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
2147
2155
  };
2148
2156
  }
2149
2157
  function _getRegisteredEvents(target, evtName, addDefault) {