ggez-banking-sdk 0.1.125 → 0.1.126

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.
@@ -1,6 +1,7 @@
1
1
  import { HeaderKeys } from "../../constants";
2
2
  import { GenerateSourceID } from "../../utils";
3
3
  import { DateTimeHelper } from "../dateTimeHelper";
4
+ import qs from "qs";
4
5
  class AxiosHelper {
5
6
  static GetAxiosConfig = (token, baseURL, lang, installationId) => {
6
7
  const config = {
@@ -51,10 +52,10 @@ class AxiosHelper {
51
52
  try {
52
53
  if (req.data) {
53
54
  if (typeof req.data == "string") {
54
- const baseResult = JSON.parse(req.data);
55
+ const baseResult = qs.parse(req.data);
55
56
  baseResult.time_zone = DateTimeHelper.GetClientTimeZone();
56
57
  baseResult.time_zone_name = DateTimeHelper.GetClientTimeZoneName();
57
- req.data = JSON.stringify(baseResult);
58
+ req.data = qs.stringify(baseResult);
58
59
  }
59
60
  else if (typeof req.data == "object") {
60
61
  const baseResult = req.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.125",
3
+ "version": "0.1.126",
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
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",