wallaby-cash 2.0.2 → 2.0.3
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/dist/index.cjs.js +5 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6990,7 +6990,7 @@ class Base {
|
|
|
6990
6990
|
* @returns Promise of <T> where T is the type of the response.
|
|
6991
6991
|
*/
|
|
6992
6992
|
async request(route, options) {
|
|
6993
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
6993
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6994
6994
|
try {
|
|
6995
6995
|
let url;
|
|
6996
6996
|
if (typeof route.fullPath !== 'string') {
|
|
@@ -7048,9 +7048,6 @@ class Base {
|
|
|
7048
7048
|
if (((_e = error.response) === null || _e === void 0 ? void 0 : _e.data.errorCode) && error.response.data.errorCode === ErrorResponseCodes.user_already_exists) {
|
|
7049
7049
|
return error.response.data;
|
|
7050
7050
|
}
|
|
7051
|
-
if (((_f = error.response) === null || _f === void 0 ? void 0 : _f.data.errorCode) && error.response.data.errorCode === ErrorResponseCodes.user_already_exists) {
|
|
7052
|
-
return error.response.data;
|
|
7053
|
-
}
|
|
7054
7051
|
return Promise.reject(error.message);
|
|
7055
7052
|
}
|
|
7056
7053
|
logger.error('SDK::Base::RequestMethod.Post::error', error);
|
|
@@ -7064,8 +7061,8 @@ class Base {
|
|
|
7064
7061
|
}
|
|
7065
7062
|
catch (error) {
|
|
7066
7063
|
if (error instanceof AxiosError) {
|
|
7067
|
-
logger.error('SDK::Base::RequestMethod.Put::error', (
|
|
7068
|
-
return Promise.reject((
|
|
7064
|
+
logger.error('SDK::Base::RequestMethod.Put::error', (_f = error.response) === null || _f === void 0 ? void 0 : _f.data);
|
|
7065
|
+
return Promise.reject((_g = error.response) === null || _g === void 0 ? void 0 : _g.data);
|
|
7069
7066
|
}
|
|
7070
7067
|
return Promise.reject(error === null || error === void 0 ? void 0 : error.message);
|
|
7071
7068
|
}
|
|
@@ -7077,8 +7074,8 @@ class Base {
|
|
|
7077
7074
|
}
|
|
7078
7075
|
catch (error) {
|
|
7079
7076
|
if (error instanceof AxiosError) {
|
|
7080
|
-
logger.error('SDK::Base::RequestMethod.Put::AxiosError', (
|
|
7081
|
-
return Promise.reject((
|
|
7077
|
+
logger.error('SDK::Base::RequestMethod.Put::AxiosError', (_h = error.response) === null || _h === void 0 ? void 0 : _h.data);
|
|
7078
|
+
return Promise.reject((_j = error.response) === null || _j === void 0 ? void 0 : _j.data);
|
|
7082
7079
|
}
|
|
7083
7080
|
return Promise.reject(error === null || error === void 0 ? void 0 : error.message);
|
|
7084
7081
|
}
|