ggez-banking-sdk 0.0.17 → 0.0.19

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.
@@ -26,6 +26,7 @@ class ApiService {
26
26
  headers: headers,
27
27
  data: data,
28
28
  };
29
+ console.log("🚀 ~ ApiService ~ config:", config);
29
30
  try {
30
31
  let response = yield (0, axios_1.default)(config);
31
32
  return response;
@@ -22,7 +22,7 @@ const useToken = (userInfo, nodeUrl, programId, lang, geoCoordinates) => {
22
22
  const headerConfigToken = () => {
23
23
  let headersData = {
24
24
  header: true,
25
- isUrlEncoded: true,
25
+ isUrlEncoded: false,
26
26
  token: null,
27
27
  lang: lang,
28
28
  };
@@ -35,7 +35,7 @@ const useToken = (userInfo, nodeUrl, programId, lang, geoCoordinates) => {
35
35
  let data = dataTokenUrlEncoded(Object.assign(Object.assign({}, values), { geoCoordinates: geoCoordinates }));
36
36
  console.log("🚀 ~ CreateLimitedToken ~ data:", data);
37
37
  try {
38
- const response = yield restApi_1.default.restApi(nodeUrl, "POST", "v1/limited-token", headerConfigToken(), data);
38
+ const response = yield restApi_1.default.restApi(nodeUrl, "POST", "v1/limited-token", headerConfigToken(), JSON.stringify(data));
39
39
  if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.access_token) {
40
40
  return {
41
41
  response: response,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",