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.cjs.js
CHANGED
|
@@ -7018,7 +7018,7 @@ class Base {
|
|
|
7018
7018
|
* @returns Promise of <T> where T is the type of the response.
|
|
7019
7019
|
*/
|
|
7020
7020
|
async request(route, options) {
|
|
7021
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
7021
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
7022
7022
|
try {
|
|
7023
7023
|
let url;
|
|
7024
7024
|
if (typeof route.fullPath !== 'string') {
|
|
@@ -7076,9 +7076,6 @@ class Base {
|
|
|
7076
7076
|
if (((_e = error.response) === null || _e === void 0 ? void 0 : _e.data.errorCode) && error.response.data.errorCode === exports.ErrorResponseCodes.user_already_exists) {
|
|
7077
7077
|
return error.response.data;
|
|
7078
7078
|
}
|
|
7079
|
-
if (((_f = error.response) === null || _f === void 0 ? void 0 : _f.data.errorCode) && error.response.data.errorCode === exports.ErrorResponseCodes.user_already_exists) {
|
|
7080
|
-
return error.response.data;
|
|
7081
|
-
}
|
|
7082
7079
|
return Promise.reject(error.message);
|
|
7083
7080
|
}
|
|
7084
7081
|
logger.error('SDK::Base::RequestMethod.Post::error', error);
|
|
@@ -7092,8 +7089,8 @@ class Base {
|
|
|
7092
7089
|
}
|
|
7093
7090
|
catch (error) {
|
|
7094
7091
|
if (error instanceof axios.AxiosError) {
|
|
7095
|
-
logger.error('SDK::Base::RequestMethod.Put::error', (
|
|
7096
|
-
return Promise.reject((
|
|
7092
|
+
logger.error('SDK::Base::RequestMethod.Put::error', (_f = error.response) === null || _f === void 0 ? void 0 : _f.data);
|
|
7093
|
+
return Promise.reject((_g = error.response) === null || _g === void 0 ? void 0 : _g.data);
|
|
7097
7094
|
}
|
|
7098
7095
|
return Promise.reject(error === null || error === void 0 ? void 0 : error.message);
|
|
7099
7096
|
}
|
|
@@ -7105,8 +7102,8 @@ class Base {
|
|
|
7105
7102
|
}
|
|
7106
7103
|
catch (error) {
|
|
7107
7104
|
if (error instanceof axios.AxiosError) {
|
|
7108
|
-
logger.error('SDK::Base::RequestMethod.Put::AxiosError', (
|
|
7109
|
-
return Promise.reject((
|
|
7105
|
+
logger.error('SDK::Base::RequestMethod.Put::AxiosError', (_h = error.response) === null || _h === void 0 ? void 0 : _h.data);
|
|
7106
|
+
return Promise.reject((_j = error.response) === null || _j === void 0 ? void 0 : _j.data);
|
|
7110
7107
|
}
|
|
7111
7108
|
return Promise.reject(error === null || error === void 0 ? void 0 : error.message);
|
|
7112
7109
|
}
|