pb-sxp-ui 1.16.23 → 1.16.24-alpha.2

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.
package/dist/index.cjs CHANGED
@@ -939,19 +939,19 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
939
939
  originalOpen.apply(this, arguments);
940
940
  };
941
941
  XMLHttpRequest.prototype.send = function (body) {
942
+ var _a;
942
943
  if (this._url && typeof this._url === 'string' && this._url.includes('https://i.giesswein.com/nb-collector')) {
943
944
  if (body && typeof body === 'string') {
944
945
  try {
945
946
  const payload = JSON.parse(body);
946
947
  if (payload && Array.isArray(payload.data)) {
947
- payload.data.forEach((item) => {
948
- if (item && item.e) {
949
- bffCollectEvent({
950
- eventName: item.e,
951
- eventSource: 'Northbeam Pixel'
952
- });
953
- }
954
- });
948
+ const item = payload.data[((_a = payload.data) === null || _a === void 0 ? void 0 : _a.length) - 1];
949
+ if (item && item.e) {
950
+ bffCollectEvent({
951
+ eventName: item.e,
952
+ eventSource: 'Northbeam Pixel'
953
+ });
954
+ }
955
955
  }
956
956
  }
957
957
  catch (e) {