ggez-banking-sdk 0.1.91 → 0.1.93

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.
@@ -723,7 +723,7 @@ class UserClient {
723
723
  try {
724
724
  const userData = FillDeleteAddressData(data);
725
725
  const response = await this.userService.deleteAddress(this.clientData.userId, userData);
726
- return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "address", "DeleteAddress", "delete");
726
+ return ResponseHelper.GetSuccessResponse(response, this.clientData.userInfo, "addresses", "DeleteAddress", "delete");
727
727
  }
728
728
  catch (error) {
729
729
  return ResponseHelper.GetErrorResponse(error);
@@ -10,8 +10,9 @@ class BaseService {
10
10
  });
11
11
  }
12
12
  resolveURL(path = "") {
13
- if (path && !path.startsWith("/")) {
14
- path = `/${path}`;
13
+ const p = path.toString().trim();
14
+ if (p && !p.startsWith("/")) {
15
+ path = `/${p}`;
15
16
  }
16
17
  return `${this.endpoint}${path}`;
17
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
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",