pb-sxp-ui 1.15.12-alpha.2 → 1.15.12-alpha.3

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.
@@ -113,11 +113,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
113
113
  path = `${path}?${queryString}`;
114
114
  }
115
115
  if (options.type === 'beacon' && navigator.sendBeacon) {
116
- return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
117
- JSON.stringify({
118
- body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
119
- })
120
- ], { type: 'application/json;charset=UTF-8' }));
116
+ return navigator.sendBeacon(`${url}/api/${path}`, new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))], {
117
+ type: 'application/json;charset=UTF-8'
118
+ }));
121
119
  }
122
120
  return window
123
121
  .fetch(`${url}/api/${path}`, {
@@ -116,11 +116,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
116
116
  path = `${path}?${queryString}`;
117
117
  }
118
118
  if (options.type === 'beacon' && navigator.sendBeacon) {
119
- return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
120
- JSON.stringify({
121
- body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
122
- })
123
- ], { type: 'application/json;charset=UTF-8' }));
119
+ return navigator.sendBeacon(`${url}/api/${path}`, new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))], {
120
+ type: 'application/json;charset=UTF-8'
121
+ }));
124
122
  }
125
123
  return window
126
124
  .fetch(`${url}/api/${path}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.15.12-alpha.2",
3
+ "version": "1.15.12-alpha.3",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",