@microsoft/applicationinsights-channel-js 2.8.0-beta.2203-07 → 2.8.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.
Files changed (30) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +15 -6
  3. package/browser/applicationinsights-channel-js.js.map +1 -1
  4. package/browser/applicationinsights-channel-js.min.js +2 -2
  5. package/browser/applicationinsights-channel-js.min.js.map +1 -1
  6. package/dist/applicationinsights-channel-js.d.ts +1 -1
  7. package/dist/applicationinsights-channel-js.js +15 -6
  8. package/dist/applicationinsights-channel-js.js.map +1 -1
  9. package/dist/applicationinsights-channel-js.min.js +2 -2
  10. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  11. package/dist/applicationinsights-channel-js.rollup.d.ts +1 -1
  12. package/dist-esm/EnvelopeCreator.js +2 -2
  13. package/dist-esm/EnvelopeCreator.js.map +1 -1
  14. package/dist-esm/Interfaces.js +1 -1
  15. package/dist-esm/Offline.js +1 -1
  16. package/dist-esm/SendBuffer.js +1 -1
  17. package/dist-esm/Sender.js +1 -1
  18. package/dist-esm/Serializer.js +1 -1
  19. package/dist-esm/TelemetryProcessors/Sample.js +3 -3
  20. package/dist-esm/TelemetryProcessors/Sample.js.map +1 -1
  21. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  22. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  23. package/dist-esm/applicationinsights-channel-js.js +1 -1
  24. package/package.json +3 -3
  25. package/src/EnvelopeCreator.ts +2 -2
  26. package/src/Sender.ts +9 -9
  27. package/src/Serializer.ts +4 -8
  28. package/src/TelemetryProcessors/Sample.ts +1 -1
  29. package/src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.ts +3 -1
  30. package/types/TelemetryProcessors/Sample.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-07
2
+ * Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-10
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-07
2
+ * Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -75,7 +75,9 @@
75
75
  var __assignFn = ObjAssign || __objAssignFnImpl;
76
76
  var extendStaticsFn = function (d, b) {
77
77
  extendStaticsFn = ObjClass["setPrototypeOf"] ||
78
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
78
+ ({ __proto__: [] } instanceof Array && function (d, b) {
79
+ d.__proto__ = b;
80
+ }) ||
79
81
  function (d, b) {
80
82
  for (var p in b) {
81
83
  if (b[strShimHasOwnProperty](p)) {
@@ -90,7 +92,9 @@
90
92
  throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
91
93
  }
92
94
  extendStaticsFn(d, b);
93
- function __() { this.constructor = d; }
95
+ function __() {
96
+ this.constructor = d;
97
+ }
94
98
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
95
99
  }
96
100
 
@@ -1349,7 +1353,9 @@
1349
1353
  var context = {
1350
1354
  _next: _moveNext,
1351
1355
  ctx: {
1352
- core: function () { return core; },
1356
+ core: function () {
1357
+ return core;
1358
+ },
1353
1359
  diagLog: function () {
1354
1360
  return safeGetLogger(core, config);
1355
1361
  },
@@ -1849,6 +1855,8 @@
1849
1855
  var strEvents = "events";
1850
1856
  createUniqueNamespace("aiEvtPageHide");
1851
1857
  createUniqueNamespace("aiEvtPageShow");
1858
+ var rRemoveEmptyNs = /\.[\.]+/g;
1859
+ var rRemoveTrailingEmptyNs = /[\.]+$/;
1852
1860
  var _guid = 1;
1853
1861
  var elmNodeData = createElmNodeData("events");
1854
1862
  var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
@@ -1886,7 +1894,7 @@
1886
1894
  var parsedEvent = (eventNamespace.exec(eventName) || []);
1887
1895
  return {
1888
1896
  type: parsedEvent[1],
1889
- ns: ((parsedEvent[2] || "").split(".").sort()).join(".")
1897
+ ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
1890
1898
  };
1891
1899
  }
1892
1900
  function _getRegisteredEvents(target, evtName, addDefault) {
@@ -1959,6 +1967,7 @@
1959
1967
  else {
1960
1968
  newNamespaces = [theNamespace, namespaces];
1961
1969
  }
1970
+ newNamespaces = (_getEvtNamespace("xx", newNamespaces).ns).split(".");
1962
1971
  }
1963
1972
  else {
1964
1973
  newNamespaces = theNamespace;
@@ -3586,7 +3595,7 @@
3586
3595
  }
3587
3596
  }
3588
3597
  var EnvelopeCreator = {
3589
- Version: "2.8.0-beta.2203-07"
3598
+ Version: "2.8.0-beta.2203-10"
3590
3599
  };
3591
3600
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
3592
3601
  EnvelopeCreatorInit(logger, telemetryItem);