pb-sxp-ui 1.15.19 → 1.15.20-alpha.1
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 +19 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -9
- 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 +19 -9
- 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 +0 -9
- package/lib/core/context/SxpDataSourceProvider.js +0 -9
- package/package.json +1 -1
@@ -112,15 +112,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
112
112
|
const queryString = qs.stringify(options.query);
|
113
113
|
path = `${path}?${queryString}`;
|
114
114
|
}
|
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
|
-
], {
|
121
|
-
type: 'application/json;charset=UTF-8'
|
122
|
-
}));
|
123
|
-
}
|
124
115
|
return window
|
125
116
|
.fetch(`${url}/api/${path}`, {
|
126
117
|
headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers),
|
@@ -115,15 +115,6 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
115
115
|
const queryString = qs_1.default.stringify(options.query);
|
116
116
|
path = `${path}?${queryString}`;
|
117
117
|
}
|
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
|
-
], {
|
124
|
-
type: 'application/json;charset=UTF-8'
|
125
|
-
}));
|
126
|
-
}
|
127
118
|
return window
|
128
119
|
.fetch(`${url}/api/${path}`, {
|
129
120
|
headers: Object.assign({ 'Content-Type': 'application/json', 'x-user-id': fakeUserId }, bffDataSource.headers),
|