pb-sxp-ui 1.15.12-alpha.6 → 1.15.12-alpha.7

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: []
@@ -115,7 +114,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
115
114
  }
116
115
  if (options.type === 'beacon' && navigator.sendBeacon) {
117
116
  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')
117
+ JSON.stringify({
118
+ body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
119
+ })
119
120
  ], {
120
121
  type: 'application/json;charset=UTF-8'
121
122
  }));
@@ -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: []
@@ -118,7 +117,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
118
117
  }
119
118
  if (options.type === 'beacon' && navigator.sendBeacon) {
120
119
  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')
120
+ JSON.stringify({
121
+ body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
122
+ })
122
123
  ], {
123
124
  type: 'application/json;charset=UTF-8'
124
125
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.15.12-alpha.6",
3
+ "version": "1.15.12-alpha.7",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",