@kontent-ai/delivery-sdk 16.2.1 → 16.3.0
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/bundles/kontent-delivery.umd.js +277 -236
- package/dist/bundles/kontent-delivery.umd.js.map +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js +1 -1
- package/dist/bundles/kontent-delivery.umd.min.js.map +1 -1
- package/dist/bundles/report.json +1 -1
- package/dist/bundles/report.min.json +1 -1
- package/dist/bundles/stats.json +575 -547
- package/dist/bundles/stats.min.json +767 -725
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/lib/sdk-info.generated.ts +1 -1
- package/package.json +12 -12
|
@@ -3501,7 +3501,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3501
3501
|
exports.sdkInfo = void 0;
|
|
3502
3502
|
exports.sdkInfo = {
|
|
3503
3503
|
host: 'npmjs.com',
|
|
3504
|
-
version: '16.
|
|
3504
|
+
version: '16.3.0',
|
|
3505
3505
|
name: '@kontent-ai/delivery-sdk'
|
|
3506
3506
|
};
|
|
3507
3507
|
|
|
@@ -4665,10 +4665,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4665
4665
|
/* harmony export */ postWithRetryAsync: () => (/* binding */ postWithRetryAsync),
|
|
4666
4666
|
/* harmony export */ putWithRetryAsync: () => (/* binding */ putWithRetryAsync)
|
|
4667
4667
|
/* harmony export */ });
|
|
4668
|
-
/* harmony import */ var
|
|
4669
|
-
/* harmony import */ var
|
|
4670
|
-
/* harmony import */ var
|
|
4671
|
-
/* harmony import */ var
|
|
4668
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/lib/axios.js");
|
|
4669
|
+
/* harmony import */ var _helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/headers-helper */ "./node_modules/@kontent-ai/core-sdk/dist/es6/helpers/headers-helper.js");
|
|
4670
|
+
/* harmony import */ var _http_debugger__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./http.debugger */ "./node_modules/@kontent-ai/core-sdk/dist/es6/http/http.debugger.js");
|
|
4671
|
+
/* harmony import */ var _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/retry-helper */ "./node_modules/@kontent-ai/core-sdk/dist/es6/helpers/retry-helper.js");
|
|
4672
4672
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4673
4673
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4674
4674
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -4685,7 +4685,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4685
4685
|
function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4686
4686
|
var _a;
|
|
4687
4687
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4688
|
-
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a :
|
|
4688
|
+
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a : _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.defaultRetryStrategy;
|
|
4689
4689
|
return yield runWithRetryAsync({
|
|
4690
4690
|
retryAttempt: 0,
|
|
4691
4691
|
url: call.url,
|
|
@@ -4693,7 +4693,7 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4693
4693
|
functionsConfig: functionsConfig,
|
|
4694
4694
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4695
4695
|
var _b, _c;
|
|
4696
|
-
|
|
4696
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4697
4697
|
const axiosResponse = yield instance.get(call.url, {
|
|
4698
4698
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4699
4699
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4702,14 +4702,14 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4702
4702
|
const response = {
|
|
4703
4703
|
data: axiosResponse.data,
|
|
4704
4704
|
rawResponse: axiosResponse,
|
|
4705
|
-
headers: (0,
|
|
4705
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4706
4706
|
status: axiosResponse.status,
|
|
4707
4707
|
retryStrategy: {
|
|
4708
4708
|
options: retryStrategyOptions,
|
|
4709
4709
|
retryAttempts: retryAttempt
|
|
4710
4710
|
}
|
|
4711
4711
|
};
|
|
4712
|
-
|
|
4712
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4713
4713
|
return response;
|
|
4714
4714
|
})
|
|
4715
4715
|
});
|
|
@@ -4718,7 +4718,7 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4718
4718
|
function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4719
4719
|
var _a;
|
|
4720
4720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4721
|
-
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a :
|
|
4721
|
+
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a : _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.defaultRetryStrategy;
|
|
4722
4722
|
return yield runWithRetryAsync({
|
|
4723
4723
|
retryAttempt: 0,
|
|
4724
4724
|
url: call.url,
|
|
@@ -4726,7 +4726,7 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4726
4726
|
functionsConfig: functionsConfig,
|
|
4727
4727
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4728
4728
|
var _b, _c;
|
|
4729
|
-
|
|
4729
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4730
4730
|
const axiosResponse = yield instance.post(call.url, call.body, {
|
|
4731
4731
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4732
4732
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4739,14 +4739,14 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4739
4739
|
const response = {
|
|
4740
4740
|
data: axiosResponse.data,
|
|
4741
4741
|
rawResponse: axiosResponse,
|
|
4742
|
-
headers: (0,
|
|
4742
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4743
4743
|
status: axiosResponse.status,
|
|
4744
4744
|
retryStrategy: {
|
|
4745
4745
|
options: retryStrategyOptions,
|
|
4746
4746
|
retryAttempts: retryAttempt
|
|
4747
4747
|
}
|
|
4748
4748
|
};
|
|
4749
|
-
|
|
4749
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4750
4750
|
return response;
|
|
4751
4751
|
})
|
|
4752
4752
|
});
|
|
@@ -4755,7 +4755,7 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4755
4755
|
function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4756
4756
|
var _a;
|
|
4757
4757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4758
|
-
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a :
|
|
4758
|
+
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a : _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.defaultRetryStrategy;
|
|
4759
4759
|
return yield runWithRetryAsync({
|
|
4760
4760
|
retryAttempt: 0,
|
|
4761
4761
|
url: call.url,
|
|
@@ -4763,7 +4763,7 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4763
4763
|
functionsConfig: functionsConfig,
|
|
4764
4764
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4765
4765
|
var _b, _c;
|
|
4766
|
-
|
|
4766
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4767
4767
|
const axiosResponse = yield instance.put(call.url, call.body, {
|
|
4768
4768
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4769
4769
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4776,14 +4776,14 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4776
4776
|
const response = {
|
|
4777
4777
|
data: axiosResponse.data,
|
|
4778
4778
|
rawResponse: axiosResponse,
|
|
4779
|
-
headers: (0,
|
|
4779
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4780
4780
|
status: axiosResponse.status,
|
|
4781
4781
|
retryStrategy: {
|
|
4782
4782
|
options: retryStrategyOptions,
|
|
4783
4783
|
retryAttempts: retryAttempt
|
|
4784
4784
|
}
|
|
4785
4785
|
};
|
|
4786
|
-
|
|
4786
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4787
4787
|
return response;
|
|
4788
4788
|
})
|
|
4789
4789
|
});
|
|
@@ -4792,7 +4792,7 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4792
4792
|
function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4793
4793
|
var _a;
|
|
4794
4794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4795
|
-
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a :
|
|
4795
|
+
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a : _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.defaultRetryStrategy;
|
|
4796
4796
|
return yield runWithRetryAsync({
|
|
4797
4797
|
retryAttempt: 0,
|
|
4798
4798
|
url: call.url,
|
|
@@ -4800,7 +4800,7 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4800
4800
|
functionsConfig: functionsConfig,
|
|
4801
4801
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4802
4802
|
var _b, _c;
|
|
4803
|
-
|
|
4803
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4804
4804
|
const axiosResponse = yield instance.patch(call.url, call.body, {
|
|
4805
4805
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4806
4806
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4813,14 +4813,14 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4813
4813
|
const response = {
|
|
4814
4814
|
data: axiosResponse.data,
|
|
4815
4815
|
rawResponse: axiosResponse,
|
|
4816
|
-
headers: (0,
|
|
4816
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4817
4817
|
status: axiosResponse.status,
|
|
4818
4818
|
retryStrategy: {
|
|
4819
4819
|
options: retryStrategyOptions,
|
|
4820
4820
|
retryAttempts: retryAttempt
|
|
4821
4821
|
}
|
|
4822
4822
|
};
|
|
4823
|
-
|
|
4823
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4824
4824
|
return response;
|
|
4825
4825
|
})
|
|
4826
4826
|
});
|
|
@@ -4829,7 +4829,7 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4829
4829
|
function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4830
4830
|
var _a;
|
|
4831
4831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4832
|
-
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a :
|
|
4832
|
+
const retryStrategyOptions = (_a = options === null || options === void 0 ? void 0 : options.retryStrategy) !== null && _a !== void 0 ? _a : _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.defaultRetryStrategy;
|
|
4833
4833
|
return yield runWithRetryAsync({
|
|
4834
4834
|
retryAttempt: 0,
|
|
4835
4835
|
url: call.url,
|
|
@@ -4837,7 +4837,7 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4837
4837
|
functionsConfig: functionsConfig,
|
|
4838
4838
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4839
4839
|
var _b, _c;
|
|
4840
|
-
|
|
4840
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4841
4841
|
const axiosResponse = yield instance.delete(call.url, {
|
|
4842
4842
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4843
4843
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4850,14 +4850,14 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4850
4850
|
const response = {
|
|
4851
4851
|
data: axiosResponse.data,
|
|
4852
4852
|
rawResponse: axiosResponse,
|
|
4853
|
-
headers: (0,
|
|
4853
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4854
4854
|
status: axiosResponse.status,
|
|
4855
4855
|
retryStrategy: {
|
|
4856
4856
|
options: retryStrategyOptions,
|
|
4857
4857
|
retryAttempts: retryAttempt
|
|
4858
4858
|
}
|
|
4859
4859
|
};
|
|
4860
|
-
|
|
4860
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4861
4861
|
return response;
|
|
4862
4862
|
})
|
|
4863
4863
|
});
|
|
@@ -4865,12 +4865,12 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
function createCancelToken() {
|
|
4867
4867
|
let canceler;
|
|
4868
|
-
const token = new
|
|
4868
|
+
const token = new axios__WEBPACK_IMPORTED_MODULE_0__["default"].CancelToken((c) => {
|
|
4869
4869
|
// An executor function receives a cancel function as a parameter
|
|
4870
4870
|
canceler = c;
|
|
4871
4871
|
});
|
|
4872
4872
|
return {
|
|
4873
|
-
cancel: (cancelMessage) => canceler(`${
|
|
4873
|
+
cancel: (cancelMessage) => canceler(`${_helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.requestCancelledMessagePrefix}: ${cancelMessage !== null && cancelMessage !== void 0 ? cancelMessage : 'User cancel'}`),
|
|
4874
4874
|
token: token
|
|
4875
4875
|
};
|
|
4876
4876
|
}
|
|
@@ -4880,13 +4880,13 @@ function runWithRetryAsync(data) {
|
|
|
4880
4880
|
return yield data.call(data.retryAttempt);
|
|
4881
4881
|
}
|
|
4882
4882
|
catch (error) {
|
|
4883
|
-
const retryResult =
|
|
4883
|
+
const retryResult = _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.getRetryErrorResult({
|
|
4884
4884
|
error: error,
|
|
4885
4885
|
retryAttempt: data.retryAttempt,
|
|
4886
4886
|
retryStrategy: data.retryStrategy
|
|
4887
4887
|
});
|
|
4888
4888
|
if (retryResult.canRetry) {
|
|
4889
|
-
|
|
4889
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugRetryHttpRequest();
|
|
4890
4890
|
// wait time before retrying
|
|
4891
4891
|
yield new Promise((resolve) => setTimeout(resolve, retryResult.retryInMs));
|
|
4892
4892
|
if (data.functionsConfig.logErrorsToConsole) {
|
|
@@ -4948,8 +4948,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4948
4948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4949
4949
|
/* harmony export */ HttpService: () => (/* binding */ HttpService)
|
|
4950
4950
|
/* harmony export */ });
|
|
4951
|
-
/* harmony import */ var
|
|
4952
|
-
/* harmony import */ var
|
|
4951
|
+
/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ "./node_modules/axios/lib/axios.js");
|
|
4952
|
+
/* harmony import */ var _http_functions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./http.functions */ "./node_modules/@kontent-ai/core-sdk/dist/es6/http/http.functions.js");
|
|
4953
4953
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4954
4954
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4955
4955
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -4964,36 +4964,36 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4964
4964
|
class HttpService {
|
|
4965
4965
|
constructor(opts) {
|
|
4966
4966
|
this.opts = opts;
|
|
4967
|
-
this.axiosInstance =
|
|
4967
|
+
this.axiosInstance = axios__WEBPACK_IMPORTED_MODULE_0__["default"].create(opts === null || opts === void 0 ? void 0 : opts.axiosRequestConfig);
|
|
4968
4968
|
this.functionsConfig = this.getFunctionsConfig();
|
|
4969
4969
|
}
|
|
4970
4970
|
getAsync(call, options) {
|
|
4971
4971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4972
|
-
return yield
|
|
4972
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.getWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4973
4973
|
});
|
|
4974
4974
|
}
|
|
4975
4975
|
postAsync(call, options) {
|
|
4976
4976
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4977
|
-
return yield
|
|
4977
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.postWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4978
4978
|
});
|
|
4979
4979
|
}
|
|
4980
4980
|
putAsync(call, options) {
|
|
4981
4981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4982
|
-
return yield
|
|
4982
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.putWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4983
4983
|
});
|
|
4984
4984
|
}
|
|
4985
4985
|
patchAsync(call, options) {
|
|
4986
4986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4987
|
-
return yield
|
|
4987
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.patchWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
4990
4990
|
deleteAsync(call, options) {
|
|
4991
4991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4992
|
-
return yield
|
|
4992
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.deleteWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4993
4993
|
});
|
|
4994
4994
|
}
|
|
4995
4995
|
createCancelToken() {
|
|
4996
|
-
return
|
|
4996
|
+
return _http_functions__WEBPACK_IMPORTED_MODULE_1__.createCancelToken();
|
|
4997
4997
|
}
|
|
4998
4998
|
getFunctionsConfig() {
|
|
4999
4999
|
var _a, _b;
|
|
@@ -5238,10 +5238,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5238
5238
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5239
5239
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5240
5240
|
/* harmony export */ });
|
|
5241
|
-
/* harmony import */ var
|
|
5242
|
-
/* harmony import */ var
|
|
5243
|
-
/* harmony import */ var
|
|
5244
|
-
/* harmony import */ var
|
|
5241
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5242
|
+
/* harmony import */ var _http_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./http.js */ "./node_modules/axios/lib/helpers/null.js");
|
|
5243
|
+
/* harmony import */ var _xhr_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./xhr.js */ "./node_modules/axios/lib/adapters/xhr.js");
|
|
5244
|
+
/* harmony import */ var _fetch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fetch.js */ "./node_modules/axios/lib/adapters/fetch.js");
|
|
5245
5245
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5246
5246
|
|
|
5247
5247
|
|
|
@@ -5250,12 +5250,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5250
5250
|
|
|
5251
5251
|
|
|
5252
5252
|
const knownAdapters = {
|
|
5253
|
-
http:
|
|
5254
|
-
xhr:
|
|
5255
|
-
fetch:
|
|
5253
|
+
http: _http_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
5254
|
+
xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
5255
|
+
fetch: _fetch_js__WEBPACK_IMPORTED_MODULE_3__["default"]
|
|
5256
5256
|
}
|
|
5257
5257
|
|
|
5258
|
-
|
|
5258
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(knownAdapters, (fn, value) => {
|
|
5259
5259
|
if (fn) {
|
|
5260
5260
|
try {
|
|
5261
5261
|
Object.defineProperty(fn, 'name', {value});
|
|
@@ -5268,11 +5268,11 @@ _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, va
|
|
|
5268
5268
|
|
|
5269
5269
|
const renderReason = (reason) => `- ${reason}`;
|
|
5270
5270
|
|
|
5271
|
-
const isResolvedHandle = (adapter) =>
|
|
5271
|
+
const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(adapter) || adapter === null || adapter === false;
|
|
5272
5272
|
|
|
5273
5273
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
5274
5274
|
getAdapter: (adapters) => {
|
|
5275
|
-
adapters =
|
|
5275
|
+
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(adapters) ? adapters : [adapters];
|
|
5276
5276
|
|
|
5277
5277
|
const {length} = adapters;
|
|
5278
5278
|
let nameOrAdapter;
|
|
@@ -5339,12 +5339,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5339
5339
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
5340
5340
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5341
5341
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5342
|
-
/* harmony import */ var
|
|
5343
|
-
/* harmony import */ var
|
|
5344
|
-
/* harmony import */ var
|
|
5345
|
-
/* harmony import */ var
|
|
5346
|
-
/* harmony import */ var
|
|
5347
|
-
/* harmony import */ var
|
|
5342
|
+
/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "./node_modules/axios/lib/helpers/composeSignals.js");
|
|
5343
|
+
/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/trackStream.js */ "./node_modules/axios/lib/helpers/trackStream.js");
|
|
5344
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
5345
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
5346
|
+
/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
|
|
5347
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../core/settle.js */ "./node_modules/axios/lib/core/settle.js");
|
|
5348
5348
|
|
|
5349
5349
|
|
|
5350
5350
|
|
|
@@ -5456,11 +5456,11 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5456
5456
|
headers,
|
|
5457
5457
|
withCredentials = 'same-origin',
|
|
5458
5458
|
fetchOptions
|
|
5459
|
-
} = (0,
|
|
5459
|
+
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_7__["default"])(config);
|
|
5460
5460
|
|
|
5461
5461
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
5462
5462
|
|
|
5463
|
-
let composedSignal = (0,
|
|
5463
|
+
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
5464
5464
|
|
|
5465
5465
|
let request;
|
|
5466
5466
|
|
|
@@ -5488,12 +5488,12 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5488
5488
|
}
|
|
5489
5489
|
|
|
5490
5490
|
if (_request.body) {
|
|
5491
|
-
const [onProgress, flush] = (0,
|
|
5491
|
+
const [onProgress, flush] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
|
|
5492
5492
|
requestContentLength,
|
|
5493
|
-
(0,
|
|
5493
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onUploadProgress))
|
|
5494
5494
|
);
|
|
5495
5495
|
|
|
5496
|
-
data = (0,
|
|
5496
|
+
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
5499
|
|
|
@@ -5514,7 +5514,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5514
5514
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
5515
5515
|
});
|
|
5516
5516
|
|
|
5517
|
-
let response = await fetch(request);
|
|
5517
|
+
let response = await fetch(request, fetchOptions);
|
|
5518
5518
|
|
|
5519
5519
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
5520
5520
|
|
|
@@ -5527,13 +5527,13 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5527
5527
|
|
|
5528
5528
|
const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(response.headers.get('content-length'));
|
|
5529
5529
|
|
|
5530
|
-
const [onProgress, flush] = onDownloadProgress && (0,
|
|
5530
|
+
const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
|
|
5531
5531
|
responseContentLength,
|
|
5532
|
-
(0,
|
|
5532
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onDownloadProgress), true)
|
|
5533
5533
|
) || [];
|
|
5534
5534
|
|
|
5535
5535
|
response = new Response(
|
|
5536
|
-
(0,
|
|
5536
|
+
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
5537
5537
|
flush && flush();
|
|
5538
5538
|
unsubscribe && unsubscribe();
|
|
5539
5539
|
}),
|
|
@@ -5548,9 +5548,9 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5548
5548
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
5549
5549
|
|
|
5550
5550
|
return await new Promise((resolve, reject) => {
|
|
5551
|
-
(0,
|
|
5551
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_8__["default"])(resolve, reject, {
|
|
5552
5552
|
data: responseData,
|
|
5553
|
-
headers:
|
|
5553
|
+
headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(response.headers),
|
|
5554
5554
|
status: response.status,
|
|
5555
5555
|
statusText: response.statusText,
|
|
5556
5556
|
config,
|
|
@@ -5588,16 +5588,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5588
5588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5589
5589
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5590
5590
|
/* harmony export */ });
|
|
5591
|
-
/* harmony import */ var
|
|
5592
|
-
/* harmony import */ var
|
|
5593
|
-
/* harmony import */ var
|
|
5591
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5592
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../core/settle.js */ "./node_modules/axios/lib/core/settle.js");
|
|
5593
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/transitional.js */ "./node_modules/axios/lib/defaults/transitional.js");
|
|
5594
5594
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5595
|
-
/* harmony import */ var
|
|
5596
|
-
/* harmony import */ var
|
|
5597
|
-
/* harmony import */ var
|
|
5598
|
-
/* harmony import */ var
|
|
5599
|
-
/* harmony import */ var
|
|
5600
|
-
/* harmony import */ var
|
|
5595
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
|
|
5596
|
+
/* harmony import */ var _helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers/parseProtocol.js */ "./node_modules/axios/lib/helpers/parseProtocol.js");
|
|
5597
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
5598
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
5599
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "./node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
5600
|
+
/* harmony import */ var _helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../helpers/resolveConfig.js */ "./node_modules/axios/lib/helpers/resolveConfig.js");
|
|
5601
5601
|
|
|
5602
5602
|
|
|
5603
5603
|
|
|
@@ -5613,9 +5613,9 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5613
5613
|
|
|
5614
5614
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) {
|
|
5615
5615
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
5616
|
-
const _config = (0,
|
|
5616
|
+
const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__["default"])(config);
|
|
5617
5617
|
let requestData = _config.data;
|
|
5618
|
-
const requestHeaders =
|
|
5618
|
+
const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(_config.headers).normalize();
|
|
5619
5619
|
let {responseType, onUploadProgress, onDownloadProgress} = _config;
|
|
5620
5620
|
let onCanceled;
|
|
5621
5621
|
let uploadThrottled, downloadThrottled;
|
|
@@ -5642,7 +5642,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5642
5642
|
return;
|
|
5643
5643
|
}
|
|
5644
5644
|
// Prepare the response
|
|
5645
|
-
const responseHeaders =
|
|
5645
|
+
const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(
|
|
5646
5646
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
5647
5647
|
);
|
|
5648
5648
|
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
@@ -5656,7 +5656,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5656
5656
|
request
|
|
5657
5657
|
};
|
|
5658
5658
|
|
|
5659
|
-
(0,
|
|
5659
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function _resolve(value) {
|
|
5660
5660
|
resolve(value);
|
|
5661
5661
|
done();
|
|
5662
5662
|
}, function _reject(err) {
|
|
@@ -5716,7 +5716,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5716
5716
|
// Handle timeout
|
|
5717
5717
|
request.ontimeout = function handleTimeout() {
|
|
5718
5718
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
5719
|
-
const transitional = _config.transitional ||
|
|
5719
|
+
const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
5720
5720
|
if (_config.timeoutErrorMessage) {
|
|
5721
5721
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
5722
5722
|
}
|
|
@@ -5735,13 +5735,13 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5735
5735
|
|
|
5736
5736
|
// Add headers to the request
|
|
5737
5737
|
if ('setRequestHeader' in request) {
|
|
5738
|
-
|
|
5738
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
5739
5739
|
request.setRequestHeader(key, val);
|
|
5740
5740
|
});
|
|
5741
5741
|
}
|
|
5742
5742
|
|
|
5743
5743
|
// Add withCredentials to request if needed
|
|
5744
|
-
if (!
|
|
5744
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(_config.withCredentials)) {
|
|
5745
5745
|
request.withCredentials = !!_config.withCredentials;
|
|
5746
5746
|
}
|
|
5747
5747
|
|
|
@@ -5752,13 +5752,13 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5752
5752
|
|
|
5753
5753
|
// Handle progress if needed
|
|
5754
5754
|
if (onDownloadProgress) {
|
|
5755
|
-
([downloadThrottled, flushDownload] = (0,
|
|
5755
|
+
([downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onDownloadProgress, true));
|
|
5756
5756
|
request.addEventListener('progress', downloadThrottled);
|
|
5757
5757
|
}
|
|
5758
5758
|
|
|
5759
5759
|
// Not all browsers support upload events
|
|
5760
5760
|
if (onUploadProgress && request.upload) {
|
|
5761
|
-
([uploadThrottled, flushUpload] = (0,
|
|
5761
|
+
([uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onUploadProgress));
|
|
5762
5762
|
|
|
5763
5763
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
5764
5764
|
|
|
@@ -5772,7 +5772,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5772
5772
|
if (!request) {
|
|
5773
5773
|
return;
|
|
5774
5774
|
}
|
|
5775
|
-
reject(!cancel || cancel.type ? new
|
|
5775
|
+
reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, config, request) : cancel);
|
|
5776
5776
|
request.abort();
|
|
5777
5777
|
request = null;
|
|
5778
5778
|
};
|
|
@@ -5783,9 +5783,9 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5783
5783
|
}
|
|
5784
5784
|
}
|
|
5785
5785
|
|
|
5786
|
-
const protocol = (0,
|
|
5786
|
+
const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_config.url);
|
|
5787
5787
|
|
|
5788
|
-
if (protocol &&
|
|
5788
|
+
if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].protocols.indexOf(protocol) === -1) {
|
|
5789
5789
|
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"]('Unsupported protocol ' + protocol + ':', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_BAD_REQUEST, config));
|
|
5790
5790
|
return;
|
|
5791
5791
|
}
|
|
@@ -5809,21 +5809,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5809
5809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5810
5810
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5811
5811
|
/* harmony export */ });
|
|
5812
|
-
/* harmony import */ var
|
|
5812
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5813
5813
|
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js");
|
|
5814
|
-
/* harmony import */ var
|
|
5814
|
+
/* harmony import */ var _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./core/Axios.js */ "./node_modules/axios/lib/core/Axios.js");
|
|
5815
5815
|
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
|
|
5816
5816
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
|
|
5817
|
-
/* harmony import */ var
|
|
5818
|
-
/* harmony import */ var
|
|
5819
|
-
/* harmony import */ var
|
|
5820
|
-
/* harmony import */ var
|
|
5821
|
-
/* harmony import */ var
|
|
5822
|
-
/* harmony import */ var
|
|
5823
|
-
/* harmony import */ var
|
|
5824
|
-
/* harmony import */ var
|
|
5825
|
-
/* harmony import */ var
|
|
5826
|
-
/* harmony import */ var
|
|
5817
|
+
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js");
|
|
5818
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
|
|
5819
|
+
/* harmony import */ var _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancel/CancelToken.js */ "./node_modules/axios/lib/cancel/CancelToken.js");
|
|
5820
|
+
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js");
|
|
5821
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./env/data.js */ "./node_modules/axios/lib/env/data.js");
|
|
5822
|
+
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
|
|
5823
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5824
|
+
/* harmony import */ var _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers/spread.js */ "./node_modules/axios/lib/helpers/spread.js");
|
|
5825
|
+
/* harmony import */ var _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./helpers/isAxiosError.js */ "./node_modules/axios/lib/helpers/isAxiosError.js");
|
|
5826
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
5827
5827
|
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js");
|
|
5828
5828
|
/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/axios/lib/helpers/HttpStatusCode.js");
|
|
5829
5829
|
|
|
@@ -5854,14 +5854,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5854
5854
|
* @returns {Axios} A new instance of Axios
|
|
5855
5855
|
*/
|
|
5856
5856
|
function createInstance(defaultConfig) {
|
|
5857
|
-
const context = new
|
|
5858
|
-
const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
|
|
5857
|
+
const context = new _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"](defaultConfig);
|
|
5858
|
+
const instance = (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__["default"])(_core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype.request, context);
|
|
5859
5859
|
|
|
5860
5860
|
// Copy axios.prototype to instance
|
|
5861
|
-
|
|
5861
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype, context, {allOwnKeys: true});
|
|
5862
5862
|
|
|
5863
5863
|
// Copy context to instance
|
|
5864
|
-
|
|
5864
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, context, null, {allOwnKeys: true});
|
|
5865
5865
|
|
|
5866
5866
|
// Factory for creating new instances
|
|
5867
5867
|
instance.create = function create(instanceConfig) {
|
|
@@ -5875,17 +5875,17 @@ function createInstance(defaultConfig) {
|
|
|
5875
5875
|
const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
5876
5876
|
|
|
5877
5877
|
// Expose Axios class to allow class inheritance
|
|
5878
|
-
axios.Axios =
|
|
5878
|
+
axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
5879
5879
|
|
|
5880
5880
|
// Expose Cancel & CancelToken
|
|
5881
|
-
axios.CanceledError =
|
|
5882
|
-
axios.CancelToken =
|
|
5883
|
-
axios.isCancel =
|
|
5884
|
-
axios.VERSION =
|
|
5885
|
-
axios.toFormData =
|
|
5881
|
+
axios.CanceledError = _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_6__["default"];
|
|
5882
|
+
axios.CancelToken = _cancel_CancelToken_js__WEBPACK_IMPORTED_MODULE_7__["default"];
|
|
5883
|
+
axios.isCancel = _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_8__["default"];
|
|
5884
|
+
axios.VERSION = _env_data_js__WEBPACK_IMPORTED_MODULE_9__.VERSION;
|
|
5885
|
+
axios.toFormData = _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
5886
5886
|
|
|
5887
5887
|
// Expose AxiosError class
|
|
5888
|
-
axios.AxiosError =
|
|
5888
|
+
axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__["default"];
|
|
5889
5889
|
|
|
5890
5890
|
// alias for CanceledError for backward compatibility
|
|
5891
5891
|
axios.Cancel = axios.CanceledError;
|
|
@@ -5895,17 +5895,17 @@ axios.all = function all(promises) {
|
|
|
5895
5895
|
return Promise.all(promises);
|
|
5896
5896
|
};
|
|
5897
5897
|
|
|
5898
|
-
axios.spread =
|
|
5898
|
+
axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
5899
5899
|
|
|
5900
5900
|
// Expose isAxiosError
|
|
5901
|
-
axios.isAxiosError =
|
|
5901
|
+
axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__["default"];
|
|
5902
5902
|
|
|
5903
5903
|
// Expose mergeConfig
|
|
5904
5904
|
axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"];
|
|
5905
5905
|
|
|
5906
|
-
axios.AxiosHeaders =
|
|
5906
|
+
axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
5907
5907
|
|
|
5908
|
-
axios.formToJSON = thing => (0,
|
|
5908
|
+
axios.formToJSON = thing => (0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
5909
5909
|
|
|
5910
5910
|
axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter;
|
|
5911
5911
|
|
|
@@ -6139,14 +6139,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6139
6139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6140
6140
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6141
6141
|
/* harmony export */ });
|
|
6142
|
-
/* harmony import */ var
|
|
6143
|
-
/* harmony import */ var
|
|
6144
|
-
/* harmony import */ var
|
|
6145
|
-
/* harmony import */ var
|
|
6146
|
-
/* harmony import */ var
|
|
6147
|
-
/* harmony import */ var
|
|
6148
|
-
/* harmony import */ var
|
|
6149
|
-
/* harmony import */ var
|
|
6142
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
6143
|
+
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../helpers/buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js");
|
|
6144
|
+
/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InterceptorManager.js */ "./node_modules/axios/lib/core/InterceptorManager.js");
|
|
6145
|
+
/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dispatchRequest.js */ "./node_modules/axios/lib/core/dispatchRequest.js");
|
|
6146
|
+
/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
|
|
6147
|
+
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js");
|
|
6148
|
+
/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/validator.js */ "./node_modules/axios/lib/helpers/validator.js");
|
|
6149
|
+
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
6150
6150
|
|
|
6151
6151
|
|
|
6152
6152
|
|
|
@@ -6158,7 +6158,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6158
6158
|
|
|
6159
6159
|
|
|
6160
6160
|
|
|
6161
|
-
const validators =
|
|
6161
|
+
const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].validators;
|
|
6162
6162
|
|
|
6163
6163
|
/**
|
|
6164
6164
|
* Create a new instance of Axios
|
|
@@ -6171,8 +6171,8 @@ class Axios {
|
|
|
6171
6171
|
constructor(instanceConfig) {
|
|
6172
6172
|
this.defaults = instanceConfig || {};
|
|
6173
6173
|
this.interceptors = {
|
|
6174
|
-
request: new
|
|
6175
|
-
response: new
|
|
6174
|
+
request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"](),
|
|
6175
|
+
response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"]()
|
|
6176
6176
|
};
|
|
6177
6177
|
}
|
|
6178
6178
|
|
|
@@ -6221,12 +6221,12 @@ class Axios {
|
|
|
6221
6221
|
config = configOrUrl || {};
|
|
6222
6222
|
}
|
|
6223
6223
|
|
|
6224
|
-
config = (0,
|
|
6224
|
+
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(this.defaults, config);
|
|
6225
6225
|
|
|
6226
6226
|
const {transitional, paramsSerializer, headers} = config;
|
|
6227
6227
|
|
|
6228
6228
|
if (transitional !== undefined) {
|
|
6229
|
-
|
|
6229
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(transitional, {
|
|
6230
6230
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
6231
6231
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
6232
6232
|
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
@@ -6234,12 +6234,12 @@ class Axios {
|
|
|
6234
6234
|
}
|
|
6235
6235
|
|
|
6236
6236
|
if (paramsSerializer != null) {
|
|
6237
|
-
if (
|
|
6237
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(paramsSerializer)) {
|
|
6238
6238
|
config.paramsSerializer = {
|
|
6239
6239
|
serialize: paramsSerializer
|
|
6240
6240
|
}
|
|
6241
6241
|
} else {
|
|
6242
|
-
|
|
6242
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(paramsSerializer, {
|
|
6243
6243
|
encode: validators.function,
|
|
6244
6244
|
serialize: validators.function
|
|
6245
6245
|
}, true);
|
|
@@ -6255,7 +6255,7 @@ class Axios {
|
|
|
6255
6255
|
config.allowAbsoluteUrls = true;
|
|
6256
6256
|
}
|
|
6257
6257
|
|
|
6258
|
-
|
|
6258
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(config, {
|
|
6259
6259
|
baseUrl: validators.spelling('baseURL'),
|
|
6260
6260
|
withXsrfToken: validators.spelling('withXSRFToken')
|
|
6261
6261
|
}, true);
|
|
@@ -6264,19 +6264,19 @@ class Axios {
|
|
|
6264
6264
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
6265
6265
|
|
|
6266
6266
|
// Flatten headers
|
|
6267
|
-
let contextHeaders = headers &&
|
|
6267
|
+
let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(
|
|
6268
6268
|
headers.common,
|
|
6269
6269
|
headers[config.method]
|
|
6270
6270
|
);
|
|
6271
6271
|
|
|
6272
|
-
headers &&
|
|
6272
|
+
headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(
|
|
6273
6273
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
6274
6274
|
(method) => {
|
|
6275
6275
|
delete headers[method];
|
|
6276
6276
|
}
|
|
6277
6277
|
);
|
|
6278
6278
|
|
|
6279
|
-
config.headers =
|
|
6279
|
+
config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].concat(contextHeaders, headers);
|
|
6280
6280
|
|
|
6281
6281
|
// filter out skipped interceptors
|
|
6282
6282
|
const requestInterceptorChain = [];
|
|
@@ -6301,9 +6301,9 @@ class Axios {
|
|
|
6301
6301
|
let len;
|
|
6302
6302
|
|
|
6303
6303
|
if (!synchronousRequestInterceptors) {
|
|
6304
|
-
const chain = [
|
|
6305
|
-
chain.unshift
|
|
6306
|
-
chain.push
|
|
6304
|
+
const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__["default"].bind(this), undefined];
|
|
6305
|
+
chain.unshift(...requestInterceptorChain);
|
|
6306
|
+
chain.push(...responseInterceptorChain);
|
|
6307
6307
|
len = chain.length;
|
|
6308
6308
|
|
|
6309
6309
|
promise = Promise.resolve(config);
|
|
@@ -6333,7 +6333,7 @@ class Axios {
|
|
|
6333
6333
|
}
|
|
6334
6334
|
|
|
6335
6335
|
try {
|
|
6336
|
-
promise =
|
|
6336
|
+
promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__["default"].call(this, newConfig);
|
|
6337
6337
|
} catch (error) {
|
|
6338
6338
|
return Promise.reject(error);
|
|
6339
6339
|
}
|
|
@@ -6349,17 +6349,17 @@ class Axios {
|
|
|
6349
6349
|
}
|
|
6350
6350
|
|
|
6351
6351
|
getUri(config) {
|
|
6352
|
-
config = (0,
|
|
6353
|
-
const fullPath = (0,
|
|
6354
|
-
return (0,
|
|
6352
|
+
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(this.defaults, config);
|
|
6353
|
+
const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_5__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
6354
|
+
return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fullPath, config.params, config.paramsSerializer);
|
|
6355
6355
|
}
|
|
6356
6356
|
}
|
|
6357
6357
|
|
|
6358
6358
|
// Provide aliases for supported request methods
|
|
6359
|
-
|
|
6359
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
6360
6360
|
/*eslint func-names:0*/
|
|
6361
6361
|
Axios.prototype[method] = function(url, config) {
|
|
6362
|
-
return this.request((0,
|
|
6362
|
+
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
6363
6363
|
method,
|
|
6364
6364
|
url,
|
|
6365
6365
|
data: (config || {}).data
|
|
@@ -6367,12 +6367,12 @@ _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'hea
|
|
|
6367
6367
|
};
|
|
6368
6368
|
});
|
|
6369
6369
|
|
|
6370
|
-
|
|
6370
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
6371
6371
|
/*eslint func-names:0*/
|
|
6372
6372
|
|
|
6373
6373
|
function generateHTTPMethod(isForm) {
|
|
6374
6374
|
return function httpMethod(url, data, config) {
|
|
6375
|
-
return this.request((0,
|
|
6375
|
+
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
6376
6376
|
method,
|
|
6377
6377
|
headers: isForm ? {
|
|
6378
6378
|
'Content-Type': 'multipart/form-data'
|
|
@@ -6975,12 +6975,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6975
6975
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6976
6976
|
/* harmony export */ "default": () => (/* binding */ dispatchRequest)
|
|
6977
6977
|
/* harmony export */ });
|
|
6978
|
-
/* harmony import */ var
|
|
6979
|
-
/* harmony import */ var
|
|
6980
|
-
/* harmony import */ var
|
|
6981
|
-
/* harmony import */ var
|
|
6982
|
-
/* harmony import */ var
|
|
6983
|
-
/* harmony import */ var
|
|
6978
|
+
/* harmony import */ var _transformData_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./transformData.js */ "./node_modules/axios/lib/core/transformData.js");
|
|
6979
|
+
/* harmony import */ var _cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/isCancel.js */ "./node_modules/axios/lib/cancel/isCancel.js");
|
|
6980
|
+
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
|
|
6981
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
|
|
6982
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
6983
|
+
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js");
|
|
6984
6984
|
|
|
6985
6985
|
|
|
6986
6986
|
|
|
@@ -7003,7 +7003,7 @@ function throwIfCancellationRequested(config) {
|
|
|
7003
7003
|
}
|
|
7004
7004
|
|
|
7005
7005
|
if (config.signal && config.signal.aborted) {
|
|
7006
|
-
throw new
|
|
7006
|
+
throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__["default"](null, config);
|
|
7007
7007
|
}
|
|
7008
7008
|
}
|
|
7009
7009
|
|
|
@@ -7017,10 +7017,10 @@ function throwIfCancellationRequested(config) {
|
|
|
7017
7017
|
function dispatchRequest(config) {
|
|
7018
7018
|
throwIfCancellationRequested(config);
|
|
7019
7019
|
|
|
7020
|
-
config.headers =
|
|
7020
|
+
config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(config.headers);
|
|
7021
7021
|
|
|
7022
7022
|
// Transform request data
|
|
7023
|
-
config.data =
|
|
7023
|
+
config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7024
7024
|
config,
|
|
7025
7025
|
config.transformRequest
|
|
7026
7026
|
);
|
|
@@ -7029,33 +7029,33 @@ function dispatchRequest(config) {
|
|
|
7029
7029
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
7030
7030
|
}
|
|
7031
7031
|
|
|
7032
|
-
const adapter =
|
|
7032
|
+
const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_5__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].adapter);
|
|
7033
7033
|
|
|
7034
7034
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
7035
7035
|
throwIfCancellationRequested(config);
|
|
7036
7036
|
|
|
7037
7037
|
// Transform response data
|
|
7038
|
-
response.data =
|
|
7038
|
+
response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7039
7039
|
config,
|
|
7040
7040
|
config.transformResponse,
|
|
7041
7041
|
response
|
|
7042
7042
|
);
|
|
7043
7043
|
|
|
7044
|
-
response.headers =
|
|
7044
|
+
response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(response.headers);
|
|
7045
7045
|
|
|
7046
7046
|
return response;
|
|
7047
7047
|
}, function onAdapterRejection(reason) {
|
|
7048
|
-
if (!(0,
|
|
7048
|
+
if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reason)) {
|
|
7049
7049
|
throwIfCancellationRequested(config);
|
|
7050
7050
|
|
|
7051
7051
|
// Transform response data
|
|
7052
7052
|
if (reason && reason.response) {
|
|
7053
|
-
reason.response.data =
|
|
7053
|
+
reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7054
7054
|
config,
|
|
7055
7055
|
config.transformResponse,
|
|
7056
7056
|
reason.response
|
|
7057
7057
|
);
|
|
7058
|
-
reason.response.headers =
|
|
7058
|
+
reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(reason.response.headers);
|
|
7059
7059
|
}
|
|
7060
7060
|
}
|
|
7061
7061
|
|
|
@@ -7076,14 +7076,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7076
7076
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7077
7077
|
/* harmony export */ "default": () => (/* binding */ mergeConfig)
|
|
7078
7078
|
/* harmony export */ });
|
|
7079
|
-
/* harmony import */ var
|
|
7080
|
-
/* harmony import */ var
|
|
7079
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7080
|
+
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
7081
7081
|
|
|
7082
7082
|
|
|
7083
7083
|
|
|
7084
7084
|
|
|
7085
7085
|
|
|
7086
|
-
const headersToObject = (thing) => thing instanceof
|
|
7086
|
+
const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? { ...thing } : thing;
|
|
7087
7087
|
|
|
7088
7088
|
/**
|
|
7089
7089
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -7100,11 +7100,11 @@ function mergeConfig(config1, config2) {
|
|
|
7100
7100
|
const config = {};
|
|
7101
7101
|
|
|
7102
7102
|
function getMergedValue(target, source, prop, caseless) {
|
|
7103
|
-
if (
|
|
7104
|
-
return
|
|
7105
|
-
} else if (
|
|
7106
|
-
return
|
|
7107
|
-
} else if (
|
|
7103
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
7104
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({caseless}, target, source);
|
|
7105
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isPlainObject(source)) {
|
|
7106
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge({}, source);
|
|
7107
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(source)) {
|
|
7108
7108
|
return source.slice();
|
|
7109
7109
|
}
|
|
7110
7110
|
return source;
|
|
@@ -7112,25 +7112,25 @@ function mergeConfig(config1, config2) {
|
|
|
7112
7112
|
|
|
7113
7113
|
// eslint-disable-next-line consistent-return
|
|
7114
7114
|
function mergeDeepProperties(a, b, prop , caseless) {
|
|
7115
|
-
if (!
|
|
7115
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7116
7116
|
return getMergedValue(a, b, prop , caseless);
|
|
7117
|
-
} else if (!
|
|
7117
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
7118
7118
|
return getMergedValue(undefined, a, prop , caseless);
|
|
7119
7119
|
}
|
|
7120
7120
|
}
|
|
7121
7121
|
|
|
7122
7122
|
// eslint-disable-next-line consistent-return
|
|
7123
7123
|
function valueFromConfig2(a, b) {
|
|
7124
|
-
if (!
|
|
7124
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7125
7125
|
return getMergedValue(undefined, b);
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
7128
|
|
|
7129
7129
|
// eslint-disable-next-line consistent-return
|
|
7130
7130
|
function defaultToConfig2(a, b) {
|
|
7131
|
-
if (!
|
|
7131
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7132
7132
|
return getMergedValue(undefined, b);
|
|
7133
|
-
} else if (!
|
|
7133
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
7134
7134
|
return getMergedValue(undefined, a);
|
|
7135
7135
|
}
|
|
7136
7136
|
}
|
|
@@ -7176,10 +7176,10 @@ function mergeConfig(config1, config2) {
|
|
|
7176
7176
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
7177
7177
|
};
|
|
7178
7178
|
|
|
7179
|
-
|
|
7179
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
7180
7180
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
7181
7181
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
7182
|
-
(
|
|
7182
|
+
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
7183
7183
|
});
|
|
7184
7184
|
|
|
7185
7185
|
return config;
|
|
@@ -7240,9 +7240,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7240
7240
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7241
7241
|
/* harmony export */ "default": () => (/* binding */ transformData)
|
|
7242
7242
|
/* harmony export */ });
|
|
7243
|
-
/* harmony import */ var
|
|
7244
|
-
/* harmony import */ var
|
|
7245
|
-
/* harmony import */ var
|
|
7243
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7244
|
+
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
|
|
7245
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
7246
7246
|
|
|
7247
7247
|
|
|
7248
7248
|
|
|
@@ -7258,12 +7258,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7258
7258
|
* @returns {*} The resulting transformed data
|
|
7259
7259
|
*/
|
|
7260
7260
|
function transformData(fns, response) {
|
|
7261
|
-
const config = this ||
|
|
7261
|
+
const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
7262
7262
|
const context = response || config;
|
|
7263
|
-
const headers =
|
|
7263
|
+
const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(context.headers);
|
|
7264
7264
|
let data = context.data;
|
|
7265
7265
|
|
|
7266
|
-
|
|
7266
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(fns, function transform(fn) {
|
|
7267
7267
|
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
|
|
7268
7268
|
});
|
|
7269
7269
|
|
|
@@ -7286,12 +7286,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7286
7286
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7287
7287
|
/* harmony export */ });
|
|
7288
7288
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7289
|
-
/* harmony import */ var
|
|
7290
|
-
/* harmony import */ var
|
|
7291
|
-
/* harmony import */ var
|
|
7292
|
-
/* harmony import */ var
|
|
7293
|
-
/* harmony import */ var
|
|
7294
|
-
/* harmony import */ var
|
|
7289
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
7290
|
+
/* harmony import */ var _transitional_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./transitional.js */ "./node_modules/axios/lib/defaults/transitional.js");
|
|
7291
|
+
/* harmony import */ var _helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../helpers/toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
|
|
7292
|
+
/* harmony import */ var _helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/toURLEncodedForm.js */ "./node_modules/axios/lib/helpers/toURLEncodedForm.js");
|
|
7293
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
7294
|
+
/* harmony import */ var _helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/formDataToJSON.js */ "./node_modules/axios/lib/helpers/formDataToJSON.js");
|
|
7295
7295
|
|
|
7296
7296
|
|
|
7297
7297
|
|
|
@@ -7329,7 +7329,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
7329
7329
|
|
|
7330
7330
|
const defaults = {
|
|
7331
7331
|
|
|
7332
|
-
transitional:
|
|
7332
|
+
transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
7333
7333
|
|
|
7334
7334
|
adapter: ['xhr', 'http', 'fetch'],
|
|
7335
7335
|
|
|
@@ -7345,7 +7345,7 @@ const defaults = {
|
|
|
7345
7345
|
const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
|
|
7346
7346
|
|
|
7347
7347
|
if (isFormData) {
|
|
7348
|
-
return hasJSONContentType ? JSON.stringify((0,
|
|
7348
|
+
return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__["default"])(data)) : data;
|
|
7349
7349
|
}
|
|
7350
7350
|
|
|
7351
7351
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) ||
|
|
@@ -7369,13 +7369,13 @@ const defaults = {
|
|
|
7369
7369
|
|
|
7370
7370
|
if (isObjectPayload) {
|
|
7371
7371
|
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
7372
|
-
return (0,
|
|
7372
|
+
return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__["default"])(data, this.formSerializer).toString();
|
|
7373
7373
|
}
|
|
7374
7374
|
|
|
7375
7375
|
if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
7376
7376
|
const _FormData = this.env && this.env.FormData;
|
|
7377
7377
|
|
|
7378
|
-
return (0,
|
|
7378
|
+
return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
7379
7379
|
isFileList ? {'files[]': data} : data,
|
|
7380
7380
|
_FormData && new _FormData(),
|
|
7381
7381
|
this.formSerializer
|
|
@@ -7409,7 +7409,7 @@ const defaults = {
|
|
|
7409
7409
|
} catch (e) {
|
|
7410
7410
|
if (strictJSONParsing) {
|
|
7411
7411
|
if (e.name === 'SyntaxError') {
|
|
7412
|
-
throw
|
|
7412
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(e, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ERR_BAD_RESPONSE, this, null, this.response);
|
|
7413
7413
|
}
|
|
7414
7414
|
throw e;
|
|
7415
7415
|
}
|
|
@@ -7432,8 +7432,8 @@ const defaults = {
|
|
|
7432
7432
|
maxBodyLength: -1,
|
|
7433
7433
|
|
|
7434
7434
|
env: {
|
|
7435
|
-
FormData:
|
|
7436
|
-
Blob:
|
|
7435
|
+
FormData: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].classes.FormData,
|
|
7436
|
+
Blob: _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].classes.Blob
|
|
7437
7437
|
},
|
|
7438
7438
|
|
|
7439
7439
|
validateStatus: function validateStatus(status) {
|
|
@@ -7488,7 +7488,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7488
7488
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7489
7489
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
7490
7490
|
/* harmony export */ });
|
|
7491
|
-
const VERSION = "1.
|
|
7491
|
+
const VERSION = "1.11.0";
|
|
7492
7492
|
|
|
7493
7493
|
/***/ }),
|
|
7494
7494
|
|
|
@@ -7795,8 +7795,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7795
7795
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7796
7796
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7797
7797
|
/* harmony export */ });
|
|
7798
|
-
/* harmony import */ var
|
|
7799
|
-
/* harmony import */ var
|
|
7798
|
+
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "./node_modules/axios/lib/cancel/CanceledError.js");
|
|
7799
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
7800
7800
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7801
7801
|
|
|
7802
7802
|
|
|
@@ -7815,13 +7815,13 @@ const composeSignals = (signals, timeout) => {
|
|
|
7815
7815
|
aborted = true;
|
|
7816
7816
|
unsubscribe();
|
|
7817
7817
|
const err = reason instanceof Error ? reason : this.reason;
|
|
7818
|
-
controller.abort(err instanceof
|
|
7818
|
+
controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_0__["default"](err instanceof Error ? err.message : err));
|
|
7819
7819
|
}
|
|
7820
7820
|
}
|
|
7821
7821
|
|
|
7822
7822
|
let timer = timeout && setTimeout(() => {
|
|
7823
7823
|
timer = null;
|
|
7824
|
-
onabort(new
|
|
7824
|
+
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"].ETIMEDOUT))
|
|
7825
7825
|
}, timeout)
|
|
7826
7826
|
|
|
7827
7827
|
const unsubscribe = () => {
|
|
@@ -7860,23 +7860,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7860
7860
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7861
7861
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7862
7862
|
/* harmony export */ });
|
|
7863
|
-
/* harmony import */ var
|
|
7864
|
-
/* harmony import */ var
|
|
7863
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7864
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
7865
7865
|
|
|
7866
7866
|
|
|
7867
7867
|
|
|
7868
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
7868
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasStandardBrowserEnv ?
|
|
7869
7869
|
|
|
7870
7870
|
// Standard browser envs support document.cookie
|
|
7871
7871
|
{
|
|
7872
7872
|
write(name, value, expires, path, domain, secure) {
|
|
7873
7873
|
const cookie = [name + '=' + encodeURIComponent(value)];
|
|
7874
7874
|
|
|
7875
|
-
|
|
7875
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
7876
7876
|
|
|
7877
|
-
|
|
7877
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(path) && cookie.push('path=' + path);
|
|
7878
7878
|
|
|
7879
|
-
|
|
7879
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(domain) && cookie.push('domain=' + domain);
|
|
7880
7880
|
|
|
7881
7881
|
secure === true && cookie.push('secure');
|
|
7882
7882
|
|
|
@@ -8284,14 +8284,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8284
8284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8285
8285
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8286
8286
|
/* harmony export */ });
|
|
8287
|
-
/* harmony import */ var
|
|
8288
|
-
/* harmony import */ var
|
|
8289
|
-
/* harmony import */ var
|
|
8290
|
-
/* harmony import */ var
|
|
8291
|
-
/* harmony import */ var
|
|
8292
|
-
/* harmony import */ var
|
|
8293
|
-
/* harmony import */ var
|
|
8294
|
-
/* harmony import */ var
|
|
8287
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
8288
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
8289
|
+
/* harmony import */ var _isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./isURLSameOrigin.js */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
|
|
8290
|
+
/* harmony import */ var _cookies_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./cookies.js */ "./node_modules/axios/lib/helpers/cookies.js");
|
|
8291
|
+
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/buildFullPath.js */ "./node_modules/axios/lib/core/buildFullPath.js");
|
|
8292
|
+
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
|
|
8293
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "./node_modules/axios/lib/core/AxiosHeaders.js");
|
|
8294
|
+
/* harmony import */ var _buildURL_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./buildURL.js */ "./node_modules/axios/lib/helpers/buildURL.js");
|
|
8295
8295
|
|
|
8296
8296
|
|
|
8297
8297
|
|
|
@@ -8302,13 +8302,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8302
8302
|
|
|
8303
8303
|
|
|
8304
8304
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
|
|
8305
|
-
const newConfig = (0,
|
|
8305
|
+
const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_5__["default"])({}, config);
|
|
8306
8306
|
|
|
8307
8307
|
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
8308
8308
|
|
|
8309
|
-
newConfig.headers = headers =
|
|
8309
|
+
newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(headers);
|
|
8310
8310
|
|
|
8311
|
-
newConfig.url = (0,
|
|
8311
|
+
newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_7__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_4__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
8312
8312
|
|
|
8313
8313
|
// HTTP basic authentication
|
|
8314
8314
|
if (auth) {
|
|
@@ -8319,8 +8319,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8319
8319
|
|
|
8320
8320
|
let contentType;
|
|
8321
8321
|
|
|
8322
|
-
if (
|
|
8323
|
-
if (
|
|
8322
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFormData(data)) {
|
|
8323
|
+
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserWebWorkerEnv) {
|
|
8324
8324
|
headers.setContentType(undefined); // Let the browser set it
|
|
8325
8325
|
} else if ((contentType = headers.getContentType()) !== false) {
|
|
8326
8326
|
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
@@ -8333,12 +8333,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8333
8333
|
// This is only done if running in a standard browser environment.
|
|
8334
8334
|
// Specifically not if we're in a web worker, or react-native.
|
|
8335
8335
|
|
|
8336
|
-
if (
|
|
8337
|
-
withXSRFToken &&
|
|
8336
|
+
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].hasStandardBrowserEnv) {
|
|
8337
|
+
withXSRFToken && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
8338
8338
|
|
|
8339
|
-
if (withXSRFToken || (withXSRFToken !== false && (0,
|
|
8339
|
+
if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_2__["default"])(newConfig.url))) {
|
|
8340
8340
|
// Add xsrf header
|
|
8341
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
8341
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_3__["default"].read(xsrfCookieName);
|
|
8342
8342
|
|
|
8343
8343
|
if (xsrfValue) {
|
|
8344
8344
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -8493,7 +8493,7 @@ function throttle(fn, freq) {
|
|
|
8493
8493
|
clearTimeout(timer);
|
|
8494
8494
|
timer = null;
|
|
8495
8495
|
}
|
|
8496
|
-
fn
|
|
8496
|
+
fn(...args);
|
|
8497
8497
|
}
|
|
8498
8498
|
|
|
8499
8499
|
const throttled = (...args) => {
|
|
@@ -8533,8 +8533,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8533
8533
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8534
8534
|
/* harmony export */ });
|
|
8535
8535
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
8536
|
-
/* harmony import */ var
|
|
8537
|
-
/* harmony import */ var
|
|
8536
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
8537
|
+
/* harmony import */ var _platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/node/classes/FormData.js */ "./node_modules/axios/lib/helpers/null.js");
|
|
8538
8538
|
|
|
8539
8539
|
|
|
8540
8540
|
|
|
@@ -8626,7 +8626,7 @@ function toFormData(obj, formData, options) {
|
|
|
8626
8626
|
}
|
|
8627
8627
|
|
|
8628
8628
|
// eslint-disable-next-line no-param-reassign
|
|
8629
|
-
formData = formData || new (
|
|
8629
|
+
formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"] || FormData)();
|
|
8630
8630
|
|
|
8631
8631
|
// eslint-disable-next-line no-param-reassign
|
|
8632
8632
|
options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, {
|
|
@@ -8657,8 +8657,12 @@ function toFormData(obj, formData, options) {
|
|
|
8657
8657
|
return value.toISOString();
|
|
8658
8658
|
}
|
|
8659
8659
|
|
|
8660
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBoolean(value)) {
|
|
8661
|
+
return value.toString();
|
|
8662
|
+
}
|
|
8663
|
+
|
|
8660
8664
|
if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) {
|
|
8661
|
-
throw new
|
|
8665
|
+
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Blob is not supported. Use a Buffer instead.');
|
|
8662
8666
|
}
|
|
8663
8667
|
|
|
8664
8668
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) {
|
|
@@ -8768,9 +8772,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8768
8772
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8769
8773
|
/* harmony export */ "default": () => (/* binding */ toURLEncodedForm)
|
|
8770
8774
|
/* harmony export */ });
|
|
8771
|
-
/* harmony import */ var
|
|
8772
|
-
/* harmony import */ var
|
|
8773
|
-
/* harmony import */ var
|
|
8775
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
8776
|
+
/* harmony import */ var _toFormData_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toFormData.js */ "./node_modules/axios/lib/helpers/toFormData.js");
|
|
8777
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
8774
8778
|
|
|
8775
8779
|
|
|
8776
8780
|
|
|
@@ -8778,16 +8782,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8778
8782
|
|
|
8779
8783
|
|
|
8780
8784
|
function toURLEncodedForm(data, options) {
|
|
8781
|
-
return (0,
|
|
8785
|
+
return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].classes.URLSearchParams(), {
|
|
8782
8786
|
visitor: function(value, key, path, helpers) {
|
|
8783
|
-
if (
|
|
8787
|
+
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(value)) {
|
|
8784
8788
|
this.append(key, value.toString('base64'));
|
|
8785
8789
|
return false;
|
|
8786
8790
|
}
|
|
8787
8791
|
|
|
8788
8792
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
8789
|
-
}
|
|
8790
|
-
|
|
8793
|
+
},
|
|
8794
|
+
...options
|
|
8795
|
+
});
|
|
8791
8796
|
}
|
|
8792
8797
|
|
|
8793
8798
|
|
|
@@ -9167,14 +9172,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9167
9172
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9168
9173
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9169
9174
|
/* harmony export */ });
|
|
9170
|
-
/* harmony import */ var
|
|
9171
|
-
/* harmony import */ var
|
|
9175
|
+
/* harmony import */ var _node_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node/index.js */ "./node_modules/axios/lib/platform/browser/index.js");
|
|
9176
|
+
/* harmony import */ var _common_utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common/utils.js */ "./node_modules/axios/lib/platform/common/utils.js");
|
|
9172
9177
|
|
|
9173
9178
|
|
|
9174
9179
|
|
|
9175
9180
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
9176
|
-
...
|
|
9177
|
-
...
|
|
9181
|
+
..._common_utils_js__WEBPACK_IMPORTED_MODULE_1__,
|
|
9182
|
+
..._node_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
9178
9183
|
});
|
|
9179
9184
|
|
|
9180
9185
|
|
|
@@ -9329,6 +9334,27 @@ const isPlainObject = (val) => {
|
|
|
9329
9334
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
9330
9335
|
}
|
|
9331
9336
|
|
|
9337
|
+
/**
|
|
9338
|
+
* Determine if a value is an empty object (safely handles Buffers)
|
|
9339
|
+
*
|
|
9340
|
+
* @param {*} val The value to test
|
|
9341
|
+
*
|
|
9342
|
+
* @returns {boolean} True if value is an empty object, otherwise false
|
|
9343
|
+
*/
|
|
9344
|
+
const isEmptyObject = (val) => {
|
|
9345
|
+
// Early return for non-objects or Buffers to prevent RangeError
|
|
9346
|
+
if (!isObject(val) || isBuffer(val)) {
|
|
9347
|
+
return false;
|
|
9348
|
+
}
|
|
9349
|
+
|
|
9350
|
+
try {
|
|
9351
|
+
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
9352
|
+
} catch (e) {
|
|
9353
|
+
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
9354
|
+
return false;
|
|
9355
|
+
}
|
|
9356
|
+
}
|
|
9357
|
+
|
|
9332
9358
|
/**
|
|
9333
9359
|
* Determine if a value is a Date
|
|
9334
9360
|
*
|
|
@@ -9451,6 +9477,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
9451
9477
|
fn.call(null, obj[i], i, obj);
|
|
9452
9478
|
}
|
|
9453
9479
|
} else {
|
|
9480
|
+
// Buffer check
|
|
9481
|
+
if (isBuffer(obj)) {
|
|
9482
|
+
return;
|
|
9483
|
+
}
|
|
9484
|
+
|
|
9454
9485
|
// Iterate over object keys
|
|
9455
9486
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
9456
9487
|
const len = keys.length;
|
|
@@ -9464,6 +9495,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
9464
9495
|
}
|
|
9465
9496
|
|
|
9466
9497
|
function findKey(obj, key) {
|
|
9498
|
+
if (isBuffer(obj)){
|
|
9499
|
+
return null;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9467
9502
|
key = key.toLowerCase();
|
|
9468
9503
|
const keys = Object.keys(obj);
|
|
9469
9504
|
let i = keys.length;
|
|
@@ -9817,6 +9852,11 @@ const toJSONObject = (obj) => {
|
|
|
9817
9852
|
return;
|
|
9818
9853
|
}
|
|
9819
9854
|
|
|
9855
|
+
//Buffer check
|
|
9856
|
+
if (isBuffer(source)) {
|
|
9857
|
+
return source;
|
|
9858
|
+
}
|
|
9859
|
+
|
|
9820
9860
|
if(!('toJSON' in source)) {
|
|
9821
9861
|
stack[i] = source;
|
|
9822
9862
|
const target = isArray(source) ? [] : {};
|
|
@@ -9888,6 +9928,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
9888
9928
|
isBoolean,
|
|
9889
9929
|
isObject,
|
|
9890
9930
|
isPlainObject,
|
|
9931
|
+
isEmptyObject,
|
|
9891
9932
|
isReadableStream,
|
|
9892
9933
|
isRequest,
|
|
9893
9934
|
isResponse,
|