contentoh-components-library 21.3.83 → 21.3.84

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.
@@ -419,9 +419,11 @@ var ContentChat = function ContentChat(props) {
419
419
  isUserTech: (_dataChat$currentUser3 = dataChat.currentUser) === null || _dataChat$currentUser3 === void 0 ? void 0 : _dataChat$currentUser3.isUserTech
420
420
  };
421
421
  paramsQuery = {
422
- id: JSON.stringify(dataChat.id),
422
+ //id: JSON.stringify(dataChat.id),
423
+ id: dataChat.id,
423
424
  getType: "initial",
424
- currentUser: (0, _utils.encodeUriJson)(dataUser),
425
+ //currentUser: encodeUriJson(dataUser),
426
+ currentUser: encodeURIComponent(JSON.stringify(dataUser)),
425
427
  currentItemsFront: (0, _utils.encodeUriJson)(getItemsIdSingleChat())
426
428
  };
427
429
  _context3.next = 5;
@@ -17,12 +17,13 @@ var _axios = _interopRequireDefault(require("axios"));
17
17
 
18
18
  var objToQueryString = function objToQueryString(obj) {
19
19
  if (!Object.values(obj).length) return null;
20
- return Object.entries(obj).map(function (_ref) {
20
+ return Object.entries(obj).map( //([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`
21
+ function (_ref) {
21
22
  var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
22
23
  key = _ref2[0],
23
24
  value = _ref2[1];
24
25
 
25
- return "".concat(key, "=").concat(encodeURIComponent(JSON.stringify(value)));
26
+ return "".concat(key, "=").concat(encodeURIComponent(value));
26
27
  }).join("&");
27
28
  };
28
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.3.83",
3
+ "version": "21.3.84",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -241,9 +241,11 @@ export const ContentChat = (props) => {
241
241
  isUserTech: dataChat.currentUser?.isUserTech,
242
242
  };
243
243
  const paramsQuery = {
244
- id: JSON.stringify(dataChat.id),
244
+ //id: JSON.stringify(dataChat.id),
245
+ id: dataChat.id,
245
246
  getType: "initial",
246
- currentUser: encodeUriJson(dataUser),
247
+ //currentUser: encodeUriJson(dataUser),
248
+ currentUser: encodeURIComponent(JSON.stringify(dataUser)),
247
249
  currentItemsFront: encodeUriJson(getItemsIdSingleChat()),
248
250
  };
249
251
  const response = await fetchGET(
@@ -4,7 +4,8 @@ const objToQueryString = (obj) => {
4
4
  if (!Object.values(obj).length) return null;
5
5
  return Object.entries(obj)
6
6
  .map(
7
- ([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`
7
+ //([key, value]) => `${key}=${encodeURIComponent(JSON.stringify(value))}`
8
+ ([key, value]) => `${key}=${encodeURIComponent(value)}`
8
9
  )
9
10
  .join("&");
10
11
  };