pb-sxp-ui 1.10.9 → 1.10.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.
@@ -109,12 +109,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
109
109
  path = `${path}?${queryString}`;
110
110
  }
111
111
  if (options.type === 'beacon' && navigator.sendBeacon) {
112
- const query = qs.stringify(Object.assign(Object.assign({}, bffDataSource.headers), { 'x-user-id': fakeUserId }));
113
- if (query) {
114
- path = (options === null || options === void 0 ? void 0 : options.query) ? `${path}&${query}` : `${path}?${query}`;
115
- }
116
112
  return navigator.sendBeacon(`${url}/api/v1${path}`, new Blob([
117
- JSON.stringify(Object.assign({}, options.body))
113
+ JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))
118
114
  ], { type: 'application/json;charset=UTF-8' }));
119
115
  }
120
116
  return window
@@ -112,12 +112,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
112
112
  path = `${path}?${queryString}`;
113
113
  }
114
114
  if (options.type === 'beacon' && navigator.sendBeacon) {
115
- const query = qs_1.default.stringify(Object.assign(Object.assign({}, bffDataSource.headers), { 'x-user-id': fakeUserId }));
116
- if (query) {
117
- path = (options === null || options === void 0 ? void 0 : options.query) ? `${path}&${query}` : `${path}?${query}`;
118
- }
119
115
  return navigator.sendBeacon(`${url}/api/v1${path}`, new Blob([
120
- JSON.stringify(Object.assign({}, options.body))
116
+ JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))
121
117
  ], { type: 'application/json;charset=UTF-8' }));
122
118
  }
123
119
  return window
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.10.9",
3
+ "version": "1.10.10",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",