pb-sxp-ui 1.7.8 → 1.7.10

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.
@@ -211,7 +211,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
211
211
  client_user_agent: (_e = (_d = window === null || window === void 0 ? void 0 : window.navigator) === null || _d === void 0 ? void 0 : _d.userAgent) !== null && _e !== void 0 ? _e : '',
212
212
  fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
213
213
  fbp: getCookie('_fbp') ? `fb.2.${new Date().getTime()}.${getCookie('_fbp')}` : '',
214
- time: new Date().getTime()
214
+ time: Math.floor(Date.now() / 1000)
215
215
  };
216
216
  const regex = /\{\{(.*?)\}\}/g;
217
217
  const getEventParams = (obj) => {
@@ -236,7 +236,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
236
236
  try {
237
237
  let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
238
238
  if (replaceValue) {
239
- if (prop.indexOf('currency') &&
239
+ if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
240
240
  (replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
241
241
  typeof replaceValue === 'string') {
242
242
  replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];
@@ -214,7 +214,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
214
214
  client_user_agent: (_e = (_d = window === null || window === void 0 ? void 0 : window.navigator) === null || _d === void 0 ? void 0 : _d.userAgent) !== null && _e !== void 0 ? _e : '',
215
215
  fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
216
216
  fbp: (0, tool_1.getCookie)('_fbp') ? `fb.2.${new Date().getTime()}.${(0, tool_1.getCookie)('_fbp')}` : '',
217
- time: new Date().getTime()
217
+ time: Math.floor(Date.now() / 1000)
218
218
  };
219
219
  const regex = /\{\{(.*?)\}\}/g;
220
220
  const getEventParams = (obj) => {
@@ -239,7 +239,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
239
239
  try {
240
240
  let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
241
241
  if (replaceValue) {
242
- if (prop.indexOf('currency') &&
242
+ if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
243
243
  (replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
244
244
  typeof replaceValue === 'string') {
245
245
  replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.7.8",
3
+ "version": "1.7.10",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",