@kontent-ai/delivery-sdk 16.2.0 → 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 +289 -238
- 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 +839 -811
- package/dist/bundles/stats.min.json +1089 -1047
- package/dist/cjs/client/delivery-client.d.ts +10 -2
- package/dist/cjs/client/delivery-client.js +10 -2
- package/dist/cjs/client/delivery-client.js.map +1 -1
- package/dist/cjs/client/idelivery-client.interface.d.ts +10 -2
- package/dist/cjs/query/sync/initialize-sync-query.class.js +1 -0
- package/dist/cjs/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/cjs/query/sync/sync-changes-query.class.js +1 -0
- package/dist/cjs/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/cjs/sdk-info.generated.js +1 -1
- package/dist/es6/client/delivery-client.d.ts +10 -2
- package/dist/es6/client/delivery-client.js +10 -2
- package/dist/es6/client/delivery-client.js.map +1 -1
- package/dist/es6/client/idelivery-client.interface.d.ts +10 -2
- package/dist/es6/query/sync/initialize-sync-query.class.js +1 -0
- package/dist/es6/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/es6/query/sync/sync-changes-query.class.js +1 -0
- package/dist/es6/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/es6/sdk-info.generated.js +1 -1
- package/dist/esnext/client/delivery-client.d.ts +10 -2
- package/dist/esnext/client/delivery-client.js +10 -2
- package/dist/esnext/client/delivery-client.js.map +1 -1
- package/dist/esnext/client/idelivery-client.interface.d.ts +10 -2
- package/dist/esnext/query/sync/initialize-sync-query.class.js +1 -0
- package/dist/esnext/query/sync/initialize-sync-query.class.js.map +1 -1
- package/dist/esnext/query/sync/sync-changes-query.class.js +1 -0
- package/dist/esnext/query/sync/sync-changes-query.class.js.map +1 -1
- package/dist/esnext/sdk-info.generated.js +1 -1
- package/lib/client/delivery-client.ts +10 -2
- package/lib/client/idelivery-client.interface.ts +10 -2
- package/lib/query/sync/initialize-sync-query.class.ts +3 -0
- package/lib/query/sync/sync-changes-query.class.ts +3 -0
- package/lib/sdk-info.generated.ts +1 -1
- package/package.json +12 -12
|
@@ -121,13 +121,21 @@ class DeliveryClient {
|
|
|
121
121
|
return new query_1.ElementQuery(this.config, this.queryService, typeCodename, elementCodename);
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* @deprecated Sync API v1 is deprecated and will be shut down by the end of this year.
|
|
125
|
+
* Please migrate to Sync API v2 using the `@kontent-ai/sync-sdk` package.
|
|
126
|
+
*
|
|
127
|
+
* For migration guidance and full documentation, visit:
|
|
128
|
+
* https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/
|
|
125
129
|
*/
|
|
126
130
|
initializeSync() {
|
|
127
131
|
return new query_1.InitializeSyncQuery(this.config, this.queryService);
|
|
128
132
|
}
|
|
129
133
|
/**
|
|
130
|
-
*
|
|
134
|
+
* @deprecated Sync API v1 is deprecated and will be shut down by the end of this year.
|
|
135
|
+
* Please migrate to Sync API v2 using the `@kontent-ai/sync-sdk` package.
|
|
136
|
+
*
|
|
137
|
+
* For migration guidance and full documentation, visit:
|
|
138
|
+
* https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/
|
|
131
139
|
*/
|
|
132
140
|
syncChanges() {
|
|
133
141
|
return new query_1.SyncChangesQuery(this.config, this.queryService);
|
|
@@ -3099,6 +3107,7 @@ class InitializeSyncQuery extends base_query_class_1.BaseQuery {
|
|
|
3099
3107
|
}
|
|
3100
3108
|
toPromise() {
|
|
3101
3109
|
var _a;
|
|
3110
|
+
console.warn(`Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/`);
|
|
3102
3111
|
return this.queryService.initializeSync(this.getUrl(), (_a = this._queryConfig) !== null && _a !== void 0 ? _a : {});
|
|
3103
3112
|
}
|
|
3104
3113
|
getUrl() {
|
|
@@ -3142,6 +3151,7 @@ class SyncChangesQuery extends base_listing_query_class_1.BaseListingQuery {
|
|
|
3142
3151
|
}
|
|
3143
3152
|
toPromise() {
|
|
3144
3153
|
var _a;
|
|
3154
|
+
console.warn(`Sync Api v1 is deprecated. Please use the new Sync Api v2. https://kontent.ai/learn/docs/apis/openapi/sync-api-v2/`);
|
|
3145
3155
|
return this.queryService.syncChanges(this.getUrl(), (_a = this._queryConfig) !== null && _a !== void 0 ? _a : {});
|
|
3146
3156
|
}
|
|
3147
3157
|
getUrl() {
|
|
@@ -3491,7 +3501,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3491
3501
|
exports.sdkInfo = void 0;
|
|
3492
3502
|
exports.sdkInfo = {
|
|
3493
3503
|
host: 'npmjs.com',
|
|
3494
|
-
version: '16.
|
|
3504
|
+
version: '16.3.0',
|
|
3495
3505
|
name: '@kontent-ai/delivery-sdk'
|
|
3496
3506
|
};
|
|
3497
3507
|
|
|
@@ -4655,10 +4665,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4655
4665
|
/* harmony export */ postWithRetryAsync: () => (/* binding */ postWithRetryAsync),
|
|
4656
4666
|
/* harmony export */ putWithRetryAsync: () => (/* binding */ putWithRetryAsync)
|
|
4657
4667
|
/* harmony export */ });
|
|
4658
|
-
/* harmony import */ var
|
|
4659
|
-
/* harmony import */ var
|
|
4660
|
-
/* harmony import */ var
|
|
4661
|
-
/* 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");
|
|
4662
4672
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4663
4673
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4664
4674
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -4675,7 +4685,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4675
4685
|
function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4676
4686
|
var _a;
|
|
4677
4687
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4678
|
-
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;
|
|
4679
4689
|
return yield runWithRetryAsync({
|
|
4680
4690
|
retryAttempt: 0,
|
|
4681
4691
|
url: call.url,
|
|
@@ -4683,7 +4693,7 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4683
4693
|
functionsConfig: functionsConfig,
|
|
4684
4694
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4685
4695
|
var _b, _c;
|
|
4686
|
-
|
|
4696
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4687
4697
|
const axiosResponse = yield instance.get(call.url, {
|
|
4688
4698
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4689
4699
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4692,14 +4702,14 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4692
4702
|
const response = {
|
|
4693
4703
|
data: axiosResponse.data,
|
|
4694
4704
|
rawResponse: axiosResponse,
|
|
4695
|
-
headers: (0,
|
|
4705
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4696
4706
|
status: axiosResponse.status,
|
|
4697
4707
|
retryStrategy: {
|
|
4698
4708
|
options: retryStrategyOptions,
|
|
4699
4709
|
retryAttempts: retryAttempt
|
|
4700
4710
|
}
|
|
4701
4711
|
};
|
|
4702
|
-
|
|
4712
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4703
4713
|
return response;
|
|
4704
4714
|
})
|
|
4705
4715
|
});
|
|
@@ -4708,7 +4718,7 @@ function getWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4708
4718
|
function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4709
4719
|
var _a;
|
|
4710
4720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4711
|
-
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;
|
|
4712
4722
|
return yield runWithRetryAsync({
|
|
4713
4723
|
retryAttempt: 0,
|
|
4714
4724
|
url: call.url,
|
|
@@ -4716,7 +4726,7 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4716
4726
|
functionsConfig: functionsConfig,
|
|
4717
4727
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4718
4728
|
var _b, _c;
|
|
4719
|
-
|
|
4729
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4720
4730
|
const axiosResponse = yield instance.post(call.url, call.body, {
|
|
4721
4731
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4722
4732
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4729,14 +4739,14 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4729
4739
|
const response = {
|
|
4730
4740
|
data: axiosResponse.data,
|
|
4731
4741
|
rawResponse: axiosResponse,
|
|
4732
|
-
headers: (0,
|
|
4742
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4733
4743
|
status: axiosResponse.status,
|
|
4734
4744
|
retryStrategy: {
|
|
4735
4745
|
options: retryStrategyOptions,
|
|
4736
4746
|
retryAttempts: retryAttempt
|
|
4737
4747
|
}
|
|
4738
4748
|
};
|
|
4739
|
-
|
|
4749
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4740
4750
|
return response;
|
|
4741
4751
|
})
|
|
4742
4752
|
});
|
|
@@ -4745,7 +4755,7 @@ function postWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4745
4755
|
function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4746
4756
|
var _a;
|
|
4747
4757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4748
|
-
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;
|
|
4749
4759
|
return yield runWithRetryAsync({
|
|
4750
4760
|
retryAttempt: 0,
|
|
4751
4761
|
url: call.url,
|
|
@@ -4753,7 +4763,7 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4753
4763
|
functionsConfig: functionsConfig,
|
|
4754
4764
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4755
4765
|
var _b, _c;
|
|
4756
|
-
|
|
4766
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4757
4767
|
const axiosResponse = yield instance.put(call.url, call.body, {
|
|
4758
4768
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4759
4769
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4766,14 +4776,14 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4766
4776
|
const response = {
|
|
4767
4777
|
data: axiosResponse.data,
|
|
4768
4778
|
rawResponse: axiosResponse,
|
|
4769
|
-
headers: (0,
|
|
4779
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4770
4780
|
status: axiosResponse.status,
|
|
4771
4781
|
retryStrategy: {
|
|
4772
4782
|
options: retryStrategyOptions,
|
|
4773
4783
|
retryAttempts: retryAttempt
|
|
4774
4784
|
}
|
|
4775
4785
|
};
|
|
4776
|
-
|
|
4786
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4777
4787
|
return response;
|
|
4778
4788
|
})
|
|
4779
4789
|
});
|
|
@@ -4782,7 +4792,7 @@ function putWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4782
4792
|
function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4783
4793
|
var _a;
|
|
4784
4794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4785
|
-
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;
|
|
4786
4796
|
return yield runWithRetryAsync({
|
|
4787
4797
|
retryAttempt: 0,
|
|
4788
4798
|
url: call.url,
|
|
@@ -4790,7 +4800,7 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4790
4800
|
functionsConfig: functionsConfig,
|
|
4791
4801
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4792
4802
|
var _b, _c;
|
|
4793
|
-
|
|
4803
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4794
4804
|
const axiosResponse = yield instance.patch(call.url, call.body, {
|
|
4795
4805
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4796
4806
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4803,14 +4813,14 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4803
4813
|
const response = {
|
|
4804
4814
|
data: axiosResponse.data,
|
|
4805
4815
|
rawResponse: axiosResponse,
|
|
4806
|
-
headers: (0,
|
|
4816
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4807
4817
|
status: axiosResponse.status,
|
|
4808
4818
|
retryStrategy: {
|
|
4809
4819
|
options: retryStrategyOptions,
|
|
4810
4820
|
retryAttempts: retryAttempt
|
|
4811
4821
|
}
|
|
4812
4822
|
};
|
|
4813
|
-
|
|
4823
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4814
4824
|
return response;
|
|
4815
4825
|
})
|
|
4816
4826
|
});
|
|
@@ -4819,7 +4829,7 @@ function patchWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4819
4829
|
function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
4820
4830
|
var _a;
|
|
4821
4831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4822
|
-
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;
|
|
4823
4833
|
return yield runWithRetryAsync({
|
|
4824
4834
|
retryAttempt: 0,
|
|
4825
4835
|
url: call.url,
|
|
@@ -4827,7 +4837,7 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4827
4837
|
functionsConfig: functionsConfig,
|
|
4828
4838
|
call: (retryAttempt) => __awaiter(this, void 0, void 0, function* () {
|
|
4829
4839
|
var _b, _c;
|
|
4830
|
-
|
|
4840
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugStartHttpRequest();
|
|
4831
4841
|
const axiosResponse = yield instance.delete(call.url, {
|
|
4832
4842
|
headers: getHeadersJson((_b = options === null || options === void 0 ? void 0 : options.headers) !== null && _b !== void 0 ? _b : [], false),
|
|
4833
4843
|
responseType: options === null || options === void 0 ? void 0 : options.responseType,
|
|
@@ -4840,14 +4850,14 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4840
4850
|
const response = {
|
|
4841
4851
|
data: axiosResponse.data,
|
|
4842
4852
|
rawResponse: axiosResponse,
|
|
4843
|
-
headers: (0,
|
|
4853
|
+
headers: (0,_helpers_headers_helper__WEBPACK_IMPORTED_MODULE_1__.extractHeadersFromAxiosResponse)(axiosResponse),
|
|
4844
4854
|
status: axiosResponse.status,
|
|
4845
4855
|
retryStrategy: {
|
|
4846
4856
|
options: retryStrategyOptions,
|
|
4847
4857
|
retryAttempts: retryAttempt
|
|
4848
4858
|
}
|
|
4849
4859
|
};
|
|
4850
|
-
|
|
4860
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugSuccessHttpRequest();
|
|
4851
4861
|
return response;
|
|
4852
4862
|
})
|
|
4853
4863
|
});
|
|
@@ -4855,12 +4865,12 @@ function deleteWithRetryAsync(instance, call, functionsConfig, options) {
|
|
|
4855
4865
|
}
|
|
4856
4866
|
function createCancelToken() {
|
|
4857
4867
|
let canceler;
|
|
4858
|
-
const token = new
|
|
4868
|
+
const token = new axios__WEBPACK_IMPORTED_MODULE_0__["default"].CancelToken((c) => {
|
|
4859
4869
|
// An executor function receives a cancel function as a parameter
|
|
4860
4870
|
canceler = c;
|
|
4861
4871
|
});
|
|
4862
4872
|
return {
|
|
4863
|
-
cancel: (cancelMessage) => canceler(`${
|
|
4873
|
+
cancel: (cancelMessage) => canceler(`${_helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.requestCancelledMessagePrefix}: ${cancelMessage !== null && cancelMessage !== void 0 ? cancelMessage : 'User cancel'}`),
|
|
4864
4874
|
token: token
|
|
4865
4875
|
};
|
|
4866
4876
|
}
|
|
@@ -4870,13 +4880,13 @@ function runWithRetryAsync(data) {
|
|
|
4870
4880
|
return yield data.call(data.retryAttempt);
|
|
4871
4881
|
}
|
|
4872
4882
|
catch (error) {
|
|
4873
|
-
const retryResult =
|
|
4883
|
+
const retryResult = _helpers_retry_helper__WEBPACK_IMPORTED_MODULE_3__.retryHelper.getRetryErrorResult({
|
|
4874
4884
|
error: error,
|
|
4875
4885
|
retryAttempt: data.retryAttempt,
|
|
4876
4886
|
retryStrategy: data.retryStrategy
|
|
4877
4887
|
});
|
|
4878
4888
|
if (retryResult.canRetry) {
|
|
4879
|
-
|
|
4889
|
+
_http_debugger__WEBPACK_IMPORTED_MODULE_2__.httpDebugger.debugRetryHttpRequest();
|
|
4880
4890
|
// wait time before retrying
|
|
4881
4891
|
yield new Promise((resolve) => setTimeout(resolve, retryResult.retryInMs));
|
|
4882
4892
|
if (data.functionsConfig.logErrorsToConsole) {
|
|
@@ -4938,8 +4948,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4938
4948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4939
4949
|
/* harmony export */ HttpService: () => (/* binding */ HttpService)
|
|
4940
4950
|
/* harmony export */ });
|
|
4941
|
-
/* harmony import */ var
|
|
4942
|
-
/* 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");
|
|
4943
4953
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4944
4954
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4945
4955
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -4954,36 +4964,36 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
|
|
|
4954
4964
|
class HttpService {
|
|
4955
4965
|
constructor(opts) {
|
|
4956
4966
|
this.opts = opts;
|
|
4957
|
-
this.axiosInstance =
|
|
4967
|
+
this.axiosInstance = axios__WEBPACK_IMPORTED_MODULE_0__["default"].create(opts === null || opts === void 0 ? void 0 : opts.axiosRequestConfig);
|
|
4958
4968
|
this.functionsConfig = this.getFunctionsConfig();
|
|
4959
4969
|
}
|
|
4960
4970
|
getAsync(call, options) {
|
|
4961
4971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4962
|
-
return yield
|
|
4972
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.getWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4963
4973
|
});
|
|
4964
4974
|
}
|
|
4965
4975
|
postAsync(call, options) {
|
|
4966
4976
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4967
|
-
return yield
|
|
4977
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.postWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4968
4978
|
});
|
|
4969
4979
|
}
|
|
4970
4980
|
putAsync(call, options) {
|
|
4971
4981
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4972
|
-
return yield
|
|
4982
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.putWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4973
4983
|
});
|
|
4974
4984
|
}
|
|
4975
4985
|
patchAsync(call, options) {
|
|
4976
4986
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4977
|
-
return yield
|
|
4987
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.patchWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4978
4988
|
});
|
|
4979
4989
|
}
|
|
4980
4990
|
deleteAsync(call, options) {
|
|
4981
4991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4982
|
-
return yield
|
|
4992
|
+
return yield _http_functions__WEBPACK_IMPORTED_MODULE_1__.deleteWithRetryAsync(this.axiosInstance, call, this.functionsConfig, options);
|
|
4983
4993
|
});
|
|
4984
4994
|
}
|
|
4985
4995
|
createCancelToken() {
|
|
4986
|
-
return
|
|
4996
|
+
return _http_functions__WEBPACK_IMPORTED_MODULE_1__.createCancelToken();
|
|
4987
4997
|
}
|
|
4988
4998
|
getFunctionsConfig() {
|
|
4989
4999
|
var _a, _b;
|
|
@@ -5228,10 +5238,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5228
5238
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5229
5239
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5230
5240
|
/* harmony export */ });
|
|
5231
|
-
/* harmony import */ var
|
|
5232
|
-
/* harmony import */ var
|
|
5233
|
-
/* harmony import */ var
|
|
5234
|
-
/* 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");
|
|
5235
5245
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5236
5246
|
|
|
5237
5247
|
|
|
@@ -5240,12 +5250,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5240
5250
|
|
|
5241
5251
|
|
|
5242
5252
|
const knownAdapters = {
|
|
5243
|
-
http:
|
|
5244
|
-
xhr:
|
|
5245
|
-
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"]
|
|
5246
5256
|
}
|
|
5247
5257
|
|
|
5248
|
-
|
|
5258
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(knownAdapters, (fn, value) => {
|
|
5249
5259
|
if (fn) {
|
|
5250
5260
|
try {
|
|
5251
5261
|
Object.defineProperty(fn, 'name', {value});
|
|
@@ -5258,11 +5268,11 @@ _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, va
|
|
|
5258
5268
|
|
|
5259
5269
|
const renderReason = (reason) => `- ${reason}`;
|
|
5260
5270
|
|
|
5261
|
-
const isResolvedHandle = (adapter) =>
|
|
5271
|
+
const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(adapter) || adapter === null || adapter === false;
|
|
5262
5272
|
|
|
5263
5273
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
5264
5274
|
getAdapter: (adapters) => {
|
|
5265
|
-
adapters =
|
|
5275
|
+
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(adapters) ? adapters : [adapters];
|
|
5266
5276
|
|
|
5267
5277
|
const {length} = adapters;
|
|
5268
5278
|
let nameOrAdapter;
|
|
@@ -5329,12 +5339,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5329
5339
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "./node_modules/axios/lib/platform/index.js");
|
|
5330
5340
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5331
5341
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5332
|
-
/* harmony import */ var
|
|
5333
|
-
/* harmony import */ var
|
|
5334
|
-
/* harmony import */ var
|
|
5335
|
-
/* harmony import */ var
|
|
5336
|
-
/* harmony import */ var
|
|
5337
|
-
/* 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");
|
|
5338
5348
|
|
|
5339
5349
|
|
|
5340
5350
|
|
|
@@ -5446,11 +5456,11 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5446
5456
|
headers,
|
|
5447
5457
|
withCredentials = 'same-origin',
|
|
5448
5458
|
fetchOptions
|
|
5449
|
-
} = (0,
|
|
5459
|
+
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_7__["default"])(config);
|
|
5450
5460
|
|
|
5451
5461
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
5452
5462
|
|
|
5453
|
-
let composedSignal = (0,
|
|
5463
|
+
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_3__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
5454
5464
|
|
|
5455
5465
|
let request;
|
|
5456
5466
|
|
|
@@ -5478,12 +5488,12 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5478
5488
|
}
|
|
5479
5489
|
|
|
5480
5490
|
if (_request.body) {
|
|
5481
|
-
const [onProgress, flush] = (0,
|
|
5491
|
+
const [onProgress, flush] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
|
|
5482
5492
|
requestContentLength,
|
|
5483
|
-
(0,
|
|
5493
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onUploadProgress))
|
|
5484
5494
|
);
|
|
5485
5495
|
|
|
5486
|
-
data = (0,
|
|
5496
|
+
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
5487
5497
|
}
|
|
5488
5498
|
}
|
|
5489
5499
|
|
|
@@ -5504,7 +5514,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5504
5514
|
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
5505
5515
|
});
|
|
5506
5516
|
|
|
5507
|
-
let response = await fetch(request);
|
|
5517
|
+
let response = await fetch(request, fetchOptions);
|
|
5508
5518
|
|
|
5509
5519
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
5510
5520
|
|
|
@@ -5517,13 +5527,13 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5517
5527
|
|
|
5518
5528
|
const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].toFiniteNumber(response.headers.get('content-length'));
|
|
5519
5529
|
|
|
5520
|
-
const [onProgress, flush] = onDownloadProgress && (0,
|
|
5530
|
+
const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventDecorator)(
|
|
5521
5531
|
responseContentLength,
|
|
5522
|
-
(0,
|
|
5532
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_6__.asyncDecorator)(onDownloadProgress), true)
|
|
5523
5533
|
) || [];
|
|
5524
5534
|
|
|
5525
5535
|
response = new Response(
|
|
5526
|
-
(0,
|
|
5536
|
+
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_4__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
5527
5537
|
flush && flush();
|
|
5528
5538
|
unsubscribe && unsubscribe();
|
|
5529
5539
|
}),
|
|
@@ -5538,9 +5548,9 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
5538
5548
|
!isStreamResponse && unsubscribe && unsubscribe();
|
|
5539
5549
|
|
|
5540
5550
|
return await new Promise((resolve, reject) => {
|
|
5541
|
-
(0,
|
|
5551
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_8__["default"])(resolve, reject, {
|
|
5542
5552
|
data: responseData,
|
|
5543
|
-
headers:
|
|
5553
|
+
headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_5__["default"].from(response.headers),
|
|
5544
5554
|
status: response.status,
|
|
5545
5555
|
statusText: response.statusText,
|
|
5546
5556
|
config,
|
|
@@ -5578,16 +5588,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5578
5588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5579
5589
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5580
5590
|
/* harmony export */ });
|
|
5581
|
-
/* harmony import */ var
|
|
5582
|
-
/* harmony import */ var
|
|
5583
|
-
/* 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");
|
|
5584
5594
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "./node_modules/axios/lib/core/AxiosError.js");
|
|
5585
|
-
/* harmony import */ var
|
|
5586
|
-
/* harmony import */ var
|
|
5587
|
-
/* harmony import */ var
|
|
5588
|
-
/* harmony import */ var
|
|
5589
|
-
/* harmony import */ var
|
|
5590
|
-
/* 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");
|
|
5591
5601
|
|
|
5592
5602
|
|
|
5593
5603
|
|
|
@@ -5603,9 +5613,9 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5603
5613
|
|
|
5604
5614
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (isXHRAdapterSupported && function (config) {
|
|
5605
5615
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
5606
|
-
const _config = (0,
|
|
5616
|
+
const _config = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_9__["default"])(config);
|
|
5607
5617
|
let requestData = _config.data;
|
|
5608
|
-
const requestHeaders =
|
|
5618
|
+
const requestHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(_config.headers).normalize();
|
|
5609
5619
|
let {responseType, onUploadProgress, onDownloadProgress} = _config;
|
|
5610
5620
|
let onCanceled;
|
|
5611
5621
|
let uploadThrottled, downloadThrottled;
|
|
@@ -5632,7 +5642,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5632
5642
|
return;
|
|
5633
5643
|
}
|
|
5634
5644
|
// Prepare the response
|
|
5635
|
-
const responseHeaders =
|
|
5645
|
+
const responseHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].from(
|
|
5636
5646
|
'getAllResponseHeaders' in request && request.getAllResponseHeaders()
|
|
5637
5647
|
);
|
|
5638
5648
|
const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
|
@@ -5646,7 +5656,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5646
5656
|
request
|
|
5647
5657
|
};
|
|
5648
5658
|
|
|
5649
|
-
(0,
|
|
5659
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function _resolve(value) {
|
|
5650
5660
|
resolve(value);
|
|
5651
5661
|
done();
|
|
5652
5662
|
}, function _reject(err) {
|
|
@@ -5706,7 +5716,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5706
5716
|
// Handle timeout
|
|
5707
5717
|
request.ontimeout = function handleTimeout() {
|
|
5708
5718
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
5709
|
-
const transitional = _config.transitional ||
|
|
5719
|
+
const transitional = _config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
5710
5720
|
if (_config.timeoutErrorMessage) {
|
|
5711
5721
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
5712
5722
|
}
|
|
@@ -5725,13 +5735,13 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5725
5735
|
|
|
5726
5736
|
// Add headers to the request
|
|
5727
5737
|
if ('setRequestHeader' in request) {
|
|
5728
|
-
|
|
5738
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
5729
5739
|
request.setRequestHeader(key, val);
|
|
5730
5740
|
});
|
|
5731
5741
|
}
|
|
5732
5742
|
|
|
5733
5743
|
// Add withCredentials to request if needed
|
|
5734
|
-
if (!
|
|
5744
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(_config.withCredentials)) {
|
|
5735
5745
|
request.withCredentials = !!_config.withCredentials;
|
|
5736
5746
|
}
|
|
5737
5747
|
|
|
@@ -5742,13 +5752,13 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5742
5752
|
|
|
5743
5753
|
// Handle progress if needed
|
|
5744
5754
|
if (onDownloadProgress) {
|
|
5745
|
-
([downloadThrottled, flushDownload] = (0,
|
|
5755
|
+
([downloadThrottled, flushDownload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onDownloadProgress, true));
|
|
5746
5756
|
request.addEventListener('progress', downloadThrottled);
|
|
5747
5757
|
}
|
|
5748
5758
|
|
|
5749
5759
|
// Not all browsers support upload events
|
|
5750
5760
|
if (onUploadProgress && request.upload) {
|
|
5751
|
-
([uploadThrottled, flushUpload] = (0,
|
|
5761
|
+
([uploadThrottled, flushUpload] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_8__.progressEventReducer)(onUploadProgress));
|
|
5752
5762
|
|
|
5753
5763
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
5754
5764
|
|
|
@@ -5762,7 +5772,7 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5762
5772
|
if (!request) {
|
|
5763
5773
|
return;
|
|
5764
5774
|
}
|
|
5765
|
-
reject(!cancel || cancel.type ? new
|
|
5775
|
+
reject(!cancel || cancel.type ? new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_4__["default"](null, config, request) : cancel);
|
|
5766
5776
|
request.abort();
|
|
5767
5777
|
request = null;
|
|
5768
5778
|
};
|
|
@@ -5773,9 +5783,9 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
5773
5783
|
}
|
|
5774
5784
|
}
|
|
5775
5785
|
|
|
5776
|
-
const protocol = (0,
|
|
5786
|
+
const protocol = (0,_helpers_parseProtocol_js__WEBPACK_IMPORTED_MODULE_5__["default"])(_config.url);
|
|
5777
5787
|
|
|
5778
|
-
if (protocol &&
|
|
5788
|
+
if (protocol && _platform_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].protocols.indexOf(protocol) === -1) {
|
|
5779
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));
|
|
5780
5790
|
return;
|
|
5781
5791
|
}
|
|
@@ -5799,21 +5809,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5799
5809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5800
5810
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
5801
5811
|
/* harmony export */ });
|
|
5802
|
-
/* harmony import */ var
|
|
5812
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils.js */ "./node_modules/axios/lib/utils.js");
|
|
5803
5813
|
/* harmony import */ var _helpers_bind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/bind.js */ "./node_modules/axios/lib/helpers/bind.js");
|
|
5804
|
-
/* 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");
|
|
5805
5815
|
/* harmony import */ var _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./core/mergeConfig.js */ "./node_modules/axios/lib/core/mergeConfig.js");
|
|
5806
5816
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaults/index.js */ "./node_modules/axios/lib/defaults/index.js");
|
|
5807
|
-
/* harmony import */ var
|
|
5808
|
-
/* harmony import */ var
|
|
5809
|
-
/* harmony import */ var
|
|
5810
|
-
/* harmony import */ var
|
|
5811
|
-
/* harmony import */ var
|
|
5812
|
-
/* harmony import */ var
|
|
5813
|
-
/* harmony import */ var
|
|
5814
|
-
/* harmony import */ var
|
|
5815
|
-
/* harmony import */ var
|
|
5816
|
-
/* 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");
|
|
5817
5827
|
/* harmony import */ var _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./adapters/adapters.js */ "./node_modules/axios/lib/adapters/adapters.js");
|
|
5818
5828
|
/* harmony import */ var _helpers_HttpStatusCode_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers/HttpStatusCode.js */ "./node_modules/axios/lib/helpers/HttpStatusCode.js");
|
|
5819
5829
|
|
|
@@ -5844,14 +5854,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5844
5854
|
* @returns {Axios} A new instance of Axios
|
|
5845
5855
|
*/
|
|
5846
5856
|
function createInstance(defaultConfig) {
|
|
5847
|
-
const context = new
|
|
5848
|
-
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);
|
|
5849
5859
|
|
|
5850
5860
|
// Copy axios.prototype to instance
|
|
5851
|
-
|
|
5861
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"].prototype, context, {allOwnKeys: true});
|
|
5852
5862
|
|
|
5853
5863
|
// Copy context to instance
|
|
5854
|
-
|
|
5864
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].extend(instance, context, null, {allOwnKeys: true});
|
|
5855
5865
|
|
|
5856
5866
|
// Factory for creating new instances
|
|
5857
5867
|
instance.create = function create(instanceConfig) {
|
|
@@ -5865,17 +5875,17 @@ function createInstance(defaultConfig) {
|
|
|
5865
5875
|
const axios = createInstance(_defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
5866
5876
|
|
|
5867
5877
|
// Expose Axios class to allow class inheritance
|
|
5868
|
-
axios.Axios =
|
|
5878
|
+
axios.Axios = _core_Axios_js__WEBPACK_IMPORTED_MODULE_2__["default"];
|
|
5869
5879
|
|
|
5870
5880
|
// Expose Cancel & CancelToken
|
|
5871
|
-
axios.CanceledError =
|
|
5872
|
-
axios.CancelToken =
|
|
5873
|
-
axios.isCancel =
|
|
5874
|
-
axios.VERSION =
|
|
5875
|
-
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"];
|
|
5876
5886
|
|
|
5877
5887
|
// Expose AxiosError class
|
|
5878
|
-
axios.AxiosError =
|
|
5888
|
+
axios.AxiosError = _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_11__["default"];
|
|
5879
5889
|
|
|
5880
5890
|
// alias for CanceledError for backward compatibility
|
|
5881
5891
|
axios.Cancel = axios.CanceledError;
|
|
@@ -5885,17 +5895,17 @@ axios.all = function all(promises) {
|
|
|
5885
5895
|
return Promise.all(promises);
|
|
5886
5896
|
};
|
|
5887
5897
|
|
|
5888
|
-
axios.spread =
|
|
5898
|
+
axios.spread = _helpers_spread_js__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
5889
5899
|
|
|
5890
5900
|
// Expose isAxiosError
|
|
5891
|
-
axios.isAxiosError =
|
|
5901
|
+
axios.isAxiosError = _helpers_isAxiosError_js__WEBPACK_IMPORTED_MODULE_13__["default"];
|
|
5892
5902
|
|
|
5893
5903
|
// Expose mergeConfig
|
|
5894
5904
|
axios.mergeConfig = _core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"];
|
|
5895
5905
|
|
|
5896
|
-
axios.AxiosHeaders =
|
|
5906
|
+
axios.AxiosHeaders = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
5897
5907
|
|
|
5898
|
-
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);
|
|
5899
5909
|
|
|
5900
5910
|
axios.getAdapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_15__["default"].getAdapter;
|
|
5901
5911
|
|
|
@@ -6129,14 +6139,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6129
6139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6130
6140
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6131
6141
|
/* harmony export */ });
|
|
6132
|
-
/* harmony import */ var
|
|
6133
|
-
/* harmony import */ var
|
|
6134
|
-
/* harmony import */ var
|
|
6135
|
-
/* harmony import */ var
|
|
6136
|
-
/* harmony import */ var
|
|
6137
|
-
/* harmony import */ var
|
|
6138
|
-
/* harmony import */ var
|
|
6139
|
-
/* 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");
|
|
6140
6150
|
|
|
6141
6151
|
|
|
6142
6152
|
|
|
@@ -6148,7 +6158,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6148
6158
|
|
|
6149
6159
|
|
|
6150
6160
|
|
|
6151
|
-
const validators =
|
|
6161
|
+
const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].validators;
|
|
6152
6162
|
|
|
6153
6163
|
/**
|
|
6154
6164
|
* Create a new instance of Axios
|
|
@@ -6161,8 +6171,8 @@ class Axios {
|
|
|
6161
6171
|
constructor(instanceConfig) {
|
|
6162
6172
|
this.defaults = instanceConfig || {};
|
|
6163
6173
|
this.interceptors = {
|
|
6164
|
-
request: new
|
|
6165
|
-
response: new
|
|
6174
|
+
request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"](),
|
|
6175
|
+
response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_2__["default"]()
|
|
6166
6176
|
};
|
|
6167
6177
|
}
|
|
6168
6178
|
|
|
@@ -6211,12 +6221,12 @@ class Axios {
|
|
|
6211
6221
|
config = configOrUrl || {};
|
|
6212
6222
|
}
|
|
6213
6223
|
|
|
6214
|
-
config = (0,
|
|
6224
|
+
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(this.defaults, config);
|
|
6215
6225
|
|
|
6216
6226
|
const {transitional, paramsSerializer, headers} = config;
|
|
6217
6227
|
|
|
6218
6228
|
if (transitional !== undefined) {
|
|
6219
|
-
|
|
6229
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(transitional, {
|
|
6220
6230
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
6221
6231
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
6222
6232
|
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
@@ -6224,12 +6234,12 @@ class Axios {
|
|
|
6224
6234
|
}
|
|
6225
6235
|
|
|
6226
6236
|
if (paramsSerializer != null) {
|
|
6227
|
-
if (
|
|
6237
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(paramsSerializer)) {
|
|
6228
6238
|
config.paramsSerializer = {
|
|
6229
6239
|
serialize: paramsSerializer
|
|
6230
6240
|
}
|
|
6231
6241
|
} else {
|
|
6232
|
-
|
|
6242
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(paramsSerializer, {
|
|
6233
6243
|
encode: validators.function,
|
|
6234
6244
|
serialize: validators.function
|
|
6235
6245
|
}, true);
|
|
@@ -6245,7 +6255,7 @@ class Axios {
|
|
|
6245
6255
|
config.allowAbsoluteUrls = true;
|
|
6246
6256
|
}
|
|
6247
6257
|
|
|
6248
|
-
|
|
6258
|
+
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_6__["default"].assertOptions(config, {
|
|
6249
6259
|
baseUrl: validators.spelling('baseURL'),
|
|
6250
6260
|
withXsrfToken: validators.spelling('withXSRFToken')
|
|
6251
6261
|
}, true);
|
|
@@ -6254,19 +6264,19 @@ class Axios {
|
|
|
6254
6264
|
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
6255
6265
|
|
|
6256
6266
|
// Flatten headers
|
|
6257
|
-
let contextHeaders = headers &&
|
|
6267
|
+
let contextHeaders = headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge(
|
|
6258
6268
|
headers.common,
|
|
6259
6269
|
headers[config.method]
|
|
6260
6270
|
);
|
|
6261
6271
|
|
|
6262
|
-
headers &&
|
|
6272
|
+
headers && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(
|
|
6263
6273
|
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
6264
6274
|
(method) => {
|
|
6265
6275
|
delete headers[method];
|
|
6266
6276
|
}
|
|
6267
6277
|
);
|
|
6268
6278
|
|
|
6269
|
-
config.headers =
|
|
6279
|
+
config.headers = _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_7__["default"].concat(contextHeaders, headers);
|
|
6270
6280
|
|
|
6271
6281
|
// filter out skipped interceptors
|
|
6272
6282
|
const requestInterceptorChain = [];
|
|
@@ -6291,9 +6301,9 @@ class Axios {
|
|
|
6291
6301
|
let len;
|
|
6292
6302
|
|
|
6293
6303
|
if (!synchronousRequestInterceptors) {
|
|
6294
|
-
const chain = [
|
|
6295
|
-
chain.unshift
|
|
6296
|
-
chain.push
|
|
6304
|
+
const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__["default"].bind(this), undefined];
|
|
6305
|
+
chain.unshift(...requestInterceptorChain);
|
|
6306
|
+
chain.push(...responseInterceptorChain);
|
|
6297
6307
|
len = chain.length;
|
|
6298
6308
|
|
|
6299
6309
|
promise = Promise.resolve(config);
|
|
@@ -6323,7 +6333,7 @@ class Axios {
|
|
|
6323
6333
|
}
|
|
6324
6334
|
|
|
6325
6335
|
try {
|
|
6326
|
-
promise =
|
|
6336
|
+
promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_3__["default"].call(this, newConfig);
|
|
6327
6337
|
} catch (error) {
|
|
6328
6338
|
return Promise.reject(error);
|
|
6329
6339
|
}
|
|
@@ -6339,17 +6349,17 @@ class Axios {
|
|
|
6339
6349
|
}
|
|
6340
6350
|
|
|
6341
6351
|
getUri(config) {
|
|
6342
|
-
config = (0,
|
|
6343
|
-
const fullPath = (0,
|
|
6344
|
-
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);
|
|
6345
6355
|
}
|
|
6346
6356
|
}
|
|
6347
6357
|
|
|
6348
6358
|
// Provide aliases for supported request methods
|
|
6349
|
-
|
|
6359
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
6350
6360
|
/*eslint func-names:0*/
|
|
6351
6361
|
Axios.prototype[method] = function(url, config) {
|
|
6352
|
-
return this.request((0,
|
|
6362
|
+
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
6353
6363
|
method,
|
|
6354
6364
|
url,
|
|
6355
6365
|
data: (config || {}).data
|
|
@@ -6357,12 +6367,12 @@ _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(['delete', 'get', 'hea
|
|
|
6357
6367
|
};
|
|
6358
6368
|
});
|
|
6359
6369
|
|
|
6360
|
-
|
|
6370
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
6361
6371
|
/*eslint func-names:0*/
|
|
6362
6372
|
|
|
6363
6373
|
function generateHTTPMethod(isForm) {
|
|
6364
6374
|
return function httpMethod(url, data, config) {
|
|
6365
|
-
return this.request((0,
|
|
6375
|
+
return this.request((0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_4__["default"])(config || {}, {
|
|
6366
6376
|
method,
|
|
6367
6377
|
headers: isForm ? {
|
|
6368
6378
|
'Content-Type': 'multipart/form-data'
|
|
@@ -6965,12 +6975,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6965
6975
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6966
6976
|
/* harmony export */ "default": () => (/* binding */ dispatchRequest)
|
|
6967
6977
|
/* harmony export */ });
|
|
6968
|
-
/* harmony import */ var
|
|
6969
|
-
/* harmony import */ var
|
|
6970
|
-
/* harmony import */ var
|
|
6971
|
-
/* harmony import */ var
|
|
6972
|
-
/* harmony import */ var
|
|
6973
|
-
/* 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");
|
|
6974
6984
|
|
|
6975
6985
|
|
|
6976
6986
|
|
|
@@ -6993,7 +7003,7 @@ function throwIfCancellationRequested(config) {
|
|
|
6993
7003
|
}
|
|
6994
7004
|
|
|
6995
7005
|
if (config.signal && config.signal.aborted) {
|
|
6996
|
-
throw new
|
|
7006
|
+
throw new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_3__["default"](null, config);
|
|
6997
7007
|
}
|
|
6998
7008
|
}
|
|
6999
7009
|
|
|
@@ -7007,10 +7017,10 @@ function throwIfCancellationRequested(config) {
|
|
|
7007
7017
|
function dispatchRequest(config) {
|
|
7008
7018
|
throwIfCancellationRequested(config);
|
|
7009
7019
|
|
|
7010
|
-
config.headers =
|
|
7020
|
+
config.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(config.headers);
|
|
7011
7021
|
|
|
7012
7022
|
// Transform request data
|
|
7013
|
-
config.data =
|
|
7023
|
+
config.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7014
7024
|
config,
|
|
7015
7025
|
config.transformRequest
|
|
7016
7026
|
);
|
|
@@ -7019,33 +7029,33 @@ function dispatchRequest(config) {
|
|
|
7019
7029
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
7020
7030
|
}
|
|
7021
7031
|
|
|
7022
|
-
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);
|
|
7023
7033
|
|
|
7024
7034
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
7025
7035
|
throwIfCancellationRequested(config);
|
|
7026
7036
|
|
|
7027
7037
|
// Transform response data
|
|
7028
|
-
response.data =
|
|
7038
|
+
response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7029
7039
|
config,
|
|
7030
7040
|
config.transformResponse,
|
|
7031
7041
|
response
|
|
7032
7042
|
);
|
|
7033
7043
|
|
|
7034
|
-
response.headers =
|
|
7044
|
+
response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(response.headers);
|
|
7035
7045
|
|
|
7036
7046
|
return response;
|
|
7037
7047
|
}, function onAdapterRejection(reason) {
|
|
7038
|
-
if (!(0,
|
|
7048
|
+
if (!(0,_cancel_isCancel_js__WEBPACK_IMPORTED_MODULE_1__["default"])(reason)) {
|
|
7039
7049
|
throwIfCancellationRequested(config);
|
|
7040
7050
|
|
|
7041
7051
|
// Transform response data
|
|
7042
7052
|
if (reason && reason.response) {
|
|
7043
|
-
reason.response.data =
|
|
7053
|
+
reason.response.data = _transformData_js__WEBPACK_IMPORTED_MODULE_0__["default"].call(
|
|
7044
7054
|
config,
|
|
7045
7055
|
config.transformResponse,
|
|
7046
7056
|
reason.response
|
|
7047
7057
|
);
|
|
7048
|
-
reason.response.headers =
|
|
7058
|
+
reason.response.headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(reason.response.headers);
|
|
7049
7059
|
}
|
|
7050
7060
|
}
|
|
7051
7061
|
|
|
@@ -7066,14 +7076,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7066
7076
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7067
7077
|
/* harmony export */ "default": () => (/* binding */ mergeConfig)
|
|
7068
7078
|
/* harmony export */ });
|
|
7069
|
-
/* harmony import */ var
|
|
7070
|
-
/* 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");
|
|
7071
7081
|
|
|
7072
7082
|
|
|
7073
7083
|
|
|
7074
7084
|
|
|
7075
7085
|
|
|
7076
|
-
const headersToObject = (thing) => thing instanceof
|
|
7086
|
+
const headersToObject = (thing) => thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"] ? { ...thing } : thing;
|
|
7077
7087
|
|
|
7078
7088
|
/**
|
|
7079
7089
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -7090,11 +7100,11 @@ function mergeConfig(config1, config2) {
|
|
|
7090
7100
|
const config = {};
|
|
7091
7101
|
|
|
7092
7102
|
function getMergedValue(target, source, prop, caseless) {
|
|
7093
|
-
if (
|
|
7094
|
-
return
|
|
7095
|
-
} else if (
|
|
7096
|
-
return
|
|
7097
|
-
} 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)) {
|
|
7098
7108
|
return source.slice();
|
|
7099
7109
|
}
|
|
7100
7110
|
return source;
|
|
@@ -7102,25 +7112,25 @@ function mergeConfig(config1, config2) {
|
|
|
7102
7112
|
|
|
7103
7113
|
// eslint-disable-next-line consistent-return
|
|
7104
7114
|
function mergeDeepProperties(a, b, prop , caseless) {
|
|
7105
|
-
if (!
|
|
7115
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7106
7116
|
return getMergedValue(a, b, prop , caseless);
|
|
7107
|
-
} else if (!
|
|
7117
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
7108
7118
|
return getMergedValue(undefined, a, prop , caseless);
|
|
7109
7119
|
}
|
|
7110
7120
|
}
|
|
7111
7121
|
|
|
7112
7122
|
// eslint-disable-next-line consistent-return
|
|
7113
7123
|
function valueFromConfig2(a, b) {
|
|
7114
|
-
if (!
|
|
7124
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7115
7125
|
return getMergedValue(undefined, b);
|
|
7116
7126
|
}
|
|
7117
7127
|
}
|
|
7118
7128
|
|
|
7119
7129
|
// eslint-disable-next-line consistent-return
|
|
7120
7130
|
function defaultToConfig2(a, b) {
|
|
7121
|
-
if (!
|
|
7131
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(b)) {
|
|
7122
7132
|
return getMergedValue(undefined, b);
|
|
7123
|
-
} else if (!
|
|
7133
|
+
} else if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(a)) {
|
|
7124
7134
|
return getMergedValue(undefined, a);
|
|
7125
7135
|
}
|
|
7126
7136
|
}
|
|
@@ -7166,10 +7176,10 @@ function mergeConfig(config1, config2) {
|
|
|
7166
7176
|
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
|
|
7167
7177
|
};
|
|
7168
7178
|
|
|
7169
|
-
|
|
7179
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
7170
7180
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
7171
7181
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
7172
|
-
(
|
|
7182
|
+
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
7173
7183
|
});
|
|
7174
7184
|
|
|
7175
7185
|
return config;
|
|
@@ -7230,9 +7240,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7230
7240
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7231
7241
|
/* harmony export */ "default": () => (/* binding */ transformData)
|
|
7232
7242
|
/* harmony export */ });
|
|
7233
|
-
/* harmony import */ var
|
|
7234
|
-
/* harmony import */ var
|
|
7235
|
-
/* 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");
|
|
7236
7246
|
|
|
7237
7247
|
|
|
7238
7248
|
|
|
@@ -7248,12 +7258,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7248
7258
|
* @returns {*} The resulting transformed data
|
|
7249
7259
|
*/
|
|
7250
7260
|
function transformData(fns, response) {
|
|
7251
|
-
const config = this ||
|
|
7261
|
+
const config = this || _defaults_index_js__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
7252
7262
|
const context = response || config;
|
|
7253
|
-
const headers =
|
|
7263
|
+
const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(context.headers);
|
|
7254
7264
|
let data = context.data;
|
|
7255
7265
|
|
|
7256
|
-
|
|
7266
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].forEach(fns, function transform(fn) {
|
|
7257
7267
|
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
|
|
7258
7268
|
});
|
|
7259
7269
|
|
|
@@ -7276,12 +7286,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7276
7286
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7277
7287
|
/* harmony export */ });
|
|
7278
7288
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7279
|
-
/* harmony import */ var
|
|
7280
|
-
/* harmony import */ var
|
|
7281
|
-
/* harmony import */ var
|
|
7282
|
-
/* harmony import */ var
|
|
7283
|
-
/* harmony import */ var
|
|
7284
|
-
/* 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");
|
|
7285
7295
|
|
|
7286
7296
|
|
|
7287
7297
|
|
|
@@ -7319,7 +7329,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
7319
7329
|
|
|
7320
7330
|
const defaults = {
|
|
7321
7331
|
|
|
7322
|
-
transitional:
|
|
7332
|
+
transitional: _transitional_js__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
7323
7333
|
|
|
7324
7334
|
adapter: ['xhr', 'http', 'fetch'],
|
|
7325
7335
|
|
|
@@ -7335,7 +7345,7 @@ const defaults = {
|
|
|
7335
7345
|
const isFormData = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data);
|
|
7336
7346
|
|
|
7337
7347
|
if (isFormData) {
|
|
7338
|
-
return hasJSONContentType ? JSON.stringify((0,
|
|
7348
|
+
return hasJSONContentType ? JSON.stringify((0,_helpers_formDataToJSON_js__WEBPACK_IMPORTED_MODULE_6__["default"])(data)) : data;
|
|
7339
7349
|
}
|
|
7340
7350
|
|
|
7341
7351
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(data) ||
|
|
@@ -7359,13 +7369,13 @@ const defaults = {
|
|
|
7359
7369
|
|
|
7360
7370
|
if (isObjectPayload) {
|
|
7361
7371
|
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
|
7362
|
-
return (0,
|
|
7372
|
+
return (0,_helpers_toURLEncodedForm_js__WEBPACK_IMPORTED_MODULE_4__["default"])(data, this.formSerializer).toString();
|
|
7363
7373
|
}
|
|
7364
7374
|
|
|
7365
7375
|
if ((isFileList = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
7366
7376
|
const _FormData = this.env && this.env.FormData;
|
|
7367
7377
|
|
|
7368
|
-
return (0,
|
|
7378
|
+
return (0,_helpers_toFormData_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
7369
7379
|
isFileList ? {'files[]': data} : data,
|
|
7370
7380
|
_FormData && new _FormData(),
|
|
7371
7381
|
this.formSerializer
|
|
@@ -7399,7 +7409,7 @@ const defaults = {
|
|
|
7399
7409
|
} catch (e) {
|
|
7400
7410
|
if (strictJSONParsing) {
|
|
7401
7411
|
if (e.name === 'SyntaxError') {
|
|
7402
|
-
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);
|
|
7403
7413
|
}
|
|
7404
7414
|
throw e;
|
|
7405
7415
|
}
|
|
@@ -7422,8 +7432,8 @@ const defaults = {
|
|
|
7422
7432
|
maxBodyLength: -1,
|
|
7423
7433
|
|
|
7424
7434
|
env: {
|
|
7425
|
-
FormData:
|
|
7426
|
-
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
|
|
7427
7437
|
},
|
|
7428
7438
|
|
|
7429
7439
|
validateStatus: function validateStatus(status) {
|
|
@@ -7478,7 +7488,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7478
7488
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7479
7489
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
7480
7490
|
/* harmony export */ });
|
|
7481
|
-
const VERSION = "1.
|
|
7491
|
+
const VERSION = "1.11.0";
|
|
7482
7492
|
|
|
7483
7493
|
/***/ }),
|
|
7484
7494
|
|
|
@@ -7785,8 +7795,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7785
7795
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7786
7796
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7787
7797
|
/* harmony export */ });
|
|
7788
|
-
/* harmony import */ var
|
|
7789
|
-
/* 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");
|
|
7790
7800
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
7791
7801
|
|
|
7792
7802
|
|
|
@@ -7805,13 +7815,13 @@ const composeSignals = (signals, timeout) => {
|
|
|
7805
7815
|
aborted = true;
|
|
7806
7816
|
unsubscribe();
|
|
7807
7817
|
const err = reason instanceof Error ? reason : this.reason;
|
|
7808
|
-
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));
|
|
7809
7819
|
}
|
|
7810
7820
|
}
|
|
7811
7821
|
|
|
7812
7822
|
let timer = timeout && setTimeout(() => {
|
|
7813
7823
|
timer = null;
|
|
7814
|
-
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))
|
|
7815
7825
|
}, timeout)
|
|
7816
7826
|
|
|
7817
7827
|
const unsubscribe = () => {
|
|
@@ -7850,23 +7860,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7850
7860
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7851
7861
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7852
7862
|
/* harmony export */ });
|
|
7853
|
-
/* harmony import */ var
|
|
7854
|
-
/* 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");
|
|
7855
7865
|
|
|
7856
7866
|
|
|
7857
7867
|
|
|
7858
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (
|
|
7868
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasStandardBrowserEnv ?
|
|
7859
7869
|
|
|
7860
7870
|
// Standard browser envs support document.cookie
|
|
7861
7871
|
{
|
|
7862
7872
|
write(name, value, expires, path, domain, secure) {
|
|
7863
7873
|
const cookie = [name + '=' + encodeURIComponent(value)];
|
|
7864
7874
|
|
|
7865
|
-
|
|
7875
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
7866
7876
|
|
|
7867
|
-
|
|
7877
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(path) && cookie.push('path=' + path);
|
|
7868
7878
|
|
|
7869
|
-
|
|
7879
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(domain) && cookie.push('domain=' + domain);
|
|
7870
7880
|
|
|
7871
7881
|
secure === true && cookie.push('secure');
|
|
7872
7882
|
|
|
@@ -8274,14 +8284,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8274
8284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8275
8285
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8276
8286
|
/* harmony export */ });
|
|
8277
|
-
/* harmony import */ var
|
|
8278
|
-
/* harmony import */ var
|
|
8279
|
-
/* harmony import */ var
|
|
8280
|
-
/* harmony import */ var
|
|
8281
|
-
/* harmony import */ var
|
|
8282
|
-
/* harmony import */ var
|
|
8283
|
-
/* harmony import */ var
|
|
8284
|
-
/* 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");
|
|
8285
8295
|
|
|
8286
8296
|
|
|
8287
8297
|
|
|
@@ -8292,13 +8302,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8292
8302
|
|
|
8293
8303
|
|
|
8294
8304
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
|
|
8295
|
-
const newConfig = (0,
|
|
8305
|
+
const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_5__["default"])({}, config);
|
|
8296
8306
|
|
|
8297
8307
|
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
8298
8308
|
|
|
8299
|
-
newConfig.headers = headers =
|
|
8309
|
+
newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_6__["default"].from(headers);
|
|
8300
8310
|
|
|
8301
|
-
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);
|
|
8302
8312
|
|
|
8303
8313
|
// HTTP basic authentication
|
|
8304
8314
|
if (auth) {
|
|
@@ -8309,8 +8319,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8309
8319
|
|
|
8310
8320
|
let contentType;
|
|
8311
8321
|
|
|
8312
|
-
if (
|
|
8313
|
-
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) {
|
|
8314
8324
|
headers.setContentType(undefined); // Let the browser set it
|
|
8315
8325
|
} else if ((contentType = headers.getContentType()) !== false) {
|
|
8316
8326
|
// fix semicolon duplication issue for ReactNative FormData implementation
|
|
@@ -8323,12 +8333,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8323
8333
|
// This is only done if running in a standard browser environment.
|
|
8324
8334
|
// Specifically not if we're in a web worker, or react-native.
|
|
8325
8335
|
|
|
8326
|
-
if (
|
|
8327
|
-
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));
|
|
8328
8338
|
|
|
8329
|
-
if (withXSRFToken || (withXSRFToken !== false && (0,
|
|
8339
|
+
if (withXSRFToken || (withXSRFToken !== false && (0,_isURLSameOrigin_js__WEBPACK_IMPORTED_MODULE_2__["default"])(newConfig.url))) {
|
|
8330
8340
|
// Add xsrf header
|
|
8331
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName &&
|
|
8341
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && _cookies_js__WEBPACK_IMPORTED_MODULE_3__["default"].read(xsrfCookieName);
|
|
8332
8342
|
|
|
8333
8343
|
if (xsrfValue) {
|
|
8334
8344
|
headers.set(xsrfHeaderName, xsrfValue);
|
|
@@ -8483,7 +8493,7 @@ function throttle(fn, freq) {
|
|
|
8483
8493
|
clearTimeout(timer);
|
|
8484
8494
|
timer = null;
|
|
8485
8495
|
}
|
|
8486
|
-
fn
|
|
8496
|
+
fn(...args);
|
|
8487
8497
|
}
|
|
8488
8498
|
|
|
8489
8499
|
const throttled = (...args) => {
|
|
@@ -8523,8 +8533,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8523
8533
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
8524
8534
|
/* harmony export */ });
|
|
8525
8535
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/axios/lib/utils.js");
|
|
8526
|
-
/* harmony import */ var
|
|
8527
|
-
/* 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");
|
|
8528
8538
|
|
|
8529
8539
|
|
|
8530
8540
|
|
|
@@ -8616,7 +8626,7 @@ function toFormData(obj, formData, options) {
|
|
|
8616
8626
|
}
|
|
8617
8627
|
|
|
8618
8628
|
// eslint-disable-next-line no-param-reassign
|
|
8619
|
-
formData = formData || new (
|
|
8629
|
+
formData = formData || new (_platform_node_classes_FormData_js__WEBPACK_IMPORTED_MODULE_2__["default"] || FormData)();
|
|
8620
8630
|
|
|
8621
8631
|
// eslint-disable-next-line no-param-reassign
|
|
8622
8632
|
options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(options, {
|
|
@@ -8647,8 +8657,12 @@ function toFormData(obj, formData, options) {
|
|
|
8647
8657
|
return value.toISOString();
|
|
8648
8658
|
}
|
|
8649
8659
|
|
|
8660
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBoolean(value)) {
|
|
8661
|
+
return value.toString();
|
|
8662
|
+
}
|
|
8663
|
+
|
|
8650
8664
|
if (!useBlob && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(value)) {
|
|
8651
|
-
throw new
|
|
8665
|
+
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_1__["default"]('Blob is not supported. Use a Buffer instead.');
|
|
8652
8666
|
}
|
|
8653
8667
|
|
|
8654
8668
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(value) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isTypedArray(value)) {
|
|
@@ -8758,9 +8772,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8758
8772
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8759
8773
|
/* harmony export */ "default": () => (/* binding */ toURLEncodedForm)
|
|
8760
8774
|
/* harmony export */ });
|
|
8761
|
-
/* harmony import */ var
|
|
8762
|
-
/* harmony import */ var
|
|
8763
|
-
/* 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");
|
|
8764
8778
|
|
|
8765
8779
|
|
|
8766
8780
|
|
|
@@ -8768,16 +8782,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8768
8782
|
|
|
8769
8783
|
|
|
8770
8784
|
function toURLEncodedForm(data, options) {
|
|
8771
|
-
return (0,
|
|
8785
|
+
return (0,_toFormData_js__WEBPACK_IMPORTED_MODULE_1__["default"])(data, new _platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].classes.URLSearchParams(), {
|
|
8772
8786
|
visitor: function(value, key, path, helpers) {
|
|
8773
|
-
if (
|
|
8787
|
+
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_2__["default"].isNode && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBuffer(value)) {
|
|
8774
8788
|
this.append(key, value.toString('base64'));
|
|
8775
8789
|
return false;
|
|
8776
8790
|
}
|
|
8777
8791
|
|
|
8778
8792
|
return helpers.defaultVisitor.apply(this, arguments);
|
|
8779
|
-
}
|
|
8780
|
-
|
|
8793
|
+
},
|
|
8794
|
+
...options
|
|
8795
|
+
});
|
|
8781
8796
|
}
|
|
8782
8797
|
|
|
8783
8798
|
|
|
@@ -9157,14 +9172,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9157
9172
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9158
9173
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
9159
9174
|
/* harmony export */ });
|
|
9160
|
-
/* harmony import */ var
|
|
9161
|
-
/* 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");
|
|
9162
9177
|
|
|
9163
9178
|
|
|
9164
9179
|
|
|
9165
9180
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
9166
|
-
...
|
|
9167
|
-
...
|
|
9181
|
+
..._common_utils_js__WEBPACK_IMPORTED_MODULE_1__,
|
|
9182
|
+
..._node_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
9168
9183
|
});
|
|
9169
9184
|
|
|
9170
9185
|
|
|
@@ -9319,6 +9334,27 @@ const isPlainObject = (val) => {
|
|
|
9319
9334
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
9320
9335
|
}
|
|
9321
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
|
+
|
|
9322
9358
|
/**
|
|
9323
9359
|
* Determine if a value is a Date
|
|
9324
9360
|
*
|
|
@@ -9441,6 +9477,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
9441
9477
|
fn.call(null, obj[i], i, obj);
|
|
9442
9478
|
}
|
|
9443
9479
|
} else {
|
|
9480
|
+
// Buffer check
|
|
9481
|
+
if (isBuffer(obj)) {
|
|
9482
|
+
return;
|
|
9483
|
+
}
|
|
9484
|
+
|
|
9444
9485
|
// Iterate over object keys
|
|
9445
9486
|
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
9446
9487
|
const len = keys.length;
|
|
@@ -9454,6 +9495,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
9454
9495
|
}
|
|
9455
9496
|
|
|
9456
9497
|
function findKey(obj, key) {
|
|
9498
|
+
if (isBuffer(obj)){
|
|
9499
|
+
return null;
|
|
9500
|
+
}
|
|
9501
|
+
|
|
9457
9502
|
key = key.toLowerCase();
|
|
9458
9503
|
const keys = Object.keys(obj);
|
|
9459
9504
|
let i = keys.length;
|
|
@@ -9807,6 +9852,11 @@ const toJSONObject = (obj) => {
|
|
|
9807
9852
|
return;
|
|
9808
9853
|
}
|
|
9809
9854
|
|
|
9855
|
+
//Buffer check
|
|
9856
|
+
if (isBuffer(source)) {
|
|
9857
|
+
return source;
|
|
9858
|
+
}
|
|
9859
|
+
|
|
9810
9860
|
if(!('toJSON' in source)) {
|
|
9811
9861
|
stack[i] = source;
|
|
9812
9862
|
const target = isArray(source) ? [] : {};
|
|
@@ -9878,6 +9928,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
9878
9928
|
isBoolean,
|
|
9879
9929
|
isObject,
|
|
9880
9930
|
isPlainObject,
|
|
9931
|
+
isEmptyObject,
|
|
9881
9932
|
isReadableStream,
|
|
9882
9933
|
isRequest,
|
|
9883
9934
|
isResponse,
|