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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +1 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +1 -1
- package/lib/core/context/SxpDataSourceProvider.js +1 -1
- package/package.json +1 -1
@@ -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())
|