@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 +6 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
}
|