pb-sxp-ui 1.15.20 → 1.15.21

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.
@@ -151,7 +151,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
151
151
  return window
152
152
  .fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers), method: options.method, body: isTikTokChannel
153
153
  ? JSON.stringify({
154
- body: btoa(encodeURIComponent(JSON.stringify(options.body)))
154
+ body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
155
155
  })
156
156
  : JSON.stringify(options.body) }, (isTikTokChannel && { keepalive: true })))
157
157
  .then((res) => res.json())
@@ -154,7 +154,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
154
154
  return window
155
155
  .fetch(`${url}/api/${path}`, Object.assign({ headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers), method: options.method, body: isTikTokChannel
156
156
  ? JSON.stringify({
157
- body: btoa(encodeURIComponent(JSON.stringify(options.body)))
157
+ body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
158
158
  })
159
159
  : JSON.stringify(options.body) }, (isTikTokChannel && { keepalive: true })))
160
160
  .then((res) => res.json())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.15.20",
3
+ "version": "1.15.21",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",