pb-sxp-ui 1.15.20-alpha.2 → 1.15.20-alpha.4

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.
@@ -8,7 +8,6 @@ import { useIconLink } from '../components/SxpPageRender/useIconLink';
8
8
  import SXP_EVENT_BUS, { SXP_EVENT_TYPE } from '../utils/event';
9
9
  import Consent from '../components/Consent';
10
10
  import { getCookie, splitUrlParams } from '../utils/tool';
11
- import { encrypt } from '../utils/cryptojs';
12
11
  export const SxpDataSourceContext = createContext({
13
12
  rtcList: [],
14
13
  tagList: []
@@ -114,10 +113,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
114
113
  path = `${path}?${queryString}`;
115
114
  }
116
115
  if (options.type === 'beacon' && navigator.sendBeacon) {
117
- return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
118
- encrypt(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })), 'dcAR82I0b8sgwCku')
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: 'text/plain'
121
118
  }));
122
119
  }
123
120
  return window
@@ -11,7 +11,6 @@ const useIconLink_1 = require("../components/SxpPageRender/useIconLink");
11
11
  const event_1 = tslib_1.__importStar(require("../utils/event"));
12
12
  const Consent_1 = tslib_1.__importDefault(require("../components/Consent"));
13
13
  const tool_1 = require("../utils/tool");
14
- const cryptojs_1 = require("../utils/cryptojs");
15
14
  exports.SxpDataSourceContext = (0, react_1.createContext)({
16
15
  rtcList: [],
17
16
  tagList: []
@@ -117,10 +116,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
117
116
  path = `${path}?${queryString}`;
118
117
  }
119
118
  if (options.type === 'beacon' && navigator.sendBeacon) {
120
- return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
121
- (0, cryptojs_1.encrypt)(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })), 'dcAR82I0b8sgwCku')
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: 'text/plain'
124
121
  }));
125
122
  }
126
123
  return window
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.15.20-alpha.2",
3
+ "version": "1.15.20-alpha.4",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",