@betterstore/sdk 0.2.10 → 0.2.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - debug tools added
8
+
3
9
  ## 0.2.10
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -86,10 +86,12 @@ var createApiClient = (apiKey) => {
86
86
  apiError.status = 503;
87
87
  apiError.message = "Service unavailable - no response from server";
88
88
  apiError.code = "SERVICE_UNAVAILABLE";
89
+ apiError.details = error.request;
89
90
  } else {
90
91
  apiError.status = 500;
91
92
  apiError.message = "Request configuration error";
92
93
  apiError.code = "REQUEST_SETUP_ERROR";
94
+ apiError.details = error;
93
95
  }
94
96
  throw apiError;
95
97
  }
package/dist/index.mjs CHANGED
@@ -50,10 +50,12 @@ var createApiClient = (apiKey) => {
50
50
  apiError.status = 503;
51
51
  apiError.message = "Service unavailable - no response from server";
52
52
  apiError.code = "SERVICE_UNAVAILABLE";
53
+ apiError.details = error.request;
53
54
  } else {
54
55
  apiError.status = 500;
55
56
  apiError.message = "Request configuration error";
56
57
  apiError.code = "REQUEST_SETUP_ERROR";
58
+ apiError.details = error;
57
59
  }
58
60
  throw apiError;
59
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {