contentful-management 11.56.0 → 11.57.1
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/contentful-management.browser.js +274 -194
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +433 -248
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/common-types.js +2 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/common-types.d.ts +5 -3
- package/dist/typings/entities/app-action-call.d.ts +2 -2
- package/dist/typings/entities/ui-config.d.ts +1 -1
- package/dist/typings/plain/entities/app-action-call.d.ts +3 -3
- package/package.json +1 -1
|
@@ -5053,6 +5053,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5053
5053
|
|
|
5054
5054
|
/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */
|
|
5055
5055
|
|
|
5056
|
+
// Retry options used by createWithResponse and createWithResult. Kept separate for clarity.
|
|
5057
|
+
|
|
5056
5058
|
// New route params for fetching structured call or raw response
|
|
5057
5059
|
|
|
5058
5060
|
let ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) {
|
|
@@ -25386,7 +25388,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25386
25388
|
const knownAdapters = {
|
|
25387
25389
|
http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
25388
25390
|
xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
25389
|
-
fetch:
|
|
25391
|
+
fetch: {
|
|
25392
|
+
get: _fetch_js__WEBPACK_IMPORTED_MODULE_2__.getFetch,
|
|
25393
|
+
}
|
|
25390
25394
|
}
|
|
25391
25395
|
|
|
25392
25396
|
_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, value) => {
|
|
@@ -25405,7 +25409,7 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
25405
25409
|
const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || adapter === null || adapter === false;
|
|
25406
25410
|
|
|
25407
25411
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
25408
|
-
getAdapter: (adapters) => {
|
|
25412
|
+
getAdapter: (adapters, config) => {
|
|
25409
25413
|
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isArray(adapters) ? adapters : [adapters];
|
|
25410
25414
|
|
|
25411
25415
|
const {length} = adapters;
|
|
@@ -25428,7 +25432,7 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["de
|
|
|
25428
25432
|
}
|
|
25429
25433
|
}
|
|
25430
25434
|
|
|
25431
|
-
if (adapter) {
|
|
25435
|
+
if (adapter && (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
25432
25436
|
break;
|
|
25433
25437
|
}
|
|
25434
25438
|
|
|
@@ -25469,10 +25473,11 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["de
|
|
|
25469
25473
|
"use strict";
|
|
25470
25474
|
__webpack_require__.r(__webpack_exports__);
|
|
25471
25475
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25472
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25476
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
25477
|
+
/* harmony export */ getFetch: () => (/* binding */ getFetch)
|
|
25473
25478
|
/* harmony export */ });
|
|
25474
|
-
/* harmony import */ var
|
|
25475
|
-
/* harmony import */ var
|
|
25479
|
+
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
|
|
25480
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25476
25481
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25477
25482
|
/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "../node_modules/axios/lib/helpers/composeSignals.js");
|
|
25478
25483
|
/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/trackStream.js */ "../node_modules/axios/lib/helpers/trackStream.js");
|
|
@@ -25490,14 +25495,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25490
25495
|
|
|
25491
25496
|
|
|
25492
25497
|
|
|
25493
|
-
const
|
|
25494
|
-
|
|
25498
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
25499
|
+
|
|
25500
|
+
const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
25501
|
+
|
|
25502
|
+
const globalFetchAPI = (({fetch, Request, Response}) => ({
|
|
25503
|
+
fetch, Request, Response
|
|
25504
|
+
}))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
|
|
25505
|
+
|
|
25506
|
+
const {
|
|
25507
|
+
ReadableStream, TextEncoder
|
|
25508
|
+
} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global;
|
|
25495
25509
|
|
|
25496
|
-
// used only inside the fetch adapter
|
|
25497
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
25498
|
-
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
25499
|
-
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
25500
|
-
);
|
|
25501
25510
|
|
|
25502
25511
|
const test = (fn, ...args) => {
|
|
25503
25512
|
try {
|
|
@@ -25507,208 +25516,261 @@ const test = (fn, ...args) => {
|
|
|
25507
25516
|
}
|
|
25508
25517
|
}
|
|
25509
25518
|
|
|
25510
|
-
const
|
|
25511
|
-
|
|
25519
|
+
const factory = (env) => {
|
|
25520
|
+
const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env);
|
|
25521
|
+
const isFetchSupported = isFunction(fetch);
|
|
25522
|
+
const isRequestSupported = isFunction(Request);
|
|
25523
|
+
const isResponseSupported = isFunction(Response);
|
|
25512
25524
|
|
|
25513
|
-
|
|
25514
|
-
|
|
25515
|
-
|
|
25516
|
-
get duplex() {
|
|
25517
|
-
duplexAccessed = true;
|
|
25518
|
-
return 'half';
|
|
25519
|
-
},
|
|
25520
|
-
}).headers.has('Content-Type');
|
|
25525
|
+
if (!isFetchSupported) {
|
|
25526
|
+
return false;
|
|
25527
|
+
}
|
|
25521
25528
|
|
|
25522
|
-
|
|
25523
|
-
});
|
|
25529
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
25524
25530
|
|
|
25525
|
-
const
|
|
25531
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
25532
|
+
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
25533
|
+
async (str) => new Uint8Array(await new Request(str).arrayBuffer())
|
|
25534
|
+
);
|
|
25526
25535
|
|
|
25527
|
-
const
|
|
25528
|
-
|
|
25536
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
25537
|
+
let duplexAccessed = false;
|
|
25529
25538
|
|
|
25539
|
+
const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
|
|
25540
|
+
body: new ReadableStream(),
|
|
25541
|
+
method: 'POST',
|
|
25542
|
+
get duplex() {
|
|
25543
|
+
duplexAccessed = true;
|
|
25544
|
+
return 'half';
|
|
25545
|
+
},
|
|
25546
|
+
}).headers.has('Content-Type');
|
|
25530
25547
|
|
|
25531
|
-
|
|
25532
|
-
|
|
25533
|
-
|
|
25548
|
+
return duplexAccessed && !hasContentType;
|
|
25549
|
+
});
|
|
25550
|
+
|
|
25551
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
25552
|
+
test(() => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(new Response('').body));
|
|
25553
|
+
|
|
25554
|
+
const resolvers = {
|
|
25555
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
25556
|
+
};
|
|
25557
|
+
|
|
25558
|
+
isFetchSupported && ((() => {
|
|
25559
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
25560
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
25561
|
+
let method = res && res[type];
|
|
25562
|
+
|
|
25563
|
+
if (method) {
|
|
25564
|
+
return method.call(res);
|
|
25565
|
+
}
|
|
25534
25566
|
|
|
25535
|
-
isFetchSupported && (((res) => {
|
|
25536
|
-
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
25537
|
-
!resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(res[type]) ? (res) => res[type]() :
|
|
25538
|
-
(_, config) => {
|
|
25539
25567
|
throw new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"](`Response type '${type}' is not supported`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NOT_SUPPORT, config);
|
|
25540
25568
|
})
|
|
25541
|
-
|
|
25542
|
-
})(
|
|
25569
|
+
});
|
|
25570
|
+
})());
|
|
25543
25571
|
|
|
25544
|
-
const getBodyLength = async (body) => {
|
|
25545
|
-
|
|
25546
|
-
|
|
25547
|
-
|
|
25572
|
+
const getBodyLength = async (body) => {
|
|
25573
|
+
if (body == null) {
|
|
25574
|
+
return 0;
|
|
25575
|
+
}
|
|
25548
25576
|
|
|
25549
|
-
|
|
25550
|
-
|
|
25551
|
-
|
|
25577
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(body)) {
|
|
25578
|
+
return body.size;
|
|
25579
|
+
}
|
|
25552
25580
|
|
|
25553
|
-
|
|
25554
|
-
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
|
|
25558
|
-
|
|
25559
|
-
|
|
25581
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(body)) {
|
|
25582
|
+
const _request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
|
|
25583
|
+
method: 'POST',
|
|
25584
|
+
body,
|
|
25585
|
+
});
|
|
25586
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
25587
|
+
}
|
|
25560
25588
|
|
|
25561
|
-
|
|
25562
|
-
|
|
25563
|
-
|
|
25589
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(body) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(body)) {
|
|
25590
|
+
return body.byteLength;
|
|
25591
|
+
}
|
|
25592
|
+
|
|
25593
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(body)) {
|
|
25594
|
+
body = body + '';
|
|
25595
|
+
}
|
|
25564
25596
|
|
|
25565
|
-
|
|
25566
|
-
|
|
25597
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(body)) {
|
|
25598
|
+
return (await encodeText(body)).byteLength;
|
|
25599
|
+
}
|
|
25567
25600
|
}
|
|
25568
25601
|
|
|
25569
|
-
|
|
25570
|
-
|
|
25602
|
+
const resolveBodyLength = async (headers, body) => {
|
|
25603
|
+
const length = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(headers.getContentLength());
|
|
25604
|
+
|
|
25605
|
+
return length == null ? getBodyLength(body) : length;
|
|
25571
25606
|
}
|
|
25572
|
-
}
|
|
25573
25607
|
|
|
25574
|
-
|
|
25575
|
-
|
|
25608
|
+
return async (config) => {
|
|
25609
|
+
let {
|
|
25610
|
+
url,
|
|
25611
|
+
method,
|
|
25612
|
+
data,
|
|
25613
|
+
signal,
|
|
25614
|
+
cancelToken,
|
|
25615
|
+
timeout,
|
|
25616
|
+
onDownloadProgress,
|
|
25617
|
+
onUploadProgress,
|
|
25618
|
+
responseType,
|
|
25619
|
+
headers,
|
|
25620
|
+
withCredentials = 'same-origin',
|
|
25621
|
+
fetchOptions
|
|
25622
|
+
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
|
|
25576
25623
|
|
|
25577
|
-
|
|
25578
|
-
}
|
|
25624
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
25579
25625
|
|
|
25580
|
-
|
|
25581
|
-
|
|
25582
|
-
|
|
25583
|
-
|
|
25584
|
-
|
|
25585
|
-
signal,
|
|
25586
|
-
cancelToken,
|
|
25587
|
-
timeout,
|
|
25588
|
-
onDownloadProgress,
|
|
25589
|
-
onUploadProgress,
|
|
25590
|
-
responseType,
|
|
25591
|
-
headers,
|
|
25592
|
-
withCredentials = 'same-origin',
|
|
25593
|
-
fetchOptions
|
|
25594
|
-
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
|
|
25595
|
-
|
|
25596
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
25597
|
-
|
|
25598
|
-
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
25599
|
-
|
|
25600
|
-
let request;
|
|
25601
|
-
|
|
25602
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
25626
|
+
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
25627
|
+
|
|
25628
|
+
let request = null;
|
|
25629
|
+
|
|
25630
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
25603
25631
|
composedSignal.unsubscribe();
|
|
25604
|
-
|
|
25632
|
+
});
|
|
25605
25633
|
|
|
25606
|
-
|
|
25634
|
+
let requestContentLength;
|
|
25607
25635
|
|
|
25608
|
-
|
|
25609
|
-
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25636
|
+
try {
|
|
25637
|
+
if (
|
|
25638
|
+
onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
|
|
25639
|
+
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
25640
|
+
) {
|
|
25641
|
+
let _request = new Request(url, {
|
|
25642
|
+
method: 'POST',
|
|
25643
|
+
body: data,
|
|
25644
|
+
duplex: "half"
|
|
25645
|
+
});
|
|
25618
25646
|
|
|
25619
|
-
|
|
25647
|
+
let contentTypeHeader;
|
|
25620
25648
|
|
|
25621
|
-
|
|
25622
|
-
|
|
25623
|
-
|
|
25649
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
25650
|
+
headers.setContentType(contentTypeHeader)
|
|
25651
|
+
}
|
|
25624
25652
|
|
|
25625
|
-
|
|
25626
|
-
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25653
|
+
if (_request.body) {
|
|
25654
|
+
const [onProgress, flush] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
|
|
25655
|
+
requestContentLength,
|
|
25656
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onUploadProgress))
|
|
25657
|
+
);
|
|
25630
25658
|
|
|
25631
|
-
|
|
25659
|
+
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
25660
|
+
}
|
|
25632
25661
|
}
|
|
25633
|
-
}
|
|
25634
25662
|
|
|
25635
|
-
|
|
25636
|
-
|
|
25637
|
-
|
|
25663
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(withCredentials)) {
|
|
25664
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
25665
|
+
}
|
|
25638
25666
|
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
request = new Request(url, {
|
|
25643
|
-
...fetchOptions,
|
|
25644
|
-
signal: composedSignal,
|
|
25645
|
-
method: method.toUpperCase(),
|
|
25646
|
-
headers: headers.normalize().toJSON(),
|
|
25647
|
-
body: data,
|
|
25648
|
-
duplex: "half",
|
|
25649
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
25650
|
-
});
|
|
25667
|
+
// Cloudflare Workers throws when credentials are defined
|
|
25668
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
25669
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
25651
25670
|
|
|
25652
|
-
|
|
25671
|
+
const resolvedOptions = {
|
|
25672
|
+
...fetchOptions,
|
|
25673
|
+
signal: composedSignal,
|
|
25674
|
+
method: method.toUpperCase(),
|
|
25675
|
+
headers: headers.normalize().toJSON(),
|
|
25676
|
+
body: data,
|
|
25677
|
+
duplex: "half",
|
|
25678
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
25679
|
+
};
|
|
25653
25680
|
|
|
25654
|
-
|
|
25681
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
25655
25682
|
|
|
25656
|
-
|
|
25657
|
-
const options = {};
|
|
25683
|
+
let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
|
|
25658
25684
|
|
|
25659
|
-
|
|
25660
|
-
options[prop] = response[prop];
|
|
25661
|
-
});
|
|
25685
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
25662
25686
|
|
|
25663
|
-
|
|
25687
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
25688
|
+
const options = {};
|
|
25664
25689
|
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
|
|
25668
|
-
) || [];
|
|
25690
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
25691
|
+
options[prop] = response[prop];
|
|
25692
|
+
});
|
|
25669
25693
|
|
|
25670
|
-
|
|
25671
|
-
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
25672
|
-
flush && flush();
|
|
25673
|
-
unsubscribe && unsubscribe();
|
|
25674
|
-
}),
|
|
25675
|
-
options
|
|
25676
|
-
);
|
|
25677
|
-
}
|
|
25694
|
+
const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(response.headers.get('content-length'));
|
|
25678
25695
|
|
|
25679
|
-
|
|
25696
|
+
const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
|
|
25697
|
+
responseContentLength,
|
|
25698
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onDownloadProgress), true)
|
|
25699
|
+
) || [];
|
|
25680
25700
|
|
|
25681
|
-
|
|
25701
|
+
response = new Response(
|
|
25702
|
+
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
25703
|
+
flush && flush();
|
|
25704
|
+
unsubscribe && unsubscribe();
|
|
25705
|
+
}),
|
|
25706
|
+
options
|
|
25707
|
+
);
|
|
25708
|
+
}
|
|
25682
25709
|
|
|
25683
|
-
|
|
25710
|
+
responseType = responseType || 'text';
|
|
25684
25711
|
|
|
25685
|
-
|
|
25686
|
-
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25712
|
+
let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(resolvers, responseType) || 'text'](response, config);
|
|
25713
|
+
|
|
25714
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
25715
|
+
|
|
25716
|
+
return await new Promise((resolve, reject) => {
|
|
25717
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__["default"])(resolve, reject, {
|
|
25718
|
+
data: responseData,
|
|
25719
|
+
headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(response.headers),
|
|
25720
|
+
status: response.status,
|
|
25721
|
+
statusText: response.statusText,
|
|
25722
|
+
config,
|
|
25723
|
+
request
|
|
25724
|
+
})
|
|
25693
25725
|
})
|
|
25694
|
-
})
|
|
25695
|
-
|
|
25696
|
-
unsubscribe && unsubscribe();
|
|
25726
|
+
} catch (err) {
|
|
25727
|
+
unsubscribe && unsubscribe();
|
|
25697
25728
|
|
|
25698
|
-
|
|
25699
|
-
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25729
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
25730
|
+
throw Object.assign(
|
|
25731
|
+
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
|
|
25732
|
+
{
|
|
25733
|
+
cause: err.cause || err
|
|
25734
|
+
}
|
|
25735
|
+
)
|
|
25736
|
+
}
|
|
25737
|
+
|
|
25738
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request);
|
|
25705
25739
|
}
|
|
25740
|
+
}
|
|
25741
|
+
}
|
|
25742
|
+
|
|
25743
|
+
const seedCache = new Map();
|
|
25744
|
+
|
|
25745
|
+
const getFetch = (config) => {
|
|
25746
|
+
let env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
|
|
25747
|
+
skipUndefined: true
|
|
25748
|
+
}, globalFetchAPI, config ? config.env : null);
|
|
25706
25749
|
|
|
25707
|
-
|
|
25750
|
+
const {fetch, Request, Response} = env;
|
|
25751
|
+
|
|
25752
|
+
const seeds = [
|
|
25753
|
+
Request, Response, fetch
|
|
25754
|
+
];
|
|
25755
|
+
|
|
25756
|
+
let len = seeds.length, i = len,
|
|
25757
|
+
seed, target, map = seedCache;
|
|
25758
|
+
|
|
25759
|
+
while (i--) {
|
|
25760
|
+
seed = seeds[i];
|
|
25761
|
+
target = map.get(seed);
|
|
25762
|
+
|
|
25763
|
+
target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))
|
|
25764
|
+
|
|
25765
|
+
map = target;
|
|
25708
25766
|
}
|
|
25709
|
-
}));
|
|
25710
25767
|
|
|
25768
|
+
return target;
|
|
25769
|
+
};
|
|
25770
|
+
|
|
25771
|
+
const adapter = getFetch();
|
|
25711
25772
|
|
|
25773
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (adapter);
|
|
25712
25774
|
|
|
25713
25775
|
|
|
25714
25776
|
/***/ }),
|
|
@@ -25726,30 +25788,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25726
25788
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25727
25789
|
/* harmony export */ });
|
|
25728
25790
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25729
|
-
/* harmony import */ var
|
|
25791
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
|
|
25730
25792
|
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
|
|
25731
|
-
/* harmony import */ var
|
|
25793
|
+
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
|
|
25732
25794
|
/* harmony import */ var proxy_from_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! proxy-from-env */ "../node_modules/proxy-from-env/index.js");
|
|
25733
25795
|
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! http */ "http");
|
|
25734
25796
|
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! https */ "https");
|
|
25735
25797
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! util */ "util");
|
|
25736
25798
|
/* harmony import */ var follow_redirects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! follow-redirects */ "../node_modules/follow-redirects/index.js");
|
|
25737
25799
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zlib */ "zlib");
|
|
25738
|
-
/* harmony import */ var
|
|
25739
|
-
/* harmony import */ var
|
|
25740
|
-
/* harmony import */ var
|
|
25800
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js");
|
|
25801
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
25802
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25741
25803
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
|
|
25742
25804
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
|
|
25743
|
-
/* harmony import */ var
|
|
25805
|
+
/* harmony import */ var _helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../helpers/fromDataURI.js */ "../node_modules/axios/lib/helpers/fromDataURI.js");
|
|
25744
25806
|
/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stream */ "stream");
|
|
25745
|
-
/* harmony import */ var
|
|
25746
|
-
/* harmony import */ var
|
|
25807
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
|
|
25808
|
+
/* harmony import */ var _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../helpers/AxiosTransformStream.js */ "../node_modules/axios/lib/helpers/AxiosTransformStream.js");
|
|
25747
25809
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "events");
|
|
25748
|
-
/* harmony import */ var
|
|
25749
|
-
/* harmony import */ var
|
|
25750
|
-
/* harmony import */ var
|
|
25810
|
+
/* harmony import */ var _helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../helpers/formDataToStream.js */ "../node_modules/axios/lib/helpers/formDataToStream.js");
|
|
25811
|
+
/* harmony import */ var _helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../helpers/readBlob.js */ "../node_modules/axios/lib/helpers/readBlob.js");
|
|
25812
|
+
/* harmony import */ var _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../helpers/ZlibHeaderTransformStream.js */ "../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js");
|
|
25751
25813
|
/* harmony import */ var _helpers_callbackify_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/callbackify.js */ "../node_modules/axios/lib/helpers/callbackify.js");
|
|
25752
|
-
/* harmony import */ var
|
|
25814
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "../node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
25815
|
+
/* harmony import */ var _helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../helpers/estimateDataURLDecodedBytes.js */ "../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js");
|
|
25816
|
+
|
|
25753
25817
|
|
|
25754
25818
|
|
|
25755
25819
|
|
|
@@ -25798,6 +25862,7 @@ const supportedProtocols = _platform_index_js__WEBPACK_IMPORTED_MODULE_9__["defa
|
|
|
25798
25862
|
return protocol + ':';
|
|
25799
25863
|
});
|
|
25800
25864
|
|
|
25865
|
+
|
|
25801
25866
|
const flushOnFinish = (stream, [throttled, flush]) => {
|
|
25802
25867
|
stream
|
|
25803
25868
|
.on('end', flush)
|
|
@@ -25806,6 +25871,7 @@ const flushOnFinish = (stream, [throttled, flush]) => {
|
|
|
25806
25871
|
return throttled;
|
|
25807
25872
|
}
|
|
25808
25873
|
|
|
25874
|
+
|
|
25809
25875
|
/**
|
|
25810
25876
|
* If the proxy or config beforeRedirects functions are defined, call them with the options
|
|
25811
25877
|
* object.
|
|
@@ -25985,10 +26051,25 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
25985
26051
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
25986
26052
|
|
|
25987
26053
|
if (protocol === 'data:') {
|
|
26054
|
+
// Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
|
|
26055
|
+
if (config.maxContentLength > -1) {
|
|
26056
|
+
// Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
|
|
26057
|
+
const dataUrl = String(config.url || fullPath || '');
|
|
26058
|
+
const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_13__["default"])(dataUrl);
|
|
26059
|
+
|
|
26060
|
+
if (estimated > config.maxContentLength) {
|
|
26061
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26062
|
+
'maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
26063
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE,
|
|
26064
|
+
config
|
|
26065
|
+
));
|
|
26066
|
+
}
|
|
26067
|
+
}
|
|
26068
|
+
|
|
25988
26069
|
let convertedData;
|
|
25989
26070
|
|
|
25990
26071
|
if (method !== 'GET') {
|
|
25991
|
-
return (0,
|
|
26072
|
+
return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, {
|
|
25992
26073
|
status: 405,
|
|
25993
26074
|
statusText: 'method not allowed',
|
|
25994
26075
|
headers: {},
|
|
@@ -25997,11 +26078,11 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
25997
26078
|
}
|
|
25998
26079
|
|
|
25999
26080
|
try {
|
|
26000
|
-
convertedData = (0,
|
|
26081
|
+
convertedData = (0,_helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_16__["default"])(config.url, responseType === 'blob', {
|
|
26001
26082
|
Blob: config.env && config.env.Blob
|
|
26002
26083
|
});
|
|
26003
26084
|
} catch (err) {
|
|
26004
|
-
throw
|
|
26085
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST, config);
|
|
26005
26086
|
}
|
|
26006
26087
|
|
|
26007
26088
|
if (responseType === 'text') {
|
|
@@ -26014,30 +26095,30 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26014
26095
|
convertedData = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(convertedData);
|
|
26015
26096
|
}
|
|
26016
26097
|
|
|
26017
|
-
return (0,
|
|
26098
|
+
return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, {
|
|
26018
26099
|
data: convertedData,
|
|
26019
26100
|
status: 200,
|
|
26020
26101
|
statusText: 'OK',
|
|
26021
|
-
headers: new
|
|
26102
|
+
headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"](),
|
|
26022
26103
|
config
|
|
26023
26104
|
});
|
|
26024
26105
|
}
|
|
26025
26106
|
|
|
26026
26107
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
26027
|
-
return reject(new
|
|
26108
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26028
26109
|
'Unsupported protocol ' + protocol,
|
|
26029
|
-
|
|
26110
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26030
26111
|
config
|
|
26031
26112
|
));
|
|
26032
26113
|
}
|
|
26033
26114
|
|
|
26034
|
-
const headers =
|
|
26115
|
+
const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"].from(config.headers).normalize();
|
|
26035
26116
|
|
|
26036
26117
|
// Set User-Agent (required by some servers)
|
|
26037
26118
|
// See https://github.com/axios/axios/issues/69
|
|
26038
26119
|
// User-Agent is specified; handle case where no UA header is desired
|
|
26039
26120
|
// Only set header if it hasn't been set in config
|
|
26040
|
-
headers.set('User-Agent', 'axios/' +
|
|
26121
|
+
headers.set('User-Agent', 'axios/' + _env_data_js__WEBPACK_IMPORTED_MODULE_18__.VERSION, false);
|
|
26041
26122
|
|
|
26042
26123
|
const {onUploadProgress, onDownloadProgress} = config;
|
|
26043
26124
|
const maxRate = config.maxRate;
|
|
@@ -26048,10 +26129,10 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26048
26129
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isSpecCompliantForm(data)) {
|
|
26049
26130
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
26050
26131
|
|
|
26051
|
-
data = (0,
|
|
26132
|
+
data = (0,_helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_19__["default"])(data, (formHeaders) => {
|
|
26052
26133
|
headers.set(formHeaders);
|
|
26053
26134
|
}, {
|
|
26054
|
-
tag: `axios-${
|
|
26135
|
+
tag: `axios-${_env_data_js__WEBPACK_IMPORTED_MODULE_18__.VERSION}-boundary`,
|
|
26055
26136
|
boundary: userBoundary && userBoundary[1] || undefined
|
|
26056
26137
|
});
|
|
26057
26138
|
// support for https://www.npmjs.com/package/form-data api
|
|
@@ -26069,7 +26150,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26069
26150
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isBlob(data) || _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isFile(data)) {
|
|
26070
26151
|
data.size && headers.setContentType(data.type || 'application/octet-stream');
|
|
26071
26152
|
headers.setContentLength(data.size || 0);
|
|
26072
|
-
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from((0,
|
|
26153
|
+
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from((0,_helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_20__["default"])(data));
|
|
26073
26154
|
} else if (data && !_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isStream(data)) {
|
|
26074
26155
|
if (Buffer.isBuffer(data)) {
|
|
26075
26156
|
// Nothing to do...
|
|
@@ -26078,9 +26159,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26078
26159
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isString(data)) {
|
|
26079
26160
|
data = Buffer.from(data, 'utf-8');
|
|
26080
26161
|
} else {
|
|
26081
|
-
return reject(new
|
|
26162
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26082
26163
|
'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
|
|
26083
|
-
|
|
26164
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26084
26165
|
config
|
|
26085
26166
|
));
|
|
26086
26167
|
}
|
|
@@ -26089,9 +26170,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26089
26170
|
headers.setContentLength(data.length, false);
|
|
26090
26171
|
|
|
26091
26172
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
26092
|
-
return reject(new
|
|
26173
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26093
26174
|
'Request body larger than maxBodyLength limit',
|
|
26094
|
-
|
|
26175
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26095
26176
|
config
|
|
26096
26177
|
));
|
|
26097
26178
|
}
|
|
@@ -26111,15 +26192,15 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26111
26192
|
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(data, {objectMode: false});
|
|
26112
26193
|
}
|
|
26113
26194
|
|
|
26114
|
-
data = stream__WEBPACK_IMPORTED_MODULE_6__.pipeline([data, new
|
|
26195
|
+
data = stream__WEBPACK_IMPORTED_MODULE_6__.pipeline([data, new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__["default"]({
|
|
26115
26196
|
maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxUploadRate)
|
|
26116
26197
|
})], _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].noop);
|
|
26117
26198
|
|
|
26118
26199
|
onUploadProgress && data.on('progress', flushOnFinish(
|
|
26119
26200
|
data,
|
|
26120
|
-
(0,
|
|
26201
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventDecorator)(
|
|
26121
26202
|
contentLength,
|
|
26122
|
-
(0,
|
|
26203
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.asyncDecorator)(onUploadProgress), false, 3)
|
|
26123
26204
|
)
|
|
26124
26205
|
));
|
|
26125
26206
|
}
|
|
@@ -26143,7 +26224,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26143
26224
|
let path;
|
|
26144
26225
|
|
|
26145
26226
|
try {
|
|
26146
|
-
path = (0,
|
|
26227
|
+
path = (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_23__["default"])(
|
|
26147
26228
|
parsed.pathname + parsed.search,
|
|
26148
26229
|
config.params,
|
|
26149
26230
|
config.paramsSerializer
|
|
@@ -26221,15 +26302,15 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26221
26302
|
const responseLength = +res.headers['content-length'];
|
|
26222
26303
|
|
|
26223
26304
|
if (onDownloadProgress || maxDownloadRate) {
|
|
26224
|
-
const transformStream = new
|
|
26305
|
+
const transformStream = new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__["default"]({
|
|
26225
26306
|
maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxDownloadRate)
|
|
26226
26307
|
});
|
|
26227
26308
|
|
|
26228
26309
|
onDownloadProgress && transformStream.on('progress', flushOnFinish(
|
|
26229
26310
|
transformStream,
|
|
26230
|
-
(0,
|
|
26311
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventDecorator)(
|
|
26231
26312
|
responseLength,
|
|
26232
|
-
(0,
|
|
26313
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.asyncDecorator)(onDownloadProgress), true, 3)
|
|
26233
26314
|
)
|
|
26234
26315
|
));
|
|
26235
26316
|
|
|
@@ -26263,7 +26344,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26263
26344
|
delete res.headers['content-encoding'];
|
|
26264
26345
|
break;
|
|
26265
26346
|
case 'deflate':
|
|
26266
|
-
streams.push(new
|
|
26347
|
+
streams.push(new _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_24__["default"]());
|
|
26267
26348
|
|
|
26268
26349
|
// add the unzipper to the body stream processing pipeline
|
|
26269
26350
|
streams.push(zlib__WEBPACK_IMPORTED_MODULE_5__.createUnzip(zlibOptions));
|
|
@@ -26289,14 +26370,14 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26289
26370
|
const response = {
|
|
26290
26371
|
status: res.statusCode,
|
|
26291
26372
|
statusText: res.statusMessage,
|
|
26292
|
-
headers: new
|
|
26373
|
+
headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"](res.headers),
|
|
26293
26374
|
config,
|
|
26294
26375
|
request: lastRequest
|
|
26295
26376
|
};
|
|
26296
26377
|
|
|
26297
26378
|
if (responseType === 'stream') {
|
|
26298
26379
|
response.data = responseStream;
|
|
26299
|
-
(0,
|
|
26380
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, response);
|
|
26300
26381
|
} else {
|
|
26301
26382
|
const responseBuffer = [];
|
|
26302
26383
|
let totalResponseBytes = 0;
|
|
@@ -26310,8 +26391,8 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26310
26391
|
// stream.destroy() emit aborted event before calling reject() on Node.js v16
|
|
26311
26392
|
rejected = true;
|
|
26312
26393
|
responseStream.destroy();
|
|
26313
|
-
reject(new
|
|
26314
|
-
|
|
26394
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"]('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
26395
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE, config, lastRequest));
|
|
26315
26396
|
}
|
|
26316
26397
|
});
|
|
26317
26398
|
|
|
@@ -26320,9 +26401,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26320
26401
|
return;
|
|
26321
26402
|
}
|
|
26322
26403
|
|
|
26323
|
-
const err = new
|
|
26404
|
+
const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26324
26405
|
'stream has been aborted',
|
|
26325
|
-
|
|
26406
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE,
|
|
26326
26407
|
config,
|
|
26327
26408
|
lastRequest
|
|
26328
26409
|
);
|
|
@@ -26332,7 +26413,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26332
26413
|
|
|
26333
26414
|
responseStream.on('error', function handleStreamError(err) {
|
|
26334
26415
|
if (req.destroyed) return;
|
|
26335
|
-
reject(
|
|
26416
|
+
reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, lastRequest));
|
|
26336
26417
|
});
|
|
26337
26418
|
|
|
26338
26419
|
responseStream.on('end', function handleStreamEnd() {
|
|
@@ -26346,9 +26427,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26346
26427
|
}
|
|
26347
26428
|
response.data = responseData;
|
|
26348
26429
|
} catch (err) {
|
|
26349
|
-
return reject(
|
|
26430
|
+
return reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, response.request, response));
|
|
26350
26431
|
}
|
|
26351
|
-
(0,
|
|
26432
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, response);
|
|
26352
26433
|
});
|
|
26353
26434
|
}
|
|
26354
26435
|
|
|
@@ -26369,7 +26450,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26369
26450
|
req.on('error', function handleRequestError(err) {
|
|
26370
26451
|
// @todo remove
|
|
26371
26452
|
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
|
|
26372
|
-
reject(
|
|
26453
|
+
reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, req));
|
|
26373
26454
|
});
|
|
26374
26455
|
|
|
26375
26456
|
// set tcp keep alive to prevent drop connection by peer
|
|
@@ -26384,9 +26465,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26384
26465
|
const timeout = parseInt(config.timeout, 10);
|
|
26385
26466
|
|
|
26386
26467
|
if (Number.isNaN(timeout)) {
|
|
26387
|
-
reject(new
|
|
26468
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26388
26469
|
'error trying to parse `config.timeout` to int',
|
|
26389
|
-
|
|
26470
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_OPTION_VALUE,
|
|
26390
26471
|
config,
|
|
26391
26472
|
req
|
|
26392
26473
|
));
|
|
@@ -26402,13 +26483,13 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26402
26483
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
26403
26484
|
if (isDone) return;
|
|
26404
26485
|
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
26405
|
-
const transitional = config.transitional ||
|
|
26486
|
+
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_25__["default"];
|
|
26406
26487
|
if (config.timeoutErrorMessage) {
|
|
26407
26488
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
26408
26489
|
}
|
|
26409
|
-
reject(new
|
|
26490
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26410
26491
|
timeoutErrorMessage,
|
|
26411
|
-
transitional.clarifyTimeoutError ?
|
|
26492
|
+
transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ECONNABORTED,
|
|
26412
26493
|
config,
|
|
26413
26494
|
req
|
|
26414
26495
|
));
|
|
@@ -26576,15 +26657,18 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
26576
26657
|
};
|
|
26577
26658
|
|
|
26578
26659
|
// Handle low level network errors
|
|
26579
|
-
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
|
|
26660
|
+
request.onerror = function handleError(event) {
|
|
26661
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
26662
|
+
// (message may be empty; when present, surface it)
|
|
26663
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
26664
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
26665
|
+
const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](msg, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, config, request);
|
|
26666
|
+
// attach the underlying event for consumers who want details
|
|
26667
|
+
err.event = event || null;
|
|
26668
|
+
reject(err);
|
|
26669
|
+
request = null;
|
|
26586
26670
|
};
|
|
26587
|
-
|
|
26671
|
+
|
|
26588
26672
|
// Handle timeout
|
|
26589
26673
|
request.ontimeout = function handleTimeout() {
|
|
26590
26674
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
@@ -27373,11 +27457,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
27373
27457
|
return prop !== 'isAxiosError';
|
|
27374
27458
|
});
|
|
27375
27459
|
|
|
27376
|
-
|
|
27460
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
27377
27461
|
|
|
27378
|
-
|
|
27462
|
+
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
27463
|
+
const errCode = code == null && error ? error.code : code;
|
|
27464
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
27379
27465
|
|
|
27380
|
-
|
|
27466
|
+
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
27467
|
+
if (error && axiosError.cause == null) {
|
|
27468
|
+
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
27469
|
+
}
|
|
27470
|
+
|
|
27471
|
+
axiosError.name = (error && error.name) || 'Error';
|
|
27381
27472
|
|
|
27382
27473
|
customProps && Object.assign(axiosError, customProps);
|
|
27383
27474
|
|
|
@@ -27911,7 +28002,7 @@ function dispatchRequest(config) {
|
|
|
27911
28002
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
27912
28003
|
}
|
|
27913
28004
|
|
|
27914
|
-
const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter);
|
|
28005
|
+
const adapter = _adapters_adapters_js__WEBPACK_IMPORTED_MODULE_3__["default"].getAdapter(config.adapter || _defaults_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].adapter, config);
|
|
27915
28006
|
|
|
27916
28007
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
27917
28008
|
throwIfCancellationRequested(config);
|
|
@@ -28291,7 +28382,7 @@ const defaults = {
|
|
|
28291
28382
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
28292
28383
|
|
|
28293
28384
|
try {
|
|
28294
|
-
return JSON.parse(data);
|
|
28385
|
+
return JSON.parse(data, this.parseReviver);
|
|
28295
28386
|
} catch (e) {
|
|
28296
28387
|
if (strictJSONParsing) {
|
|
28297
28388
|
if (e.name === 'SyntaxError') {
|
|
@@ -28376,7 +28467,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28376
28467
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28377
28468
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
28378
28469
|
/* harmony export */ });
|
|
28379
|
-
const VERSION = "1.
|
|
28470
|
+
const VERSION = "1.12.0";
|
|
28380
28471
|
|
|
28381
28472
|
/***/ }),
|
|
28382
28473
|
|
|
@@ -28797,9 +28888,7 @@ function encode(val) {
|
|
|
28797
28888
|
replace(/%3A/gi, ':').
|
|
28798
28889
|
replace(/%24/g, '$').
|
|
28799
28890
|
replace(/%2C/gi, ',').
|
|
28800
|
-
replace(/%20/g, '+')
|
|
28801
|
-
replace(/%5B/gi, '[').
|
|
28802
|
-
replace(/%5D/gi, ']');
|
|
28891
|
+
replace(/%20/g, '+');
|
|
28803
28892
|
}
|
|
28804
28893
|
|
|
28805
28894
|
/**
|
|
@@ -29037,6 +29126,94 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29037
29126
|
|
|
29038
29127
|
|
|
29039
29128
|
|
|
29129
|
+
/***/ }),
|
|
29130
|
+
|
|
29131
|
+
/***/ "../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js":
|
|
29132
|
+
/*!************************************************************************!*\
|
|
29133
|
+
!*** ../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js ***!
|
|
29134
|
+
\************************************************************************/
|
|
29135
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
29136
|
+
|
|
29137
|
+
"use strict";
|
|
29138
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29139
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29140
|
+
/* harmony export */ "default": () => (/* binding */ estimateDataURLDecodedBytes)
|
|
29141
|
+
/* harmony export */ });
|
|
29142
|
+
/**
|
|
29143
|
+
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
|
29144
|
+
* - For base64: compute exact decoded size using length and padding;
|
|
29145
|
+
* handle %XX at the character-count level (no string allocation).
|
|
29146
|
+
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
|
29147
|
+
*
|
|
29148
|
+
* @param {string} url
|
|
29149
|
+
* @returns {number}
|
|
29150
|
+
*/
|
|
29151
|
+
function estimateDataURLDecodedBytes(url) {
|
|
29152
|
+
if (!url || typeof url !== 'string') return 0;
|
|
29153
|
+
if (!url.startsWith('data:')) return 0;
|
|
29154
|
+
|
|
29155
|
+
const comma = url.indexOf(',');
|
|
29156
|
+
if (comma < 0) return 0;
|
|
29157
|
+
|
|
29158
|
+
const meta = url.slice(5, comma);
|
|
29159
|
+
const body = url.slice(comma + 1);
|
|
29160
|
+
const isBase64 = /;base64/i.test(meta);
|
|
29161
|
+
|
|
29162
|
+
if (isBase64) {
|
|
29163
|
+
let effectiveLen = body.length;
|
|
29164
|
+
const len = body.length; // cache length
|
|
29165
|
+
|
|
29166
|
+
for (let i = 0; i < len; i++) {
|
|
29167
|
+
if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
|
|
29168
|
+
const a = body.charCodeAt(i + 1);
|
|
29169
|
+
const b = body.charCodeAt(i + 2);
|
|
29170
|
+
const isHex =
|
|
29171
|
+
((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
|
|
29172
|
+
((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
|
|
29173
|
+
|
|
29174
|
+
if (isHex) {
|
|
29175
|
+
effectiveLen -= 2;
|
|
29176
|
+
i += 2;
|
|
29177
|
+
}
|
|
29178
|
+
}
|
|
29179
|
+
}
|
|
29180
|
+
|
|
29181
|
+
let pad = 0;
|
|
29182
|
+
let idx = len - 1;
|
|
29183
|
+
|
|
29184
|
+
const tailIsPct3D = (j) =>
|
|
29185
|
+
j >= 2 &&
|
|
29186
|
+
body.charCodeAt(j - 2) === 37 && // '%'
|
|
29187
|
+
body.charCodeAt(j - 1) === 51 && // '3'
|
|
29188
|
+
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
|
|
29189
|
+
|
|
29190
|
+
if (idx >= 0) {
|
|
29191
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
29192
|
+
pad++;
|
|
29193
|
+
idx--;
|
|
29194
|
+
} else if (tailIsPct3D(idx)) {
|
|
29195
|
+
pad++;
|
|
29196
|
+
idx -= 3;
|
|
29197
|
+
}
|
|
29198
|
+
}
|
|
29199
|
+
|
|
29200
|
+
if (pad === 1 && idx >= 0) {
|
|
29201
|
+
if (body.charCodeAt(idx) === 61 /* '=' */) {
|
|
29202
|
+
pad++;
|
|
29203
|
+
} else if (tailIsPct3D(idx)) {
|
|
29204
|
+
pad++;
|
|
29205
|
+
}
|
|
29206
|
+
}
|
|
29207
|
+
|
|
29208
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
29209
|
+
const bytes = groups * 3 - (pad || 0);
|
|
29210
|
+
return bytes > 0 ? bytes : 0;
|
|
29211
|
+
}
|
|
29212
|
+
|
|
29213
|
+
return Buffer.byteLength(body, 'utf8');
|
|
29214
|
+
}
|
|
29215
|
+
|
|
29216
|
+
|
|
29040
29217
|
/***/ }),
|
|
29041
29218
|
|
|
29042
29219
|
/***/ "../node_modules/axios/lib/helpers/formDataToJSON.js":
|
|
@@ -29660,7 +29837,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29660
29837
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
|
|
29661
29838
|
const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, config);
|
|
29662
29839
|
|
|
29663
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
29840
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
29664
29841
|
|
|
29665
29842
|
newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
|
|
29666
29843
|
|
|
@@ -29673,17 +29850,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29673
29850
|
);
|
|
29674
29851
|
}
|
|
29675
29852
|
|
|
29676
|
-
let contentType;
|
|
29677
|
-
|
|
29678
29853
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFormData(data)) {
|
|
29679
29854
|
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserWebWorkerEnv) {
|
|
29680
|
-
headers.setContentType(undefined); //
|
|
29681
|
-
} else if ((
|
|
29682
|
-
//
|
|
29683
|
-
const
|
|
29684
|
-
headers
|
|
29855
|
+
headers.setContentType(undefined); // browser handles it
|
|
29856
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFunction(data.getHeaders)) {
|
|
29857
|
+
// Node.js FormData (like form-data package)
|
|
29858
|
+
const formHeaders = data.getHeaders();
|
|
29859
|
+
// Only set safe headers to avoid overwriting security headers
|
|
29860
|
+
const allowedHeaders = ['content-type', 'content-length'];
|
|
29861
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
29862
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
29863
|
+
headers.set(key, val);
|
|
29864
|
+
}
|
|
29865
|
+
});
|
|
29685
29866
|
}
|
|
29686
|
-
}
|
|
29867
|
+
}
|
|
29687
29868
|
|
|
29688
29869
|
// Add xsrf header
|
|
29689
29870
|
// This is only done if running in a standard browser environment.
|
|
@@ -30724,7 +30905,7 @@ const isEmptyObject = (val) => {
|
|
|
30724
30905
|
if (!isObject(val) || isBuffer(val)) {
|
|
30725
30906
|
return false;
|
|
30726
30907
|
}
|
|
30727
|
-
|
|
30908
|
+
|
|
30728
30909
|
try {
|
|
30729
30910
|
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
30730
30911
|
} catch (e) {
|
|
@@ -30917,7 +31098,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
30917
31098
|
* @returns {Object} Result of all merge properties
|
|
30918
31099
|
*/
|
|
30919
31100
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
30920
|
-
const {caseless} = isContextDefined(this) && this || {};
|
|
31101
|
+
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
30921
31102
|
const result = {};
|
|
30922
31103
|
const assignValue = (val, key) => {
|
|
30923
31104
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -30928,7 +31109,9 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
30928
31109
|
} else if (isArray(val)) {
|
|
30929
31110
|
result[targetKey] = val.slice();
|
|
30930
31111
|
} else {
|
|
30931
|
-
|
|
31112
|
+
if (!skipUndefined || !isUndefined(val)) {
|
|
31113
|
+
result[targetKey] = val;
|
|
31114
|
+
}
|
|
30932
31115
|
}
|
|
30933
31116
|
}
|
|
30934
31117
|
|
|
@@ -31209,6 +31392,8 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
31209
31392
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
31210
31393
|
}
|
|
31211
31394
|
|
|
31395
|
+
|
|
31396
|
+
|
|
31212
31397
|
/**
|
|
31213
31398
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
31214
31399
|
*
|
|
@@ -32818,7 +33003,7 @@ function createClient(params, opts = {}) {
|
|
|
32818
33003
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32819
33004
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32820
33005
|
// @ts-expect-error
|
|
32821
|
-
`${sdkMain}/${"11.
|
|
33006
|
+
`${sdkMain}/${"11.57.1"}`, params.application, params.integration, params.feature);
|
|
32822
33007
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32823
33008
|
userAgent
|
|
32824
33009
|
}));
|