contentful-management 11.57.0 → 11.57.2
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/README.md +2 -2
- package/dist/contentful-management.browser.js +272 -196
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +431 -250
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +1 -1
|
@@ -25388,7 +25388,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25388
25388
|
const knownAdapters = {
|
|
25389
25389
|
http: _http_js__WEBPACK_IMPORTED_MODULE_0__["default"],
|
|
25390
25390
|
xhr: _xhr_js__WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
25391
|
-
fetch:
|
|
25391
|
+
fetch: {
|
|
25392
|
+
get: _fetch_js__WEBPACK_IMPORTED_MODULE_2__.getFetch,
|
|
25393
|
+
}
|
|
25392
25394
|
}
|
|
25393
25395
|
|
|
25394
25396
|
_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].forEach(knownAdapters, (fn, value) => {
|
|
@@ -25407,7 +25409,7 @@ const renderReason = (reason) => `- ${reason}`;
|
|
|
25407
25409
|
const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || adapter === null || adapter === false;
|
|
25408
25410
|
|
|
25409
25411
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
25410
|
-
getAdapter: (adapters) => {
|
|
25412
|
+
getAdapter: (adapters, config) => {
|
|
25411
25413
|
adapters = _utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isArray(adapters) ? adapters : [adapters];
|
|
25412
25414
|
|
|
25413
25415
|
const {length} = adapters;
|
|
@@ -25430,7 +25432,7 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["de
|
|
|
25430
25432
|
}
|
|
25431
25433
|
}
|
|
25432
25434
|
|
|
25433
|
-
if (adapter) {
|
|
25435
|
+
if (adapter && (_utils_js__WEBPACK_IMPORTED_MODULE_3__["default"].isFunction(adapter) || (adapter = adapter.get(config)))) {
|
|
25434
25436
|
break;
|
|
25435
25437
|
}
|
|
25436
25438
|
|
|
@@ -25471,10 +25473,11 @@ const isResolvedHandle = (adapter) => _utils_js__WEBPACK_IMPORTED_MODULE_3__["de
|
|
|
25471
25473
|
"use strict";
|
|
25472
25474
|
__webpack_require__.r(__webpack_exports__);
|
|
25473
25475
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25474
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25476
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
25477
|
+
/* harmony export */ getFetch: () => (/* binding */ getFetch)
|
|
25475
25478
|
/* harmony export */ });
|
|
25476
|
-
/* harmony import */ var
|
|
25477
|
-
/* 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");
|
|
25478
25481
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25479
25482
|
/* harmony import */ var _helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../helpers/composeSignals.js */ "../node_modules/axios/lib/helpers/composeSignals.js");
|
|
25480
25483
|
/* harmony import */ var _helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../helpers/trackStream.js */ "../node_modules/axios/lib/helpers/trackStream.js");
|
|
@@ -25492,14 +25495,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25492
25495
|
|
|
25493
25496
|
|
|
25494
25497
|
|
|
25495
|
-
const
|
|
25496
|
-
|
|
25498
|
+
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
25499
|
+
|
|
25500
|
+
const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
25501
|
+
|
|
25502
|
+
const globalFetchAPI = (({Request, Response}) => ({
|
|
25503
|
+
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;
|
|
25497
25509
|
|
|
25498
|
-
// used only inside the fetch adapter
|
|
25499
|
-
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
25500
|
-
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
25501
|
-
async (str) => new Uint8Array(await new Response(str).arrayBuffer())
|
|
25502
|
-
);
|
|
25503
25510
|
|
|
25504
25511
|
const test = (fn, ...args) => {
|
|
25505
25512
|
try {
|
|
@@ -25509,208 +25516,263 @@ const test = (fn, ...args) => {
|
|
|
25509
25516
|
}
|
|
25510
25517
|
}
|
|
25511
25518
|
|
|
25512
|
-
const
|
|
25513
|
-
|
|
25519
|
+
const factory = (env) => {
|
|
25520
|
+
env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
|
|
25521
|
+
skipUndefined: true
|
|
25522
|
+
}, globalFetchAPI, env);
|
|
25514
25523
|
|
|
25515
|
-
const
|
|
25516
|
-
|
|
25517
|
-
|
|
25518
|
-
|
|
25519
|
-
duplexAccessed = true;
|
|
25520
|
-
return 'half';
|
|
25521
|
-
},
|
|
25522
|
-
}).headers.has('Content-Type');
|
|
25524
|
+
const {fetch: envFetch, Request, Response} = env;
|
|
25525
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
25526
|
+
const isRequestSupported = isFunction(Request);
|
|
25527
|
+
const isResponseSupported = isFunction(Response);
|
|
25523
25528
|
|
|
25524
|
-
|
|
25525
|
-
|
|
25529
|
+
if (!isFetchSupported) {
|
|
25530
|
+
return false;
|
|
25531
|
+
}
|
|
25526
25532
|
|
|
25527
|
-
const
|
|
25533
|
+
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
|
25528
25534
|
|
|
25529
|
-
const
|
|
25530
|
-
|
|
25535
|
+
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
|
|
25536
|
+
((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
|
|
25537
|
+
async (str) => new Uint8Array(await new Request(str).arrayBuffer())
|
|
25538
|
+
);
|
|
25531
25539
|
|
|
25540
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
25541
|
+
let duplexAccessed = false;
|
|
25532
25542
|
|
|
25533
|
-
const
|
|
25534
|
-
|
|
25535
|
-
|
|
25543
|
+
const hasContentType = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
|
|
25544
|
+
body: new ReadableStream(),
|
|
25545
|
+
method: 'POST',
|
|
25546
|
+
get duplex() {
|
|
25547
|
+
duplexAccessed = true;
|
|
25548
|
+
return 'half';
|
|
25549
|
+
},
|
|
25550
|
+
}).headers.has('Content-Type');
|
|
25536
25551
|
|
|
25537
|
-
|
|
25538
|
-
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
25539
|
-
!resolvers[type] && (resolvers[type] = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isFunction(res[type]) ? (res) => res[type]() :
|
|
25540
|
-
(_, config) => {
|
|
25541
|
-
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);
|
|
25542
|
-
})
|
|
25552
|
+
return duplexAccessed && !hasContentType;
|
|
25543
25553
|
});
|
|
25544
|
-
})(new Response));
|
|
25545
25554
|
|
|
25546
|
-
const
|
|
25547
|
-
|
|
25548
|
-
return 0;
|
|
25549
|
-
}
|
|
25555
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
|
|
25556
|
+
test(() => _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isReadableStream(new Response('').body));
|
|
25550
25557
|
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
}
|
|
25558
|
+
const resolvers = {
|
|
25559
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
25560
|
+
};
|
|
25554
25561
|
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
|
|
25558
|
-
|
|
25562
|
+
isFetchSupported && ((() => {
|
|
25563
|
+
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
|
25564
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
25565
|
+
let method = res && res[type];
|
|
25566
|
+
|
|
25567
|
+
if (method) {
|
|
25568
|
+
return method.call(res);
|
|
25569
|
+
}
|
|
25570
|
+
|
|
25571
|
+
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);
|
|
25572
|
+
})
|
|
25559
25573
|
});
|
|
25560
|
-
|
|
25561
|
-
}
|
|
25574
|
+
})());
|
|
25562
25575
|
|
|
25563
|
-
|
|
25564
|
-
|
|
25565
|
-
|
|
25576
|
+
const getBodyLength = async (body) => {
|
|
25577
|
+
if (body == null) {
|
|
25578
|
+
return 0;
|
|
25579
|
+
}
|
|
25580
|
+
|
|
25581
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isBlob(body)) {
|
|
25582
|
+
return body.size;
|
|
25583
|
+
}
|
|
25566
25584
|
|
|
25567
|
-
|
|
25568
|
-
|
|
25585
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isSpecCompliantForm(body)) {
|
|
25586
|
+
const _request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_1__["default"].origin, {
|
|
25587
|
+
method: 'POST',
|
|
25588
|
+
body,
|
|
25589
|
+
});
|
|
25590
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
25591
|
+
}
|
|
25592
|
+
|
|
25593
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBufferView(body) || _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArrayBuffer(body)) {
|
|
25594
|
+
return body.byteLength;
|
|
25595
|
+
}
|
|
25596
|
+
|
|
25597
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(body)) {
|
|
25598
|
+
body = body + '';
|
|
25599
|
+
}
|
|
25600
|
+
|
|
25601
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(body)) {
|
|
25602
|
+
return (await encodeText(body)).byteLength;
|
|
25603
|
+
}
|
|
25569
25604
|
}
|
|
25570
25605
|
|
|
25571
|
-
|
|
25572
|
-
|
|
25606
|
+
const resolveBodyLength = async (headers, body) => {
|
|
25607
|
+
const length = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(headers.getContentLength());
|
|
25608
|
+
|
|
25609
|
+
return length == null ? getBodyLength(body) : length;
|
|
25573
25610
|
}
|
|
25574
|
-
}
|
|
25575
25611
|
|
|
25576
|
-
|
|
25577
|
-
|
|
25612
|
+
return async (config) => {
|
|
25613
|
+
let {
|
|
25614
|
+
url,
|
|
25615
|
+
method,
|
|
25616
|
+
data,
|
|
25617
|
+
signal,
|
|
25618
|
+
cancelToken,
|
|
25619
|
+
timeout,
|
|
25620
|
+
onDownloadProgress,
|
|
25621
|
+
onUploadProgress,
|
|
25622
|
+
responseType,
|
|
25623
|
+
headers,
|
|
25624
|
+
withCredentials = 'same-origin',
|
|
25625
|
+
fetchOptions
|
|
25626
|
+
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
|
|
25578
25627
|
|
|
25579
|
-
|
|
25580
|
-
}
|
|
25628
|
+
let _fetch = envFetch || fetch;
|
|
25581
25629
|
|
|
25582
|
-
|
|
25583
|
-
|
|
25584
|
-
|
|
25585
|
-
|
|
25586
|
-
|
|
25587
|
-
|
|
25588
|
-
|
|
25589
|
-
timeout,
|
|
25590
|
-
onDownloadProgress,
|
|
25591
|
-
onUploadProgress,
|
|
25592
|
-
responseType,
|
|
25593
|
-
headers,
|
|
25594
|
-
withCredentials = 'same-origin',
|
|
25595
|
-
fetchOptions
|
|
25596
|
-
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
|
|
25597
|
-
|
|
25598
|
-
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
25599
|
-
|
|
25600
|
-
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
25601
|
-
|
|
25602
|
-
let request;
|
|
25603
|
-
|
|
25604
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
25630
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
25631
|
+
|
|
25632
|
+
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
25633
|
+
|
|
25634
|
+
let request = null;
|
|
25635
|
+
|
|
25636
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
25605
25637
|
composedSignal.unsubscribe();
|
|
25606
|
-
|
|
25638
|
+
});
|
|
25607
25639
|
|
|
25608
|
-
|
|
25640
|
+
let requestContentLength;
|
|
25609
25641
|
|
|
25610
|
-
|
|
25611
|
-
|
|
25612
|
-
|
|
25613
|
-
|
|
25614
|
-
|
|
25615
|
-
|
|
25616
|
-
|
|
25617
|
-
|
|
25618
|
-
|
|
25619
|
-
|
|
25642
|
+
try {
|
|
25643
|
+
if (
|
|
25644
|
+
onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
|
|
25645
|
+
(requestContentLength = await resolveBodyLength(headers, data)) !== 0
|
|
25646
|
+
) {
|
|
25647
|
+
let _request = new Request(url, {
|
|
25648
|
+
method: 'POST',
|
|
25649
|
+
body: data,
|
|
25650
|
+
duplex: "half"
|
|
25651
|
+
});
|
|
25620
25652
|
|
|
25621
|
-
|
|
25653
|
+
let contentTypeHeader;
|
|
25622
25654
|
|
|
25623
|
-
|
|
25624
|
-
|
|
25625
|
-
|
|
25655
|
+
if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
|
25656
|
+
headers.setContentType(contentTypeHeader)
|
|
25657
|
+
}
|
|
25626
25658
|
|
|
25627
|
-
|
|
25628
|
-
|
|
25629
|
-
|
|
25630
|
-
|
|
25631
|
-
|
|
25659
|
+
if (_request.body) {
|
|
25660
|
+
const [onProgress, flush] = (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
|
|
25661
|
+
requestContentLength,
|
|
25662
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onUploadProgress))
|
|
25663
|
+
);
|
|
25632
25664
|
|
|
25633
|
-
|
|
25665
|
+
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
25666
|
+
}
|
|
25634
25667
|
}
|
|
25635
|
-
}
|
|
25636
25668
|
|
|
25637
|
-
|
|
25638
|
-
|
|
25639
|
-
|
|
25669
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(withCredentials)) {
|
|
25670
|
+
withCredentials = withCredentials ? 'include' : 'omit';
|
|
25671
|
+
}
|
|
25640
25672
|
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
request = new Request(url, {
|
|
25645
|
-
...fetchOptions,
|
|
25646
|
-
signal: composedSignal,
|
|
25647
|
-
method: method.toUpperCase(),
|
|
25648
|
-
headers: headers.normalize().toJSON(),
|
|
25649
|
-
body: data,
|
|
25650
|
-
duplex: "half",
|
|
25651
|
-
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
25652
|
-
});
|
|
25673
|
+
// Cloudflare Workers throws when credentials are defined
|
|
25674
|
+
// see https://github.com/cloudflare/workerd/issues/902
|
|
25675
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
25653
25676
|
|
|
25654
|
-
|
|
25677
|
+
const resolvedOptions = {
|
|
25678
|
+
...fetchOptions,
|
|
25679
|
+
signal: composedSignal,
|
|
25680
|
+
method: method.toUpperCase(),
|
|
25681
|
+
headers: headers.normalize().toJSON(),
|
|
25682
|
+
body: data,
|
|
25683
|
+
duplex: "half",
|
|
25684
|
+
credentials: isCredentialsSupported ? withCredentials : undefined
|
|
25685
|
+
};
|
|
25655
25686
|
|
|
25656
|
-
|
|
25687
|
+
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
25657
25688
|
|
|
25658
|
-
|
|
25659
|
-
const options = {};
|
|
25689
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
25660
25690
|
|
|
25661
|
-
|
|
25662
|
-
options[prop] = response[prop];
|
|
25663
|
-
});
|
|
25691
|
+
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
25664
25692
|
|
|
25665
|
-
|
|
25693
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
25694
|
+
const options = {};
|
|
25666
25695
|
|
|
25667
|
-
|
|
25668
|
-
|
|
25669
|
-
|
|
25670
|
-
) || [];
|
|
25696
|
+
['status', 'statusText', 'headers'].forEach(prop => {
|
|
25697
|
+
options[prop] = response[prop];
|
|
25698
|
+
});
|
|
25671
25699
|
|
|
25672
|
-
|
|
25673
|
-
|
|
25674
|
-
|
|
25675
|
-
|
|
25676
|
-
|
|
25677
|
-
|
|
25678
|
-
);
|
|
25679
|
-
}
|
|
25700
|
+
const responseContentLength = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFiniteNumber(response.headers.get('content-length'));
|
|
25701
|
+
|
|
25702
|
+
const [onProgress, flush] = onDownloadProgress && (0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventDecorator)(
|
|
25703
|
+
responseContentLength,
|
|
25704
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onDownloadProgress), true)
|
|
25705
|
+
) || [];
|
|
25680
25706
|
|
|
25681
|
-
|
|
25707
|
+
response = new Response(
|
|
25708
|
+
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
25709
|
+
flush && flush();
|
|
25710
|
+
unsubscribe && unsubscribe();
|
|
25711
|
+
}),
|
|
25712
|
+
options
|
|
25713
|
+
);
|
|
25714
|
+
}
|
|
25682
25715
|
|
|
25683
|
-
|
|
25716
|
+
responseType = responseType || 'text';
|
|
25684
25717
|
|
|
25685
|
-
|
|
25718
|
+
let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].findKey(resolvers, responseType) || 'text'](response, config);
|
|
25686
25719
|
|
|
25687
|
-
|
|
25688
|
-
|
|
25689
|
-
|
|
25690
|
-
|
|
25691
|
-
|
|
25692
|
-
|
|
25693
|
-
|
|
25694
|
-
|
|
25720
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
25721
|
+
|
|
25722
|
+
return await new Promise((resolve, reject) => {
|
|
25723
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__["default"])(resolve, reject, {
|
|
25724
|
+
data: responseData,
|
|
25725
|
+
headers: _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_8__["default"].from(response.headers),
|
|
25726
|
+
status: response.status,
|
|
25727
|
+
statusText: response.statusText,
|
|
25728
|
+
config,
|
|
25729
|
+
request
|
|
25730
|
+
})
|
|
25695
25731
|
})
|
|
25696
|
-
})
|
|
25697
|
-
|
|
25698
|
-
unsubscribe && unsubscribe();
|
|
25732
|
+
} catch (err) {
|
|
25733
|
+
unsubscribe && unsubscribe();
|
|
25699
25734
|
|
|
25700
|
-
|
|
25701
|
-
|
|
25702
|
-
|
|
25703
|
-
|
|
25704
|
-
|
|
25705
|
-
|
|
25706
|
-
|
|
25735
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
25736
|
+
throw Object.assign(
|
|
25737
|
+
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
|
|
25738
|
+
{
|
|
25739
|
+
cause: err.cause || err
|
|
25740
|
+
}
|
|
25741
|
+
)
|
|
25742
|
+
}
|
|
25743
|
+
|
|
25744
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request);
|
|
25707
25745
|
}
|
|
25746
|
+
}
|
|
25747
|
+
}
|
|
25748
|
+
|
|
25749
|
+
const seedCache = new Map();
|
|
25708
25750
|
|
|
25709
|
-
|
|
25751
|
+
const getFetch = (config) => {
|
|
25752
|
+
let env = config ? config.env : {};
|
|
25753
|
+
const {fetch, Request, Response} = env;
|
|
25754
|
+
const seeds = [
|
|
25755
|
+
Request, Response, fetch
|
|
25756
|
+
];
|
|
25757
|
+
|
|
25758
|
+
let len = seeds.length, i = len,
|
|
25759
|
+
seed, target, map = seedCache;
|
|
25760
|
+
|
|
25761
|
+
while (i--) {
|
|
25762
|
+
seed = seeds[i];
|
|
25763
|
+
target = map.get(seed);
|
|
25764
|
+
|
|
25765
|
+
target === undefined && map.set(seed, target = (i ? new Map() : factory(env)))
|
|
25766
|
+
|
|
25767
|
+
map = target;
|
|
25710
25768
|
}
|
|
25711
|
-
}));
|
|
25712
25769
|
|
|
25770
|
+
return target;
|
|
25771
|
+
};
|
|
25772
|
+
|
|
25773
|
+
const adapter = getFetch();
|
|
25713
25774
|
|
|
25775
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (adapter);
|
|
25714
25776
|
|
|
25715
25777
|
|
|
25716
25778
|
/***/ }),
|
|
@@ -25728,30 +25790,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25728
25790
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
25729
25791
|
/* harmony export */ });
|
|
25730
25792
|
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25731
|
-
/* harmony import */ var
|
|
25793
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
|
|
25732
25794
|
/* harmony import */ var _core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../core/buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
|
|
25733
|
-
/* harmony import */ var
|
|
25795
|
+
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
|
|
25734
25796
|
/* harmony import */ var proxy_from_env__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! proxy-from-env */ "../node_modules/proxy-from-env/index.js");
|
|
25735
25797
|
/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! http */ "http");
|
|
25736
25798
|
/* harmony import */ var https__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! https */ "https");
|
|
25737
25799
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! util */ "util");
|
|
25738
25800
|
/* harmony import */ var follow_redirects__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! follow-redirects */ "../node_modules/follow-redirects/index.js");
|
|
25739
25801
|
/* harmony import */ var zlib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! zlib */ "zlib");
|
|
25740
|
-
/* harmony import */ var
|
|
25741
|
-
/* harmony import */ var
|
|
25742
|
-
/* harmony import */ var
|
|
25802
|
+
/* harmony import */ var _env_data_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../env/data.js */ "../node_modules/axios/lib/env/data.js");
|
|
25803
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
25804
|
+
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25743
25805
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
|
|
25744
25806
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
|
|
25745
|
-
/* harmony import */ var
|
|
25807
|
+
/* harmony import */ var _helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../helpers/fromDataURI.js */ "../node_modules/axios/lib/helpers/fromDataURI.js");
|
|
25746
25808
|
/* harmony import */ var stream__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stream */ "stream");
|
|
25747
|
-
/* harmony import */ var
|
|
25748
|
-
/* harmony import */ var
|
|
25809
|
+
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
|
|
25810
|
+
/* harmony import */ var _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../helpers/AxiosTransformStream.js */ "../node_modules/axios/lib/helpers/AxiosTransformStream.js");
|
|
25749
25811
|
/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! events */ "events");
|
|
25750
|
-
/* harmony import */ var
|
|
25751
|
-
/* harmony import */ var
|
|
25752
|
-
/* harmony import */ var
|
|
25812
|
+
/* harmony import */ var _helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../helpers/formDataToStream.js */ "../node_modules/axios/lib/helpers/formDataToStream.js");
|
|
25813
|
+
/* harmony import */ var _helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../helpers/readBlob.js */ "../node_modules/axios/lib/helpers/readBlob.js");
|
|
25814
|
+
/* harmony import */ var _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../helpers/ZlibHeaderTransformStream.js */ "../node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js");
|
|
25753
25815
|
/* harmony import */ var _helpers_callbackify_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../helpers/callbackify.js */ "../node_modules/axios/lib/helpers/callbackify.js");
|
|
25754
|
-
/* harmony import */ var
|
|
25816
|
+
/* harmony import */ var _helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../helpers/progressEventReducer.js */ "../node_modules/axios/lib/helpers/progressEventReducer.js");
|
|
25817
|
+
/* harmony import */ var _helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../helpers/estimateDataURLDecodedBytes.js */ "../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js");
|
|
25818
|
+
|
|
25755
25819
|
|
|
25756
25820
|
|
|
25757
25821
|
|
|
@@ -25800,6 +25864,7 @@ const supportedProtocols = _platform_index_js__WEBPACK_IMPORTED_MODULE_9__["defa
|
|
|
25800
25864
|
return protocol + ':';
|
|
25801
25865
|
});
|
|
25802
25866
|
|
|
25867
|
+
|
|
25803
25868
|
const flushOnFinish = (stream, [throttled, flush]) => {
|
|
25804
25869
|
stream
|
|
25805
25870
|
.on('end', flush)
|
|
@@ -25808,6 +25873,7 @@ const flushOnFinish = (stream, [throttled, flush]) => {
|
|
|
25808
25873
|
return throttled;
|
|
25809
25874
|
}
|
|
25810
25875
|
|
|
25876
|
+
|
|
25811
25877
|
/**
|
|
25812
25878
|
* If the proxy or config beforeRedirects functions are defined, call them with the options
|
|
25813
25879
|
* object.
|
|
@@ -25987,10 +26053,25 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
25987
26053
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
25988
26054
|
|
|
25989
26055
|
if (protocol === 'data:') {
|
|
26056
|
+
// Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
|
|
26057
|
+
if (config.maxContentLength > -1) {
|
|
26058
|
+
// Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
|
|
26059
|
+
const dataUrl = String(config.url || fullPath || '');
|
|
26060
|
+
const estimated = (0,_helpers_estimateDataURLDecodedBytes_js__WEBPACK_IMPORTED_MODULE_13__["default"])(dataUrl);
|
|
26061
|
+
|
|
26062
|
+
if (estimated > config.maxContentLength) {
|
|
26063
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26064
|
+
'maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
26065
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE,
|
|
26066
|
+
config
|
|
26067
|
+
));
|
|
26068
|
+
}
|
|
26069
|
+
}
|
|
26070
|
+
|
|
25990
26071
|
let convertedData;
|
|
25991
26072
|
|
|
25992
26073
|
if (method !== 'GET') {
|
|
25993
|
-
return (0,
|
|
26074
|
+
return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, {
|
|
25994
26075
|
status: 405,
|
|
25995
26076
|
statusText: 'method not allowed',
|
|
25996
26077
|
headers: {},
|
|
@@ -25999,11 +26080,11 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
25999
26080
|
}
|
|
26000
26081
|
|
|
26001
26082
|
try {
|
|
26002
|
-
convertedData = (0,
|
|
26083
|
+
convertedData = (0,_helpers_fromDataURI_js__WEBPACK_IMPORTED_MODULE_16__["default"])(config.url, responseType === 'blob', {
|
|
26003
26084
|
Blob: config.env && config.env.Blob
|
|
26004
26085
|
});
|
|
26005
26086
|
} catch (err) {
|
|
26006
|
-
throw
|
|
26087
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST, config);
|
|
26007
26088
|
}
|
|
26008
26089
|
|
|
26009
26090
|
if (responseType === 'text') {
|
|
@@ -26016,30 +26097,30 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26016
26097
|
convertedData = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(convertedData);
|
|
26017
26098
|
}
|
|
26018
26099
|
|
|
26019
|
-
return (0,
|
|
26100
|
+
return (0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, {
|
|
26020
26101
|
data: convertedData,
|
|
26021
26102
|
status: 200,
|
|
26022
26103
|
statusText: 'OK',
|
|
26023
|
-
headers: new
|
|
26104
|
+
headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"](),
|
|
26024
26105
|
config
|
|
26025
26106
|
});
|
|
26026
26107
|
}
|
|
26027
26108
|
|
|
26028
26109
|
if (supportedProtocols.indexOf(protocol) === -1) {
|
|
26029
|
-
return reject(new
|
|
26110
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26030
26111
|
'Unsupported protocol ' + protocol,
|
|
26031
|
-
|
|
26112
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26032
26113
|
config
|
|
26033
26114
|
));
|
|
26034
26115
|
}
|
|
26035
26116
|
|
|
26036
|
-
const headers =
|
|
26117
|
+
const headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"].from(config.headers).normalize();
|
|
26037
26118
|
|
|
26038
26119
|
// Set User-Agent (required by some servers)
|
|
26039
26120
|
// See https://github.com/axios/axios/issues/69
|
|
26040
26121
|
// User-Agent is specified; handle case where no UA header is desired
|
|
26041
26122
|
// Only set header if it hasn't been set in config
|
|
26042
|
-
headers.set('User-Agent', 'axios/' +
|
|
26123
|
+
headers.set('User-Agent', 'axios/' + _env_data_js__WEBPACK_IMPORTED_MODULE_18__.VERSION, false);
|
|
26043
26124
|
|
|
26044
26125
|
const {onUploadProgress, onDownloadProgress} = config;
|
|
26045
26126
|
const maxRate = config.maxRate;
|
|
@@ -26050,10 +26131,10 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26050
26131
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isSpecCompliantForm(data)) {
|
|
26051
26132
|
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
|
26052
26133
|
|
|
26053
|
-
data = (0,
|
|
26134
|
+
data = (0,_helpers_formDataToStream_js__WEBPACK_IMPORTED_MODULE_19__["default"])(data, (formHeaders) => {
|
|
26054
26135
|
headers.set(formHeaders);
|
|
26055
26136
|
}, {
|
|
26056
|
-
tag: `axios-${
|
|
26137
|
+
tag: `axios-${_env_data_js__WEBPACK_IMPORTED_MODULE_18__.VERSION}-boundary`,
|
|
26057
26138
|
boundary: userBoundary && userBoundary[1] || undefined
|
|
26058
26139
|
});
|
|
26059
26140
|
// support for https://www.npmjs.com/package/form-data api
|
|
@@ -26071,7 +26152,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26071
26152
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isBlob(data) || _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isFile(data)) {
|
|
26072
26153
|
data.size && headers.setContentType(data.type || 'application/octet-stream');
|
|
26073
26154
|
headers.setContentLength(data.size || 0);
|
|
26074
|
-
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from((0,
|
|
26155
|
+
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from((0,_helpers_readBlob_js__WEBPACK_IMPORTED_MODULE_20__["default"])(data));
|
|
26075
26156
|
} else if (data && !_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isStream(data)) {
|
|
26076
26157
|
if (Buffer.isBuffer(data)) {
|
|
26077
26158
|
// Nothing to do...
|
|
@@ -26080,9 +26161,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26080
26161
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].isString(data)) {
|
|
26081
26162
|
data = Buffer.from(data, 'utf-8');
|
|
26082
26163
|
} else {
|
|
26083
|
-
return reject(new
|
|
26164
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26084
26165
|
'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',
|
|
26085
|
-
|
|
26166
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26086
26167
|
config
|
|
26087
26168
|
));
|
|
26088
26169
|
}
|
|
@@ -26091,9 +26172,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26091
26172
|
headers.setContentLength(data.length, false);
|
|
26092
26173
|
|
|
26093
26174
|
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
|
26094
|
-
return reject(new
|
|
26175
|
+
return reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26095
26176
|
'Request body larger than maxBodyLength limit',
|
|
26096
|
-
|
|
26177
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_REQUEST,
|
|
26097
26178
|
config
|
|
26098
26179
|
));
|
|
26099
26180
|
}
|
|
@@ -26113,15 +26194,15 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26113
26194
|
data = stream__WEBPACK_IMPORTED_MODULE_6__.Readable.from(data, {objectMode: false});
|
|
26114
26195
|
}
|
|
26115
26196
|
|
|
26116
|
-
data = stream__WEBPACK_IMPORTED_MODULE_6__.pipeline([data, new
|
|
26197
|
+
data = stream__WEBPACK_IMPORTED_MODULE_6__.pipeline([data, new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__["default"]({
|
|
26117
26198
|
maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxUploadRate)
|
|
26118
26199
|
})], _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].noop);
|
|
26119
26200
|
|
|
26120
26201
|
onUploadProgress && data.on('progress', flushOnFinish(
|
|
26121
26202
|
data,
|
|
26122
|
-
(0,
|
|
26203
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventDecorator)(
|
|
26123
26204
|
contentLength,
|
|
26124
|
-
(0,
|
|
26205
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.asyncDecorator)(onUploadProgress), false, 3)
|
|
26125
26206
|
)
|
|
26126
26207
|
));
|
|
26127
26208
|
}
|
|
@@ -26145,7 +26226,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26145
26226
|
let path;
|
|
26146
26227
|
|
|
26147
26228
|
try {
|
|
26148
|
-
path = (0,
|
|
26229
|
+
path = (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_23__["default"])(
|
|
26149
26230
|
parsed.pathname + parsed.search,
|
|
26150
26231
|
config.params,
|
|
26151
26232
|
config.paramsSerializer
|
|
@@ -26223,15 +26304,15 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26223
26304
|
const responseLength = +res.headers['content-length'];
|
|
26224
26305
|
|
|
26225
26306
|
if (onDownloadProgress || maxDownloadRate) {
|
|
26226
|
-
const transformStream = new
|
|
26307
|
+
const transformStream = new _helpers_AxiosTransformStream_js__WEBPACK_IMPORTED_MODULE_21__["default"]({
|
|
26227
26308
|
maxRate: _utils_js__WEBPACK_IMPORTED_MODULE_8__["default"].toFiniteNumber(maxDownloadRate)
|
|
26228
26309
|
});
|
|
26229
26310
|
|
|
26230
26311
|
onDownloadProgress && transformStream.on('progress', flushOnFinish(
|
|
26231
26312
|
transformStream,
|
|
26232
|
-
(0,
|
|
26313
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventDecorator)(
|
|
26233
26314
|
responseLength,
|
|
26234
|
-
(0,
|
|
26315
|
+
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_22__.asyncDecorator)(onDownloadProgress), true, 3)
|
|
26235
26316
|
)
|
|
26236
26317
|
));
|
|
26237
26318
|
|
|
@@ -26265,7 +26346,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26265
26346
|
delete res.headers['content-encoding'];
|
|
26266
26347
|
break;
|
|
26267
26348
|
case 'deflate':
|
|
26268
|
-
streams.push(new
|
|
26349
|
+
streams.push(new _helpers_ZlibHeaderTransformStream_js__WEBPACK_IMPORTED_MODULE_24__["default"]());
|
|
26269
26350
|
|
|
26270
26351
|
// add the unzipper to the body stream processing pipeline
|
|
26271
26352
|
streams.push(zlib__WEBPACK_IMPORTED_MODULE_5__.createUnzip(zlibOptions));
|
|
@@ -26291,14 +26372,14 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26291
26372
|
const response = {
|
|
26292
26373
|
status: res.statusCode,
|
|
26293
26374
|
statusText: res.statusMessage,
|
|
26294
|
-
headers: new
|
|
26375
|
+
headers: new _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_17__["default"](res.headers),
|
|
26295
26376
|
config,
|
|
26296
26377
|
request: lastRequest
|
|
26297
26378
|
};
|
|
26298
26379
|
|
|
26299
26380
|
if (responseType === 'stream') {
|
|
26300
26381
|
response.data = responseStream;
|
|
26301
|
-
(0,
|
|
26382
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, response);
|
|
26302
26383
|
} else {
|
|
26303
26384
|
const responseBuffer = [];
|
|
26304
26385
|
let totalResponseBytes = 0;
|
|
@@ -26312,8 +26393,8 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26312
26393
|
// stream.destroy() emit aborted event before calling reject() on Node.js v16
|
|
26313
26394
|
rejected = true;
|
|
26314
26395
|
responseStream.destroy();
|
|
26315
|
-
reject(new
|
|
26316
|
-
|
|
26396
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"]('maxContentLength size of ' + config.maxContentLength + ' exceeded',
|
|
26397
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE, config, lastRequest));
|
|
26317
26398
|
}
|
|
26318
26399
|
});
|
|
26319
26400
|
|
|
@@ -26322,9 +26403,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26322
26403
|
return;
|
|
26323
26404
|
}
|
|
26324
26405
|
|
|
26325
|
-
const err = new
|
|
26406
|
+
const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26326
26407
|
'stream has been aborted',
|
|
26327
|
-
|
|
26408
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_RESPONSE,
|
|
26328
26409
|
config,
|
|
26329
26410
|
lastRequest
|
|
26330
26411
|
);
|
|
@@ -26334,7 +26415,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26334
26415
|
|
|
26335
26416
|
responseStream.on('error', function handleStreamError(err) {
|
|
26336
26417
|
if (req.destroyed) return;
|
|
26337
|
-
reject(
|
|
26418
|
+
reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, lastRequest));
|
|
26338
26419
|
});
|
|
26339
26420
|
|
|
26340
26421
|
responseStream.on('end', function handleStreamEnd() {
|
|
@@ -26348,9 +26429,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26348
26429
|
}
|
|
26349
26430
|
response.data = responseData;
|
|
26350
26431
|
} catch (err) {
|
|
26351
|
-
return reject(
|
|
26432
|
+
return reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, response.request, response));
|
|
26352
26433
|
}
|
|
26353
|
-
(0,
|
|
26434
|
+
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_15__["default"])(resolve, reject, response);
|
|
26354
26435
|
});
|
|
26355
26436
|
}
|
|
26356
26437
|
|
|
@@ -26371,7 +26452,7 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26371
26452
|
req.on('error', function handleRequestError(err) {
|
|
26372
26453
|
// @todo remove
|
|
26373
26454
|
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
|
|
26374
|
-
reject(
|
|
26455
|
+
reject(_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].from(err, null, config, req));
|
|
26375
26456
|
});
|
|
26376
26457
|
|
|
26377
26458
|
// set tcp keep alive to prevent drop connection by peer
|
|
@@ -26386,9 +26467,9 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26386
26467
|
const timeout = parseInt(config.timeout, 10);
|
|
26387
26468
|
|
|
26388
26469
|
if (Number.isNaN(timeout)) {
|
|
26389
|
-
reject(new
|
|
26470
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26390
26471
|
'error trying to parse `config.timeout` to int',
|
|
26391
|
-
|
|
26472
|
+
_core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ERR_BAD_OPTION_VALUE,
|
|
26392
26473
|
config,
|
|
26393
26474
|
req
|
|
26394
26475
|
));
|
|
@@ -26404,13 +26485,13 @@ const buildAddressEntry = (address, family) => resolveFamily(_utils_js__WEBPACK_
|
|
|
26404
26485
|
req.setTimeout(timeout, function handleRequestTimeout() {
|
|
26405
26486
|
if (isDone) return;
|
|
26406
26487
|
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
26407
|
-
const transitional = config.transitional ||
|
|
26488
|
+
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_25__["default"];
|
|
26408
26489
|
if (config.timeoutErrorMessage) {
|
|
26409
26490
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
26410
26491
|
}
|
|
26411
|
-
reject(new
|
|
26492
|
+
reject(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"](
|
|
26412
26493
|
timeoutErrorMessage,
|
|
26413
|
-
transitional.clarifyTimeoutError ?
|
|
26494
|
+
transitional.clarifyTimeoutError ? _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ETIMEDOUT : _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_14__["default"].ECONNABORTED,
|
|
26414
26495
|
config,
|
|
26415
26496
|
req
|
|
26416
26497
|
));
|
|
@@ -26578,15 +26659,18 @@ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
26578
26659
|
};
|
|
26579
26660
|
|
|
26580
26661
|
// Handle low level network errors
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
|
|
26584
|
-
|
|
26585
|
-
|
|
26586
|
-
|
|
26587
|
-
|
|
26662
|
+
request.onerror = function handleError(event) {
|
|
26663
|
+
// Browsers deliver a ProgressEvent in XHR onerror
|
|
26664
|
+
// (message may be empty; when present, surface it)
|
|
26665
|
+
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
|
26666
|
+
const msg = event && event.message ? event.message : 'Network Error';
|
|
26667
|
+
const err = new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"](msg, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__["default"].ERR_NETWORK, config, request);
|
|
26668
|
+
// attach the underlying event for consumers who want details
|
|
26669
|
+
err.event = event || null;
|
|
26670
|
+
reject(err);
|
|
26671
|
+
request = null;
|
|
26588
26672
|
};
|
|
26589
|
-
|
|
26673
|
+
|
|
26590
26674
|
// Handle timeout
|
|
26591
26675
|
request.ontimeout = function handleTimeout() {
|
|
26592
26676
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
@@ -27198,8 +27282,6 @@ class Axios {
|
|
|
27198
27282
|
|
|
27199
27283
|
let newConfig = config;
|
|
27200
27284
|
|
|
27201
|
-
i = 0;
|
|
27202
|
-
|
|
27203
27285
|
while (i < len) {
|
|
27204
27286
|
const onFulfilled = requestInterceptorChain[i++];
|
|
27205
27287
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -27375,11 +27457,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
27375
27457
|
return prop !== 'isAxiosError';
|
|
27376
27458
|
});
|
|
27377
27459
|
|
|
27378
|
-
|
|
27460
|
+
const msg = error && error.message ? error.message : 'Error';
|
|
27379
27461
|
|
|
27380
|
-
|
|
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);
|
|
27381
27465
|
|
|
27382
|
-
|
|
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';
|
|
27383
27472
|
|
|
27384
27473
|
customProps && Object.assign(axiosError, customProps);
|
|
27385
27474
|
|
|
@@ -27913,7 +28002,7 @@ function dispatchRequest(config) {
|
|
|
27913
28002
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
27914
28003
|
}
|
|
27915
28004
|
|
|
27916
|
-
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);
|
|
27917
28006
|
|
|
27918
28007
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
27919
28008
|
throwIfCancellationRequested(config);
|
|
@@ -28293,7 +28382,7 @@ const defaults = {
|
|
|
28293
28382
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
28294
28383
|
|
|
28295
28384
|
try {
|
|
28296
|
-
return JSON.parse(data);
|
|
28385
|
+
return JSON.parse(data, this.parseReviver);
|
|
28297
28386
|
} catch (e) {
|
|
28298
28387
|
if (strictJSONParsing) {
|
|
28299
28388
|
if (e.name === 'SyntaxError') {
|
|
@@ -28378,7 +28467,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28378
28467
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28379
28468
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
28380
28469
|
/* harmony export */ });
|
|
28381
|
-
const VERSION = "1.
|
|
28470
|
+
const VERSION = "1.12.2";
|
|
28382
28471
|
|
|
28383
28472
|
/***/ }),
|
|
28384
28473
|
|
|
@@ -28799,9 +28888,7 @@ function encode(val) {
|
|
|
28799
28888
|
replace(/%3A/gi, ':').
|
|
28800
28889
|
replace(/%24/g, '$').
|
|
28801
28890
|
replace(/%2C/gi, ',').
|
|
28802
|
-
replace(/%20/g, '+')
|
|
28803
|
-
replace(/%5B/gi, '[').
|
|
28804
|
-
replace(/%5D/gi, ']');
|
|
28891
|
+
replace(/%20/g, '+');
|
|
28805
28892
|
}
|
|
28806
28893
|
|
|
28807
28894
|
/**
|
|
@@ -29039,6 +29126,94 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29039
29126
|
|
|
29040
29127
|
|
|
29041
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
|
+
|
|
29042
29217
|
/***/ }),
|
|
29043
29218
|
|
|
29044
29219
|
/***/ "../node_modules/axios/lib/helpers/formDataToJSON.js":
|
|
@@ -29662,7 +29837,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29662
29837
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((config) => {
|
|
29663
29838
|
const newConfig = (0,_core_mergeConfig_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, config);
|
|
29664
29839
|
|
|
29665
|
-
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
|
29840
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
29666
29841
|
|
|
29667
29842
|
newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
|
|
29668
29843
|
|
|
@@ -29675,17 +29850,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29675
29850
|
);
|
|
29676
29851
|
}
|
|
29677
29852
|
|
|
29678
|
-
let contentType;
|
|
29679
|
-
|
|
29680
29853
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_4__["default"].isFormData(data)) {
|
|
29681
29854
|
if (_platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserEnv || _platform_index_js__WEBPACK_IMPORTED_MODULE_5__["default"].hasStandardBrowserWebWorkerEnv) {
|
|
29682
|
-
headers.setContentType(undefined); //
|
|
29683
|
-
} else if ((
|
|
29684
|
-
//
|
|
29685
|
-
const
|
|
29686
|
-
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
|
+
});
|
|
29687
29866
|
}
|
|
29688
|
-
}
|
|
29867
|
+
}
|
|
29689
29868
|
|
|
29690
29869
|
// Add xsrf header
|
|
29691
29870
|
// This is only done if running in a standard browser environment.
|
|
@@ -30726,7 +30905,7 @@ const isEmptyObject = (val) => {
|
|
|
30726
30905
|
if (!isObject(val) || isBuffer(val)) {
|
|
30727
30906
|
return false;
|
|
30728
30907
|
}
|
|
30729
|
-
|
|
30908
|
+
|
|
30730
30909
|
try {
|
|
30731
30910
|
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
|
30732
30911
|
} catch (e) {
|
|
@@ -30919,7 +31098,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
30919
31098
|
* @returns {Object} Result of all merge properties
|
|
30920
31099
|
*/
|
|
30921
31100
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
30922
|
-
const {caseless} = isContextDefined(this) && this || {};
|
|
31101
|
+
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
30923
31102
|
const result = {};
|
|
30924
31103
|
const assignValue = (val, key) => {
|
|
30925
31104
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -30929,7 +31108,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
30929
31108
|
result[targetKey] = merge({}, val);
|
|
30930
31109
|
} else if (isArray(val)) {
|
|
30931
31110
|
result[targetKey] = val.slice();
|
|
30932
|
-
} else {
|
|
31111
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
30933
31112
|
result[targetKey] = val;
|
|
30934
31113
|
}
|
|
30935
31114
|
}
|
|
@@ -31211,6 +31390,8 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
31211
31390
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
31212
31391
|
}
|
|
31213
31392
|
|
|
31393
|
+
|
|
31394
|
+
|
|
31214
31395
|
/**
|
|
31215
31396
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
31216
31397
|
*
|
|
@@ -32820,7 +33001,7 @@ function createClient(params, opts = {}) {
|
|
|
32820
33001
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32821
33002
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32822
33003
|
// @ts-expect-error
|
|
32823
|
-
`${sdkMain}/${"11.57.
|
|
33004
|
+
`${sdkMain}/${"11.57.2"}`, params.application, params.integration, params.feature);
|
|
32824
33005
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32825
33006
|
userAgent
|
|
32826
33007
|
}));
|