mts-booking-library 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/utils/apiCall.js +4 -4
- package/package.json +1 -1
package/lib/utils/apiCall.js
CHANGED
@@ -104,7 +104,7 @@ var makeGet = function (url, options) { return __awaiter(void 0, void 0, void 0,
|
|
104
104
|
if (axios_1.default.isCancel(error_1)) {
|
105
105
|
// Log cancellation
|
106
106
|
if (debug || (0, config_1.getConfig)().ENV === config_1.MTSEnvs.TEST)
|
107
|
-
console.log("
|
107
|
+
console.log("GET_RequestCanceled", url);
|
108
108
|
// Resolve with empty object
|
109
109
|
resolve({});
|
110
110
|
}
|
@@ -173,7 +173,7 @@ var makePost = function (url, data, options) { return __awaiter(void 0, void 0,
|
|
173
173
|
if (axios_1.default.isCancel(error_2)) {
|
174
174
|
// Log cancellation
|
175
175
|
if (debug || (0, config_1.getConfig)().ENV === config_1.MTSEnvs.TEST)
|
176
|
-
console.log("
|
176
|
+
console.log("POST_RequestCanceled", url);
|
177
177
|
// Resolve with empty object
|
178
178
|
resolve({});
|
179
179
|
}
|
@@ -242,7 +242,7 @@ var makePut = function (url, data, options) { return __awaiter(void 0, void 0, v
|
|
242
242
|
if (axios_1.default.isCancel(error_3)) {
|
243
243
|
// Log cancellation
|
244
244
|
if (debug || (0, config_1.getConfig)().ENV === config_1.MTSEnvs.TEST)
|
245
|
-
console.log("
|
245
|
+
console.log("PUT_RequestCanceled", url);
|
246
246
|
// Resolve with empty object
|
247
247
|
resolve({});
|
248
248
|
}
|
@@ -311,7 +311,7 @@ var makeDelete = function (url, options) { return __awaiter(void 0, void 0, void
|
|
311
311
|
if (axios_1.default.isCancel(error_4)) {
|
312
312
|
// Log cancellation
|
313
313
|
if (debug || (0, config_1.getConfig)().ENV === config_1.MTSEnvs.TEST)
|
314
|
-
console.log("
|
314
|
+
console.log("DELETE_RequestCanceled", url);
|
315
315
|
// Resolve with empty object
|
316
316
|
resolve({});
|
317
317
|
}
|