pb-sxp-ui 1.15.12-alpha.4 → 1.15.12-alpha.5
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +3 -1
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -1
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +3 -1
- package/lib/core/context/SxpDataSourceProvider.js +3 -1
- package/package.json +1 -1
@@ -114,7 +114,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
114
114
|
}
|
115
115
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
116
116
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
117
|
-
|
117
|
+
JSON.stringify({
|
118
|
+
body: encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })))
|
119
|
+
})
|
118
120
|
], {
|
119
121
|
type: 'application/json;charset=UTF-8'
|
120
122
|
}));
|
@@ -117,7 +117,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
117
117
|
}
|
118
118
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
119
119
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
120
|
-
|
120
|
+
JSON.stringify({
|
121
|
+
body: encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })))
|
122
|
+
})
|
121
123
|
], {
|
122
124
|
type: 'application/json;charset=UTF-8'
|
123
125
|
}));
|