contentful-management 11.69.2 → 11.69.3
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 +365 -298
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +410 -340
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/package.json +2 -2
|
@@ -25266,14 +25266,14 @@ const factory = (env) => {
|
|
|
25266
25266
|
|
|
25267
25267
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
25268
25268
|
throw Object.assign(
|
|
25269
|
-
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
|
|
25269
|
+
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request, err && err.response),
|
|
25270
25270
|
{
|
|
25271
25271
|
cause: err.cause || err
|
|
25272
25272
|
}
|
|
25273
25273
|
)
|
|
25274
25274
|
}
|
|
25275
25275
|
|
|
25276
|
-
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request);
|
|
25276
|
+
throw _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].from(err, err && err.code, config, request, err && err.response);
|
|
25277
25277
|
}
|
|
25278
25278
|
}
|
|
25279
25279
|
}
|
|
@@ -25317,8 +25317,8 @@ const adapter = getFetch();
|
|
|
25317
25317
|
|
|
25318
25318
|
"use strict";
|
|
25319
25319
|
__webpack_require__.r(__webpack_exports__);
|
|
25320
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*!
|
|
25321
|
-
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*!
|
|
25320
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25321
|
+
/* harmony import */ var _core_settle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../core/settle.js */ "../node_modules/axios/lib/core/settle.js");
|
|
25322
25322
|
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
25323
25323
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25324
25324
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
|
|
@@ -25806,31 +25806,27 @@ class CancelToken {
|
|
|
25806
25806
|
"use strict";
|
|
25807
25807
|
__webpack_require__.r(__webpack_exports__);
|
|
25808
25808
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
25809
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25810
|
-
|
|
25811
25809
|
|
|
25812
25810
|
|
|
25813
25811
|
|
|
25814
25812
|
|
|
25815
|
-
|
|
25816
|
-
|
|
25817
|
-
|
|
25818
|
-
|
|
25819
|
-
|
|
25820
|
-
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25813
|
+
class CanceledError extends _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
25814
|
+
/**
|
|
25815
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
25816
|
+
*
|
|
25817
|
+
* @param {string=} message The message.
|
|
25818
|
+
* @param {Object=} config The config.
|
|
25819
|
+
* @param {Object=} request The request.
|
|
25820
|
+
*
|
|
25821
|
+
* @returns {CanceledError} The created error.
|
|
25822
|
+
*/
|
|
25823
|
+
constructor(message, config, request) {
|
|
25824
|
+
super(message == null ? 'canceled' : message, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ERR_CANCELED, config, request);
|
|
25825
|
+
this.name = 'CanceledError';
|
|
25826
|
+
this.__CANCEL__ = true;
|
|
25827
|
+
}
|
|
25828
25828
|
}
|
|
25829
25829
|
|
|
25830
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].inherits(CanceledError, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"], {
|
|
25831
|
-
__CANCEL__: true
|
|
25832
|
-
});
|
|
25833
|
-
|
|
25834
25830
|
/* harmony default export */ __webpack_exports__["default"] = (CanceledError);
|
|
25835
25831
|
|
|
25836
25832
|
|
|
@@ -25864,14 +25860,16 @@ function isCancel(value) {
|
|
|
25864
25860
|
|
|
25865
25861
|
"use strict";
|
|
25866
25862
|
__webpack_require__.r(__webpack_exports__);
|
|
25867
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*!
|
|
25868
|
-
/* harmony import */ var
|
|
25863
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
25864
|
+
/* harmony import */ var _helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../helpers/buildURL.js */ "../node_modules/axios/lib/helpers/buildURL.js");
|
|
25869
25865
|
/* harmony import */ var _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InterceptorManager.js */ "../node_modules/axios/lib/core/InterceptorManager.js");
|
|
25870
|
-
/* harmony import */ var
|
|
25866
|
+
/* harmony import */ var _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dispatchRequest.js */ "../node_modules/axios/lib/core/dispatchRequest.js");
|
|
25871
25867
|
/* harmony import */ var _mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mergeConfig.js */ "../node_modules/axios/lib/core/mergeConfig.js");
|
|
25872
|
-
/* harmony import */ var
|
|
25868
|
+
/* harmony import */ var _buildFullPath_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./buildFullPath.js */ "../node_modules/axios/lib/core/buildFullPath.js");
|
|
25873
25869
|
/* harmony import */ var _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../helpers/validator.js */ "../node_modules/axios/lib/helpers/validator.js");
|
|
25874
25870
|
/* harmony import */ var _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
|
|
25871
|
+
/* harmony import */ var _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../defaults/transitional.js */ "../node_modules/axios/lib/defaults/transitional.js");
|
|
25872
|
+
|
|
25875
25873
|
|
|
25876
25874
|
|
|
25877
25875
|
|
|
@@ -25954,7 +25952,8 @@ class Axios {
|
|
|
25954
25952
|
_helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"].assertOptions(transitional, {
|
|
25955
25953
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
25956
25954
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
25957
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
25955
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
25956
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
25958
25957
|
}, false);
|
|
25959
25958
|
}
|
|
25960
25959
|
|
|
@@ -26013,7 +26012,14 @@ class Axios {
|
|
|
26013
26012
|
|
|
26014
26013
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
26015
26014
|
|
|
26016
|
-
|
|
26015
|
+
const transitional = config.transitional || _defaults_transitional_js__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
26016
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
26017
|
+
|
|
26018
|
+
if (legacyInterceptorReqResOrdering) {
|
|
26019
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
26020
|
+
} else {
|
|
26021
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
26022
|
+
}
|
|
26017
26023
|
});
|
|
26018
26024
|
|
|
26019
26025
|
const responseInterceptorChain = [];
|
|
@@ -26026,7 +26032,7 @@ class Axios {
|
|
|
26026
26032
|
let len;
|
|
26027
26033
|
|
|
26028
26034
|
if (!synchronousRequestInterceptors) {
|
|
26029
|
-
const chain = [
|
|
26035
|
+
const chain = [_dispatchRequest_js__WEBPACK_IMPORTED_MODULE_6__["default"].bind(this), undefined];
|
|
26030
26036
|
chain.unshift(...requestInterceptorChain);
|
|
26031
26037
|
chain.push(...responseInterceptorChain);
|
|
26032
26038
|
len = chain.length;
|
|
@@ -26056,7 +26062,7 @@ class Axios {
|
|
|
26056
26062
|
}
|
|
26057
26063
|
|
|
26058
26064
|
try {
|
|
26059
|
-
promise =
|
|
26065
|
+
promise = _dispatchRequest_js__WEBPACK_IMPORTED_MODULE_6__["default"].call(this, newConfig);
|
|
26060
26066
|
} catch (error) {
|
|
26061
26067
|
return Promise.reject(error);
|
|
26062
26068
|
}
|
|
@@ -26073,8 +26079,8 @@ class Axios {
|
|
|
26073
26079
|
|
|
26074
26080
|
getUri(config) {
|
|
26075
26081
|
config = (0,_mergeConfig_js__WEBPACK_IMPORTED_MODULE_2__["default"])(this.defaults, config);
|
|
26076
|
-
const fullPath = (0,
|
|
26077
|
-
return (0,
|
|
26082
|
+
const fullPath = (0,_buildFullPath_js__WEBPACK_IMPORTED_MODULE_7__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
26083
|
+
return (0,_helpers_buildURL_js__WEBPACK_IMPORTED_MODULE_8__["default"])(fullPath, config.params, config.paramsSerializer);
|
|
26078
26084
|
}
|
|
26079
26085
|
}
|
|
26080
26086
|
|
|
@@ -26129,110 +26135,73 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26129
26135
|
|
|
26130
26136
|
|
|
26131
26137
|
|
|
26132
|
-
|
|
26133
|
-
|
|
26134
|
-
|
|
26135
|
-
|
|
26136
|
-
|
|
26137
|
-
|
|
26138
|
-
|
|
26139
|
-
|
|
26140
|
-
*
|
|
26141
|
-
* @returns {Error} The created error.
|
|
26142
|
-
*/
|
|
26143
|
-
function AxiosError(message, code, config, request, response) {
|
|
26144
|
-
Error.call(this);
|
|
26145
|
-
|
|
26146
|
-
if (Error.captureStackTrace) {
|
|
26147
|
-
Error.captureStackTrace(this, this.constructor);
|
|
26148
|
-
} else {
|
|
26149
|
-
this.stack = (new Error()).stack;
|
|
26150
|
-
}
|
|
26138
|
+
class AxiosError extends Error {
|
|
26139
|
+
static from(error, code, config, request, response, customProps) {
|
|
26140
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
26141
|
+
axiosError.cause = error;
|
|
26142
|
+
axiosError.name = error.name;
|
|
26143
|
+
customProps && Object.assign(axiosError, customProps);
|
|
26144
|
+
return axiosError;
|
|
26145
|
+
}
|
|
26151
26146
|
|
|
26152
|
-
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
|
|
26157
|
-
|
|
26158
|
-
|
|
26159
|
-
|
|
26160
|
-
|
|
26147
|
+
/**
|
|
26148
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
26149
|
+
*
|
|
26150
|
+
* @param {string} message The error message.
|
|
26151
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
26152
|
+
* @param {Object} [config] The config.
|
|
26153
|
+
* @param {Object} [request] The request.
|
|
26154
|
+
* @param {Object} [response] The response.
|
|
26155
|
+
*
|
|
26156
|
+
* @returns {Error} The created error.
|
|
26157
|
+
*/
|
|
26158
|
+
constructor(message, code, config, request, response) {
|
|
26159
|
+
super(message);
|
|
26160
|
+
this.name = 'AxiosError';
|
|
26161
|
+
this.isAxiosError = true;
|
|
26162
|
+
code && (this.code = code);
|
|
26163
|
+
config && (this.config = config);
|
|
26164
|
+
request && (this.request = request);
|
|
26165
|
+
if (response) {
|
|
26166
|
+
this.response = response;
|
|
26167
|
+
this.status = response.status;
|
|
26168
|
+
}
|
|
26169
|
+
}
|
|
26170
|
+
|
|
26171
|
+
toJSON() {
|
|
26172
|
+
return {
|
|
26173
|
+
// Standard
|
|
26174
|
+
message: this.message,
|
|
26175
|
+
name: this.name,
|
|
26176
|
+
// Microsoft
|
|
26177
|
+
description: this.description,
|
|
26178
|
+
number: this.number,
|
|
26179
|
+
// Mozilla
|
|
26180
|
+
fileName: this.fileName,
|
|
26181
|
+
lineNumber: this.lineNumber,
|
|
26182
|
+
columnNumber: this.columnNumber,
|
|
26183
|
+
stack: this.stack,
|
|
26184
|
+
// Axios
|
|
26185
|
+
config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config),
|
|
26186
|
+
code: this.code,
|
|
26187
|
+
status: this.status,
|
|
26188
|
+
};
|
|
26189
|
+
}
|
|
26161
26190
|
}
|
|
26162
26191
|
|
|
26163
|
-
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
|
|
26167
|
-
|
|
26168
|
-
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
|
|
26175
|
-
|
|
26176
|
-
stack: this.stack,
|
|
26177
|
-
// Axios
|
|
26178
|
-
config: _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toJSONObject(this.config),
|
|
26179
|
-
code: this.code,
|
|
26180
|
-
status: this.status
|
|
26181
|
-
};
|
|
26182
|
-
}
|
|
26183
|
-
});
|
|
26184
|
-
|
|
26185
|
-
const prototype = AxiosError.prototype;
|
|
26186
|
-
const descriptors = {};
|
|
26187
|
-
|
|
26188
|
-
[
|
|
26189
|
-
'ERR_BAD_OPTION_VALUE',
|
|
26190
|
-
'ERR_BAD_OPTION',
|
|
26191
|
-
'ECONNABORTED',
|
|
26192
|
-
'ETIMEDOUT',
|
|
26193
|
-
'ERR_NETWORK',
|
|
26194
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
26195
|
-
'ERR_DEPRECATED',
|
|
26196
|
-
'ERR_BAD_RESPONSE',
|
|
26197
|
-
'ERR_BAD_REQUEST',
|
|
26198
|
-
'ERR_CANCELED',
|
|
26199
|
-
'ERR_NOT_SUPPORT',
|
|
26200
|
-
'ERR_INVALID_URL'
|
|
26201
|
-
// eslint-disable-next-line func-names
|
|
26202
|
-
].forEach(code => {
|
|
26203
|
-
descriptors[code] = {value: code};
|
|
26204
|
-
});
|
|
26205
|
-
|
|
26206
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
26207
|
-
Object.defineProperty(prototype, 'isAxiosError', {value: true});
|
|
26208
|
-
|
|
26209
|
-
// eslint-disable-next-line func-names
|
|
26210
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
26211
|
-
const axiosError = Object.create(prototype);
|
|
26212
|
-
|
|
26213
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].toFlatObject(error, axiosError, function filter(obj) {
|
|
26214
|
-
return obj !== Error.prototype;
|
|
26215
|
-
}, prop => {
|
|
26216
|
-
return prop !== 'isAxiosError';
|
|
26217
|
-
});
|
|
26218
|
-
|
|
26219
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
26220
|
-
|
|
26221
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
26222
|
-
const errCode = code == null && error ? error.code : code;
|
|
26223
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
26224
|
-
|
|
26225
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
26226
|
-
if (error && axiosError.cause == null) {
|
|
26227
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
26228
|
-
}
|
|
26229
|
-
|
|
26230
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
26231
|
-
|
|
26232
|
-
customProps && Object.assign(axiosError, customProps);
|
|
26233
|
-
|
|
26234
|
-
return axiosError;
|
|
26235
|
-
};
|
|
26192
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
26193
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
26194
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
26195
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
26196
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
26197
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
26198
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
26199
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
26200
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
26201
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
26202
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
26203
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
26204
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
26236
26205
|
|
|
26237
26206
|
/* harmony default export */ __webpack_exports__["default"] = (AxiosError);
|
|
26238
26207
|
|
|
@@ -26575,7 +26544,7 @@ _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].freezeMethods(AxiosHeaders);
|
|
|
26575
26544
|
|
|
26576
26545
|
"use strict";
|
|
26577
26546
|
__webpack_require__.r(__webpack_exports__);
|
|
26578
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*!
|
|
26547
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
26579
26548
|
|
|
26580
26549
|
|
|
26581
26550
|
|
|
@@ -26590,6 +26559,7 @@ class InterceptorManager {
|
|
|
26590
26559
|
*
|
|
26591
26560
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
26592
26561
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
26562
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
26593
26563
|
*
|
|
26594
26564
|
* @return {Number} An ID used to remove interceptor later
|
|
26595
26565
|
*/
|
|
@@ -26810,7 +26780,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26810
26780
|
|
|
26811
26781
|
|
|
26812
26782
|
|
|
26813
|
-
const headersToObject = (thing) =>
|
|
26783
|
+
const headersToObject = (thing) =>
|
|
26784
|
+
thing instanceof _AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? { ...thing } : thing;
|
|
26814
26785
|
|
|
26815
26786
|
/**
|
|
26816
26787
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -26828,7 +26799,7 @@ function mergeConfig(config1, config2) {
|
|
|
26828
26799
|
|
|
26829
26800
|
function getMergedValue(target, source, prop, caseless) {
|
|
26830
26801
|
if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(target) && _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
|
|
26831
|
-
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({caseless}, target, source);
|
|
26802
|
+
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge.call({ caseless }, target, source);
|
|
26832
26803
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isPlainObject(source)) {
|
|
26833
26804
|
return _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].merge({}, source);
|
|
26834
26805
|
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArray(source)) {
|
|
@@ -26837,7 +26808,6 @@ function mergeConfig(config1, config2) {
|
|
|
26837
26808
|
return source;
|
|
26838
26809
|
}
|
|
26839
26810
|
|
|
26840
|
-
// eslint-disable-next-line consistent-return
|
|
26841
26811
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
26842
26812
|
if (!_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(b)) {
|
|
26843
26813
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -26900,14 +26870,27 @@ function mergeConfig(config1, config2) {
|
|
|
26900
26870
|
socketPath: defaultToConfig2,
|
|
26901
26871
|
responseEncoding: defaultToConfig2,
|
|
26902
26872
|
validateStatus: mergeDirectKeys,
|
|
26903
|
-
headers: (a, b, prop) =>
|
|
26873
|
+
headers: (a, b, prop) =>
|
|
26874
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
26904
26875
|
};
|
|
26905
26876
|
|
|
26906
|
-
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(
|
|
26907
|
-
|
|
26908
|
-
|
|
26909
|
-
|
|
26910
|
-
|
|
26877
|
+
_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].forEach(
|
|
26878
|
+
Object.keys({ ...config1, ...config2 }),
|
|
26879
|
+
function computeConfigValue(prop) {
|
|
26880
|
+
if (
|
|
26881
|
+
prop === "__proto__" ||
|
|
26882
|
+
prop === "constructor" ||
|
|
26883
|
+
prop === "prototype"
|
|
26884
|
+
)
|
|
26885
|
+
return;
|
|
26886
|
+
const merge = _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].hasOwnProp(mergeMap, prop)
|
|
26887
|
+
? mergeMap[prop]
|
|
26888
|
+
: mergeDeepProperties;
|
|
26889
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
26890
|
+
(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
26891
|
+
(config[prop] = configValue);
|
|
26892
|
+
},
|
|
26893
|
+
);
|
|
26911
26894
|
|
|
26912
26895
|
return config;
|
|
26913
26896
|
}
|
|
@@ -26969,7 +26952,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26969
26952
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26970
26953
|
/* harmony export */ "default": function() { return /* binding */ transformData; }
|
|
26971
26954
|
/* harmony export */ });
|
|
26972
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*!
|
|
26955
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
26973
26956
|
/* harmony import */ var _defaults_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../defaults/index.js */ "../node_modules/axios/lib/defaults/index.js");
|
|
26974
26957
|
/* harmony import */ var _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../core/AxiosHeaders.js */ "../node_modules/axios/lib/core/AxiosHeaders.js");
|
|
26975
26958
|
|
|
@@ -27197,7 +27180,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27197
27180
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
27198
27181
|
silentJSONParsing: true,
|
|
27199
27182
|
forcedJSONParsing: true,
|
|
27200
|
-
clarifyTimeoutError: false
|
|
27183
|
+
clarifyTimeoutError: false,
|
|
27184
|
+
legacyInterceptorReqResOrdering: true
|
|
27201
27185
|
});
|
|
27202
27186
|
|
|
27203
27187
|
|
|
@@ -27214,7 +27198,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27214
27198
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27215
27199
|
/* harmony export */ VERSION: function() { return /* binding */ VERSION; }
|
|
27216
27200
|
/* harmony export */ });
|
|
27217
|
-
const VERSION = "1.13.
|
|
27201
|
+
const VERSION = "1.13.5";
|
|
27218
27202
|
|
|
27219
27203
|
/***/ }),
|
|
27220
27204
|
|
|
@@ -27451,29 +27435,26 @@ function encode(val) {
|
|
|
27451
27435
|
* @returns {string} The formatted url
|
|
27452
27436
|
*/
|
|
27453
27437
|
function buildURL(url, params, options) {
|
|
27454
|
-
/*eslint no-param-reassign:0*/
|
|
27455
27438
|
if (!params) {
|
|
27456
27439
|
return url;
|
|
27457
27440
|
}
|
|
27458
|
-
|
|
27441
|
+
|
|
27459
27442
|
const _encode = options && options.encode || encode;
|
|
27460
27443
|
|
|
27461
|
-
|
|
27462
|
-
options
|
|
27463
|
-
|
|
27464
|
-
};
|
|
27465
|
-
}
|
|
27444
|
+
const _options = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isFunction(options) ? {
|
|
27445
|
+
serialize: options
|
|
27446
|
+
} : options;
|
|
27466
27447
|
|
|
27467
|
-
const serializeFn =
|
|
27448
|
+
const serializeFn = _options && _options.serialize;
|
|
27468
27449
|
|
|
27469
27450
|
let serializedParams;
|
|
27470
27451
|
|
|
27471
27452
|
if (serializeFn) {
|
|
27472
|
-
serializedParams = serializeFn(params,
|
|
27453
|
+
serializedParams = serializeFn(params, _options);
|
|
27473
27454
|
} else {
|
|
27474
27455
|
serializedParams = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isURLSearchParams(params) ?
|
|
27475
27456
|
params.toString() :
|
|
27476
|
-
new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params,
|
|
27457
|
+
new _helpers_AxiosURLSearchParams_js__WEBPACK_IMPORTED_MODULE_1__["default"](params, _options).toString(_encode);
|
|
27477
27458
|
}
|
|
27478
27459
|
|
|
27479
27460
|
if (serializedParams) {
|
|
@@ -27555,7 +27536,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
27555
27536
|
|
|
27556
27537
|
let timer = timeout && setTimeout(() => {
|
|
27557
27538
|
timer = null;
|
|
27558
|
-
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](`timeout ${timeout}
|
|
27539
|
+
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ETIMEDOUT))
|
|
27559
27540
|
}, timeout)
|
|
27560
27541
|
|
|
27561
27542
|
const unsubscribe = () => {
|
|
@@ -27592,7 +27573,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
27592
27573
|
|
|
27593
27574
|
"use strict";
|
|
27594
27575
|
__webpack_require__.r(__webpack_exports__);
|
|
27595
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*!
|
|
27576
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
27596
27577
|
/* harmony import */ var _platform_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../platform/index.js */ "../node_modules/axios/lib/platform/index.js");
|
|
27597
27578
|
|
|
27598
27579
|
|
|
@@ -27783,10 +27764,15 @@ function isAbsoluteURL(url) {
|
|
|
27783
27764
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
27784
27765
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
27785
27766
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
27767
|
+
if (typeof url !== 'string') {
|
|
27768
|
+
return false;
|
|
27769
|
+
}
|
|
27770
|
+
|
|
27786
27771
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
27787
27772
|
}
|
|
27788
27773
|
|
|
27789
27774
|
|
|
27775
|
+
|
|
27790
27776
|
/***/ }),
|
|
27791
27777
|
|
|
27792
27778
|
/***/ "../node_modules/axios/lib/helpers/isAxiosError.js":
|
|
@@ -27800,7 +27786,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27800
27786
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27801
27787
|
/* harmony export */ "default": function() { return /* binding */ isAxiosError; }
|
|
27802
27788
|
/* harmony export */ });
|
|
27803
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*!
|
|
27789
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
27804
27790
|
|
|
27805
27791
|
|
|
27806
27792
|
|
|
@@ -27868,7 +27854,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27868
27854
|
|
|
27869
27855
|
"use strict";
|
|
27870
27856
|
__webpack_require__.r(__webpack_exports__);
|
|
27871
|
-
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*!
|
|
27857
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
27872
27858
|
|
|
27873
27859
|
|
|
27874
27860
|
|
|
@@ -28181,7 +28167,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28181
28167
|
*
|
|
28182
28168
|
* ```js
|
|
28183
28169
|
* function f(x, y, z) {}
|
|
28184
|
-
*
|
|
28170
|
+
* const args = [1, 2, 3];
|
|
28185
28171
|
* f.apply(null, args);
|
|
28186
28172
|
* ```
|
|
28187
28173
|
*
|
|
@@ -28927,30 +28913,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28927
28913
|
|
|
28928
28914
|
// utils is a library of generic helper functions non-specific to axios
|
|
28929
28915
|
|
|
28930
|
-
const {toString} = Object.prototype;
|
|
28931
|
-
const {getPrototypeOf} = Object;
|
|
28932
|
-
const {iterator, toStringTag} = Symbol;
|
|
28916
|
+
const { toString } = Object.prototype;
|
|
28917
|
+
const { getPrototypeOf } = Object;
|
|
28918
|
+
const { iterator, toStringTag } = Symbol;
|
|
28933
28919
|
|
|
28934
|
-
const kindOf = (cache => thing => {
|
|
28935
|
-
|
|
28936
|
-
|
|
28920
|
+
const kindOf = ((cache) => (thing) => {
|
|
28921
|
+
const str = toString.call(thing);
|
|
28922
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
28937
28923
|
})(Object.create(null));
|
|
28938
28924
|
|
|
28939
28925
|
const kindOfTest = (type) => {
|
|
28940
28926
|
type = type.toLowerCase();
|
|
28941
|
-
return (thing) => kindOf(thing) === type
|
|
28942
|
-
}
|
|
28927
|
+
return (thing) => kindOf(thing) === type;
|
|
28928
|
+
};
|
|
28943
28929
|
|
|
28944
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
28930
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
28945
28931
|
|
|
28946
28932
|
/**
|
|
28947
|
-
* Determine if a value is
|
|
28933
|
+
* Determine if a value is a non-null object
|
|
28948
28934
|
*
|
|
28949
28935
|
* @param {Object} val The value to test
|
|
28950
28936
|
*
|
|
28951
28937
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
28952
28938
|
*/
|
|
28953
|
-
const {isArray} = Array;
|
|
28939
|
+
const { isArray } = Array;
|
|
28954
28940
|
|
|
28955
28941
|
/**
|
|
28956
28942
|
* Determine if a value is undefined
|
|
@@ -28959,7 +28945,7 @@ const {isArray} = Array;
|
|
|
28959
28945
|
*
|
|
28960
28946
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
28961
28947
|
*/
|
|
28962
|
-
const isUndefined = typeOfTest(
|
|
28948
|
+
const isUndefined = typeOfTest("undefined");
|
|
28963
28949
|
|
|
28964
28950
|
/**
|
|
28965
28951
|
* Determine if a value is a Buffer
|
|
@@ -28969,8 +28955,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
28969
28955
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
28970
28956
|
*/
|
|
28971
28957
|
function isBuffer(val) {
|
|
28972
|
-
return
|
|
28973
|
-
|
|
28958
|
+
return (
|
|
28959
|
+
val !== null &&
|
|
28960
|
+
!isUndefined(val) &&
|
|
28961
|
+
val.constructor !== null &&
|
|
28962
|
+
!isUndefined(val.constructor) &&
|
|
28963
|
+
isFunction(val.constructor.isBuffer) &&
|
|
28964
|
+
val.constructor.isBuffer(val)
|
|
28965
|
+
);
|
|
28974
28966
|
}
|
|
28975
28967
|
|
|
28976
28968
|
/**
|
|
@@ -28980,8 +28972,7 @@ function isBuffer(val) {
|
|
|
28980
28972
|
*
|
|
28981
28973
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
28982
28974
|
*/
|
|
28983
|
-
const isArrayBuffer = kindOfTest(
|
|
28984
|
-
|
|
28975
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
28985
28976
|
|
|
28986
28977
|
/**
|
|
28987
28978
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -28992,10 +28983,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
28992
28983
|
*/
|
|
28993
28984
|
function isArrayBufferView(val) {
|
|
28994
28985
|
let result;
|
|
28995
|
-
if (
|
|
28986
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
28996
28987
|
result = ArrayBuffer.isView(val);
|
|
28997
28988
|
} else {
|
|
28998
|
-
result =
|
|
28989
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
28999
28990
|
}
|
|
29000
28991
|
return result;
|
|
29001
28992
|
}
|
|
@@ -29007,7 +28998,7 @@ function isArrayBufferView(val) {
|
|
|
29007
28998
|
*
|
|
29008
28999
|
* @returns {boolean} True if value is a String, otherwise false
|
|
29009
29000
|
*/
|
|
29010
|
-
const isString = typeOfTest(
|
|
29001
|
+
const isString = typeOfTest("string");
|
|
29011
29002
|
|
|
29012
29003
|
/**
|
|
29013
29004
|
* Determine if a value is a Function
|
|
@@ -29015,7 +29006,7 @@ const isString = typeOfTest('string');
|
|
|
29015
29006
|
* @param {*} val The value to test
|
|
29016
29007
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
29017
29008
|
*/
|
|
29018
|
-
const isFunction = typeOfTest(
|
|
29009
|
+
const isFunction = typeOfTest("function");
|
|
29019
29010
|
|
|
29020
29011
|
/**
|
|
29021
29012
|
* Determine if a value is a Number
|
|
@@ -29024,7 +29015,7 @@ const isFunction = typeOfTest('function');
|
|
|
29024
29015
|
*
|
|
29025
29016
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
29026
29017
|
*/
|
|
29027
|
-
const isNumber = typeOfTest(
|
|
29018
|
+
const isNumber = typeOfTest("number");
|
|
29028
29019
|
|
|
29029
29020
|
/**
|
|
29030
29021
|
* Determine if a value is an Object
|
|
@@ -29033,7 +29024,7 @@ const isNumber = typeOfTest('number');
|
|
|
29033
29024
|
*
|
|
29034
29025
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
29035
29026
|
*/
|
|
29036
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
29027
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
29037
29028
|
|
|
29038
29029
|
/**
|
|
29039
29030
|
* Determine if a value is a Boolean
|
|
@@ -29041,7 +29032,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
29041
29032
|
* @param {*} thing The value to test
|
|
29042
29033
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
29043
29034
|
*/
|
|
29044
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
29035
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
29045
29036
|
|
|
29046
29037
|
/**
|
|
29047
29038
|
* Determine if a value is a plain Object
|
|
@@ -29051,13 +29042,19 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
29051
29042
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
29052
29043
|
*/
|
|
29053
29044
|
const isPlainObject = (val) => {
|
|
29054
|
-
if (kindOf(val) !==
|
|
29045
|
+
if (kindOf(val) !== "object") {
|
|
29055
29046
|
return false;
|
|
29056
29047
|
}
|
|
29057
29048
|
|
|
29058
29049
|
const prototype = getPrototypeOf(val);
|
|
29059
|
-
return (
|
|
29060
|
-
|
|
29050
|
+
return (
|
|
29051
|
+
(prototype === null ||
|
|
29052
|
+
prototype === Object.prototype ||
|
|
29053
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
29054
|
+
!(toStringTag in val) &&
|
|
29055
|
+
!(iterator in val)
|
|
29056
|
+
);
|
|
29057
|
+
};
|
|
29061
29058
|
|
|
29062
29059
|
/**
|
|
29063
29060
|
* Determine if a value is an empty object (safely handles Buffers)
|
|
@@ -29073,12 +29070,15 @@ const isEmptyObject = (val) => {
|
|
|
29073
29070
|
}
|
|
29074
29071
|
|
|
29075
29072
|
try {
|
|
29076
|
-
return
|
|
29073
|
+
return (
|
|
29074
|
+
Object.keys(val).length === 0 &&
|
|
29075
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
29076
|
+
);
|
|
29077
29077
|
} catch (e) {
|
|
29078
29078
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
29079
29079
|
return false;
|
|
29080
29080
|
}
|
|
29081
|
-
}
|
|
29081
|
+
};
|
|
29082
29082
|
|
|
29083
29083
|
/**
|
|
29084
29084
|
* Determine if a value is a Date
|
|
@@ -29087,7 +29087,7 @@ const isEmptyObject = (val) => {
|
|
|
29087
29087
|
*
|
|
29088
29088
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
29089
29089
|
*/
|
|
29090
|
-
const isDate = kindOfTest(
|
|
29090
|
+
const isDate = kindOfTest("Date");
|
|
29091
29091
|
|
|
29092
29092
|
/**
|
|
29093
29093
|
* Determine if a value is a File
|
|
@@ -29096,7 +29096,7 @@ const isDate = kindOfTest('Date');
|
|
|
29096
29096
|
*
|
|
29097
29097
|
* @returns {boolean} True if value is a File, otherwise false
|
|
29098
29098
|
*/
|
|
29099
|
-
const isFile = kindOfTest(
|
|
29099
|
+
const isFile = kindOfTest("File");
|
|
29100
29100
|
|
|
29101
29101
|
/**
|
|
29102
29102
|
* Determine if a value is a Blob
|
|
@@ -29105,7 +29105,7 @@ const isFile = kindOfTest('File');
|
|
|
29105
29105
|
*
|
|
29106
29106
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
29107
29107
|
*/
|
|
29108
|
-
const isBlob = kindOfTest(
|
|
29108
|
+
const isBlob = kindOfTest("Blob");
|
|
29109
29109
|
|
|
29110
29110
|
/**
|
|
29111
29111
|
* Determine if a value is a FileList
|
|
@@ -29114,7 +29114,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
29114
29114
|
*
|
|
29115
29115
|
* @returns {boolean} True if value is a File, otherwise false
|
|
29116
29116
|
*/
|
|
29117
|
-
const isFileList = kindOfTest(
|
|
29117
|
+
const isFileList = kindOfTest("FileList");
|
|
29118
29118
|
|
|
29119
29119
|
/**
|
|
29120
29120
|
* Determine if a value is a Stream
|
|
@@ -29134,16 +29134,17 @@ const isStream = (val) => isObject(val) && isFunction(val.pipe);
|
|
|
29134
29134
|
*/
|
|
29135
29135
|
const isFormData = (thing) => {
|
|
29136
29136
|
let kind;
|
|
29137
|
-
return
|
|
29138
|
-
|
|
29139
|
-
|
|
29140
|
-
|
|
29141
|
-
|
|
29142
|
-
|
|
29143
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29137
|
+
return (
|
|
29138
|
+
thing &&
|
|
29139
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
29140
|
+
(isFunction(thing.append) &&
|
|
29141
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
29142
|
+
// detect form-data instance
|
|
29143
|
+
(kind === "object" &&
|
|
29144
|
+
isFunction(thing.toString) &&
|
|
29145
|
+
thing.toString() === "[object FormData]"))))
|
|
29146
|
+
);
|
|
29147
|
+
};
|
|
29147
29148
|
|
|
29148
29149
|
/**
|
|
29149
29150
|
* Determine if a value is a URLSearchParams object
|
|
@@ -29152,9 +29153,14 @@ const isFormData = (thing) => {
|
|
|
29152
29153
|
*
|
|
29153
29154
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
29154
29155
|
*/
|
|
29155
|
-
const isURLSearchParams = kindOfTest(
|
|
29156
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
29156
29157
|
|
|
29157
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
29158
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
29159
|
+
"ReadableStream",
|
|
29160
|
+
"Request",
|
|
29161
|
+
"Response",
|
|
29162
|
+
"Headers",
|
|
29163
|
+
].map(kindOfTest);
|
|
29158
29164
|
|
|
29159
29165
|
/**
|
|
29160
29166
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -29163,8 +29169,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
29163
29169
|
*
|
|
29164
29170
|
* @returns {String} The String freed of excess whitespace
|
|
29165
29171
|
*/
|
|
29166
|
-
const trim = (str) =>
|
|
29167
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
29172
|
+
const trim = (str) =>
|
|
29173
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29168
29174
|
|
|
29169
29175
|
/**
|
|
29170
29176
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -29175,15 +29181,16 @@ const trim = (str) => str.trim ?
|
|
|
29175
29181
|
* If 'obj' is an Object callback will be called passing
|
|
29176
29182
|
* the value, key, and complete object for each property.
|
|
29177
29183
|
*
|
|
29178
|
-
* @param {Object|Array} obj The object to iterate
|
|
29184
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
29179
29185
|
* @param {Function} fn The callback to invoke for each item
|
|
29180
29186
|
*
|
|
29181
|
-
* @param {
|
|
29187
|
+
* @param {Object} [options]
|
|
29188
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
29182
29189
|
* @returns {any}
|
|
29183
29190
|
*/
|
|
29184
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
29191
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
29185
29192
|
// Don't bother if no value provided
|
|
29186
|
-
if (obj === null || typeof obj ===
|
|
29193
|
+
if (obj === null || typeof obj === "undefined") {
|
|
29187
29194
|
return;
|
|
29188
29195
|
}
|
|
29189
29196
|
|
|
@@ -29191,7 +29198,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
29191
29198
|
let l;
|
|
29192
29199
|
|
|
29193
29200
|
// Force an array if not already something iterable
|
|
29194
|
-
if (typeof obj !==
|
|
29201
|
+
if (typeof obj !== "object") {
|
|
29195
29202
|
/*eslint no-param-reassign:0*/
|
|
29196
29203
|
obj = [obj];
|
|
29197
29204
|
}
|
|
@@ -29208,7 +29215,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
29208
29215
|
}
|
|
29209
29216
|
|
|
29210
29217
|
// Iterate over object keys
|
|
29211
|
-
const keys = allOwnKeys
|
|
29218
|
+
const keys = allOwnKeys
|
|
29219
|
+
? Object.getOwnPropertyNames(obj)
|
|
29220
|
+
: Object.keys(obj);
|
|
29212
29221
|
const len = keys.length;
|
|
29213
29222
|
let key;
|
|
29214
29223
|
|
|
@@ -29220,7 +29229,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
29220
29229
|
}
|
|
29221
29230
|
|
|
29222
29231
|
function findKey(obj, key) {
|
|
29223
|
-
if (isBuffer(obj)){
|
|
29232
|
+
if (isBuffer(obj)) {
|
|
29224
29233
|
return null;
|
|
29225
29234
|
}
|
|
29226
29235
|
|
|
@@ -29240,10 +29249,15 @@ function findKey(obj, key) {
|
|
|
29240
29249
|
const _global = (() => {
|
|
29241
29250
|
/*eslint no-undef:0*/
|
|
29242
29251
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
29243
|
-
return typeof self !== "undefined"
|
|
29252
|
+
return typeof self !== "undefined"
|
|
29253
|
+
? self
|
|
29254
|
+
: typeof window !== "undefined"
|
|
29255
|
+
? window
|
|
29256
|
+
: global;
|
|
29244
29257
|
})();
|
|
29245
29258
|
|
|
29246
|
-
const isContextDefined = (context) =>
|
|
29259
|
+
const isContextDefined = (context) =>
|
|
29260
|
+
!isUndefined(context) && context !== _global;
|
|
29247
29261
|
|
|
29248
29262
|
/**
|
|
29249
29263
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -29255,7 +29269,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
29255
29269
|
* Example:
|
|
29256
29270
|
*
|
|
29257
29271
|
* ```js
|
|
29258
|
-
*
|
|
29272
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
29259
29273
|
* console.log(result.foo); // outputs 456
|
|
29260
29274
|
* ```
|
|
29261
29275
|
*
|
|
@@ -29264,10 +29278,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
29264
29278
|
* @returns {Object} Result of all merge properties
|
|
29265
29279
|
*/
|
|
29266
29280
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
29267
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
29281
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
29268
29282
|
const result = {};
|
|
29269
29283
|
const assignValue = (val, key) => {
|
|
29270
|
-
|
|
29284
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
29285
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
29286
|
+
return;
|
|
29287
|
+
}
|
|
29288
|
+
|
|
29289
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
29271
29290
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
29272
29291
|
result[targetKey] = merge(result[targetKey], val);
|
|
29273
29292
|
} else if (isPlainObject(val)) {
|
|
@@ -29277,7 +29296,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
29277
29296
|
} else if (!skipUndefined || !isUndefined(val)) {
|
|
29278
29297
|
result[targetKey] = val;
|
|
29279
29298
|
}
|
|
29280
|
-
}
|
|
29299
|
+
};
|
|
29281
29300
|
|
|
29282
29301
|
for (let i = 0, l = arguments.length; i < l; i++) {
|
|
29283
29302
|
arguments[i] && forEach(arguments[i], assignValue);
|
|
@@ -29292,19 +29311,34 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
29292
29311
|
* @param {Object} b The object to copy properties from
|
|
29293
29312
|
* @param {Object} thisArg The object to bind function to
|
|
29294
29313
|
*
|
|
29295
|
-
* @param {
|
|
29314
|
+
* @param {Object} [options]
|
|
29315
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
29296
29316
|
* @returns {Object} The resulting value of object a
|
|
29297
29317
|
*/
|
|
29298
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
29299
|
-
forEach(
|
|
29300
|
-
|
|
29301
|
-
|
|
29302
|
-
|
|
29303
|
-
|
|
29304
|
-
|
|
29305
|
-
|
|
29318
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
29319
|
+
forEach(
|
|
29320
|
+
b,
|
|
29321
|
+
(val, key) => {
|
|
29322
|
+
if (thisArg && isFunction(val)) {
|
|
29323
|
+
Object.defineProperty(a, key, {
|
|
29324
|
+
value: (0,_helpers_bind_js__WEBPACK_IMPORTED_MODULE_0__["default"])(val, thisArg),
|
|
29325
|
+
writable: true,
|
|
29326
|
+
enumerable: true,
|
|
29327
|
+
configurable: true,
|
|
29328
|
+
});
|
|
29329
|
+
} else {
|
|
29330
|
+
Object.defineProperty(a, key, {
|
|
29331
|
+
value: val,
|
|
29332
|
+
writable: true,
|
|
29333
|
+
enumerable: true,
|
|
29334
|
+
configurable: true,
|
|
29335
|
+
});
|
|
29336
|
+
}
|
|
29337
|
+
},
|
|
29338
|
+
{ allOwnKeys },
|
|
29339
|
+
);
|
|
29306
29340
|
return a;
|
|
29307
|
-
}
|
|
29341
|
+
};
|
|
29308
29342
|
|
|
29309
29343
|
/**
|
|
29310
29344
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
@@ -29314,11 +29348,11 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
29314
29348
|
* @returns {string} content value without BOM
|
|
29315
29349
|
*/
|
|
29316
29350
|
const stripBOM = (content) => {
|
|
29317
|
-
if (content.charCodeAt(0) ===
|
|
29351
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
29318
29352
|
content = content.slice(1);
|
|
29319
29353
|
}
|
|
29320
29354
|
return content;
|
|
29321
|
-
}
|
|
29355
|
+
};
|
|
29322
29356
|
|
|
29323
29357
|
/**
|
|
29324
29358
|
* Inherit the prototype methods from one constructor into another
|
|
@@ -29330,13 +29364,21 @@ const stripBOM = (content) => {
|
|
|
29330
29364
|
* @returns {void}
|
|
29331
29365
|
*/
|
|
29332
29366
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
29333
|
-
constructor.prototype = Object.create(
|
|
29334
|
-
|
|
29335
|
-
|
|
29336
|
-
|
|
29367
|
+
constructor.prototype = Object.create(
|
|
29368
|
+
superConstructor.prototype,
|
|
29369
|
+
descriptors,
|
|
29370
|
+
);
|
|
29371
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
29372
|
+
value: constructor,
|
|
29373
|
+
writable: true,
|
|
29374
|
+
enumerable: false,
|
|
29375
|
+
configurable: true,
|
|
29376
|
+
});
|
|
29377
|
+
Object.defineProperty(constructor, "super", {
|
|
29378
|
+
value: superConstructor.prototype,
|
|
29337
29379
|
});
|
|
29338
29380
|
props && Object.assign(constructor.prototype, props);
|
|
29339
|
-
}
|
|
29381
|
+
};
|
|
29340
29382
|
|
|
29341
29383
|
/**
|
|
29342
29384
|
* Resolve object with deep prototype chain to a flat object
|
|
@@ -29362,16 +29404,23 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
29362
29404
|
i = props.length;
|
|
29363
29405
|
while (i-- > 0) {
|
|
29364
29406
|
prop = props[i];
|
|
29365
|
-
if (
|
|
29407
|
+
if (
|
|
29408
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
29409
|
+
!merged[prop]
|
|
29410
|
+
) {
|
|
29366
29411
|
destObj[prop] = sourceObj[prop];
|
|
29367
29412
|
merged[prop] = true;
|
|
29368
29413
|
}
|
|
29369
29414
|
}
|
|
29370
29415
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
29371
|
-
} while (
|
|
29416
|
+
} while (
|
|
29417
|
+
sourceObj &&
|
|
29418
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
29419
|
+
sourceObj !== Object.prototype
|
|
29420
|
+
);
|
|
29372
29421
|
|
|
29373
29422
|
return destObj;
|
|
29374
|
-
}
|
|
29423
|
+
};
|
|
29375
29424
|
|
|
29376
29425
|
/**
|
|
29377
29426
|
* Determines whether a string ends with the characters of a specified string
|
|
@@ -29390,8 +29439,7 @@ const endsWith = (str, searchString, position) => {
|
|
|
29390
29439
|
position -= searchString.length;
|
|
29391
29440
|
const lastIndex = str.indexOf(searchString, position);
|
|
29392
29441
|
return lastIndex !== -1 && lastIndex === position;
|
|
29393
|
-
}
|
|
29394
|
-
|
|
29442
|
+
};
|
|
29395
29443
|
|
|
29396
29444
|
/**
|
|
29397
29445
|
* Returns new array from array like object or null if failed
|
|
@@ -29410,7 +29458,7 @@ const toArray = (thing) => {
|
|
|
29410
29458
|
arr[i] = thing[i];
|
|
29411
29459
|
}
|
|
29412
29460
|
return arr;
|
|
29413
|
-
}
|
|
29461
|
+
};
|
|
29414
29462
|
|
|
29415
29463
|
/**
|
|
29416
29464
|
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
|
@@ -29421,12 +29469,12 @@ const toArray = (thing) => {
|
|
|
29421
29469
|
* @returns {Array}
|
|
29422
29470
|
*/
|
|
29423
29471
|
// eslint-disable-next-line func-names
|
|
29424
|
-
const isTypedArray = (TypedArray => {
|
|
29472
|
+
const isTypedArray = ((TypedArray) => {
|
|
29425
29473
|
// eslint-disable-next-line func-names
|
|
29426
|
-
return thing => {
|
|
29474
|
+
return (thing) => {
|
|
29427
29475
|
return TypedArray && thing instanceof TypedArray;
|
|
29428
29476
|
};
|
|
29429
|
-
})(typeof Uint8Array !==
|
|
29477
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
29430
29478
|
|
|
29431
29479
|
/**
|
|
29432
29480
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -29447,7 +29495,7 @@ const forEachEntry = (obj, fn) => {
|
|
|
29447
29495
|
const pair = result.value;
|
|
29448
29496
|
fn.call(obj, pair[0], pair[1]);
|
|
29449
29497
|
}
|
|
29450
|
-
}
|
|
29498
|
+
};
|
|
29451
29499
|
|
|
29452
29500
|
/**
|
|
29453
29501
|
* It takes a regular expression and a string, and returns an array of all the matches
|
|
@@ -29466,21 +29514,25 @@ const matchAll = (regExp, str) => {
|
|
|
29466
29514
|
}
|
|
29467
29515
|
|
|
29468
29516
|
return arr;
|
|
29469
|
-
}
|
|
29517
|
+
};
|
|
29470
29518
|
|
|
29471
29519
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
29472
|
-
const isHTMLForm = kindOfTest(
|
|
29520
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
29473
29521
|
|
|
29474
|
-
const toCamelCase = str => {
|
|
29475
|
-
return str
|
|
29476
|
-
|
|
29522
|
+
const toCamelCase = (str) => {
|
|
29523
|
+
return str
|
|
29524
|
+
.toLowerCase()
|
|
29525
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
29477
29526
|
return p1.toUpperCase() + p2;
|
|
29478
|
-
}
|
|
29479
|
-
);
|
|
29527
|
+
});
|
|
29480
29528
|
};
|
|
29481
29529
|
|
|
29482
29530
|
/* Creating a function that will check if an object has a property. */
|
|
29483
|
-
const hasOwnProperty = (
|
|
29531
|
+
const hasOwnProperty = (
|
|
29532
|
+
({ hasOwnProperty }) =>
|
|
29533
|
+
(obj, prop) =>
|
|
29534
|
+
hasOwnProperty.call(obj, prop)
|
|
29535
|
+
)(Object.prototype);
|
|
29484
29536
|
|
|
29485
29537
|
/**
|
|
29486
29538
|
* Determine if a value is a RegExp object
|
|
@@ -29489,7 +29541,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
29489
29541
|
*
|
|
29490
29542
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
29491
29543
|
*/
|
|
29492
|
-
const isRegExp = kindOfTest(
|
|
29544
|
+
const isRegExp = kindOfTest("RegExp");
|
|
29493
29545
|
|
|
29494
29546
|
const reduceDescriptors = (obj, reducer) => {
|
|
29495
29547
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -29503,7 +29555,7 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
29503
29555
|
});
|
|
29504
29556
|
|
|
29505
29557
|
Object.defineProperties(obj, reducedDescriptors);
|
|
29506
|
-
}
|
|
29558
|
+
};
|
|
29507
29559
|
|
|
29508
29560
|
/**
|
|
29509
29561
|
* Makes all methods read-only
|
|
@@ -29513,7 +29565,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
29513
29565
|
const freezeMethods = (obj) => {
|
|
29514
29566
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
29515
29567
|
// skip restricted props in strict mode
|
|
29516
|
-
if (
|
|
29568
|
+
if (
|
|
29569
|
+
isFunction(obj) &&
|
|
29570
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
29571
|
+
) {
|
|
29517
29572
|
return false;
|
|
29518
29573
|
}
|
|
29519
29574
|
|
|
@@ -29523,40 +29578,42 @@ const freezeMethods = (obj) => {
|
|
|
29523
29578
|
|
|
29524
29579
|
descriptor.enumerable = false;
|
|
29525
29580
|
|
|
29526
|
-
if (
|
|
29581
|
+
if ("writable" in descriptor) {
|
|
29527
29582
|
descriptor.writable = false;
|
|
29528
29583
|
return;
|
|
29529
29584
|
}
|
|
29530
29585
|
|
|
29531
29586
|
if (!descriptor.set) {
|
|
29532
29587
|
descriptor.set = () => {
|
|
29533
|
-
throw Error(
|
|
29588
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
29534
29589
|
};
|
|
29535
29590
|
}
|
|
29536
29591
|
});
|
|
29537
|
-
}
|
|
29592
|
+
};
|
|
29538
29593
|
|
|
29539
29594
|
const toObjectSet = (arrayOrString, delimiter) => {
|
|
29540
29595
|
const obj = {};
|
|
29541
29596
|
|
|
29542
29597
|
const define = (arr) => {
|
|
29543
|
-
arr.forEach(value => {
|
|
29598
|
+
arr.forEach((value) => {
|
|
29544
29599
|
obj[value] = true;
|
|
29545
29600
|
});
|
|
29546
|
-
}
|
|
29601
|
+
};
|
|
29547
29602
|
|
|
29548
|
-
isArray(arrayOrString)
|
|
29603
|
+
isArray(arrayOrString)
|
|
29604
|
+
? define(arrayOrString)
|
|
29605
|
+
: define(String(arrayOrString).split(delimiter));
|
|
29549
29606
|
|
|
29550
29607
|
return obj;
|
|
29551
|
-
}
|
|
29608
|
+
};
|
|
29552
29609
|
|
|
29553
|
-
const noop = () => {}
|
|
29610
|
+
const noop = () => {};
|
|
29554
29611
|
|
|
29555
29612
|
const toFiniteNumber = (value, defaultValue) => {
|
|
29556
|
-
return value != null && Number.isFinite(value = +value)
|
|
29557
|
-
|
|
29558
|
-
|
|
29559
|
-
|
|
29613
|
+
return value != null && Number.isFinite((value = +value))
|
|
29614
|
+
? value
|
|
29615
|
+
: defaultValue;
|
|
29616
|
+
};
|
|
29560
29617
|
|
|
29561
29618
|
/**
|
|
29562
29619
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
@@ -29566,14 +29623,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
29566
29623
|
* @returns {boolean}
|
|
29567
29624
|
*/
|
|
29568
29625
|
function isSpecCompliantForm(thing) {
|
|
29569
|
-
return !!(
|
|
29626
|
+
return !!(
|
|
29627
|
+
thing &&
|
|
29628
|
+
isFunction(thing.append) &&
|
|
29629
|
+
thing[toStringTag] === "FormData" &&
|
|
29630
|
+
thing[iterator]
|
|
29631
|
+
);
|
|
29570
29632
|
}
|
|
29571
29633
|
|
|
29572
29634
|
const toJSONObject = (obj) => {
|
|
29573
29635
|
const stack = new Array(10);
|
|
29574
29636
|
|
|
29575
29637
|
const visit = (source, i) => {
|
|
29576
|
-
|
|
29577
29638
|
if (isObject(source)) {
|
|
29578
29639
|
if (stack.indexOf(source) >= 0) {
|
|
29579
29640
|
return;
|
|
@@ -29584,7 +29645,7 @@ const toJSONObject = (obj) => {
|
|
|
29584
29645
|
return source;
|
|
29585
29646
|
}
|
|
29586
29647
|
|
|
29587
|
-
if(!(
|
|
29648
|
+
if (!("toJSON" in source)) {
|
|
29588
29649
|
stack[i] = source;
|
|
29589
29650
|
const target = isArray(source) ? [] : {};
|
|
29590
29651
|
|
|
@@ -29600,15 +29661,18 @@ const toJSONObject = (obj) => {
|
|
|
29600
29661
|
}
|
|
29601
29662
|
|
|
29602
29663
|
return source;
|
|
29603
|
-
}
|
|
29664
|
+
};
|
|
29604
29665
|
|
|
29605
29666
|
return visit(obj, 0);
|
|
29606
|
-
}
|
|
29667
|
+
};
|
|
29607
29668
|
|
|
29608
|
-
const isAsyncFn = kindOfTest(
|
|
29669
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
29609
29670
|
|
|
29610
29671
|
const isThenable = (thing) =>
|
|
29611
|
-
thing &&
|
|
29672
|
+
thing &&
|
|
29673
|
+
(isObject(thing) || isFunction(thing)) &&
|
|
29674
|
+
isFunction(thing.then) &&
|
|
29675
|
+
isFunction(thing.catch);
|
|
29612
29676
|
|
|
29613
29677
|
// original code
|
|
29614
29678
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -29618,32 +29682,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
29618
29682
|
return setImmediate;
|
|
29619
29683
|
}
|
|
29620
29684
|
|
|
29621
|
-
return postMessageSupported
|
|
29622
|
-
|
|
29623
|
-
|
|
29624
|
-
|
|
29625
|
-
|
|
29626
|
-
|
|
29685
|
+
return postMessageSupported
|
|
29686
|
+
? ((token, callbacks) => {
|
|
29687
|
+
_global.addEventListener(
|
|
29688
|
+
"message",
|
|
29689
|
+
({ source, data }) => {
|
|
29690
|
+
if (source === _global && data === token) {
|
|
29691
|
+
callbacks.length && callbacks.shift()();
|
|
29692
|
+
}
|
|
29693
|
+
},
|
|
29694
|
+
false,
|
|
29695
|
+
);
|
|
29627
29696
|
|
|
29628
|
-
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29633
|
-
|
|
29634
|
-
|
|
29635
|
-
isFunction(_global.postMessage)
|
|
29636
|
-
);
|
|
29697
|
+
return (cb) => {
|
|
29698
|
+
callbacks.push(cb);
|
|
29699
|
+
_global.postMessage(token, "*");
|
|
29700
|
+
};
|
|
29701
|
+
})(`axios@${Math.random()}`, [])
|
|
29702
|
+
: (cb) => setTimeout(cb);
|
|
29703
|
+
})(typeof setImmediate === "function", isFunction(_global.postMessage));
|
|
29637
29704
|
|
|
29638
|
-
const asap =
|
|
29639
|
-
|
|
29705
|
+
const asap =
|
|
29706
|
+
typeof queueMicrotask !== "undefined"
|
|
29707
|
+
? queueMicrotask.bind(_global)
|
|
29708
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
29640
29709
|
|
|
29641
29710
|
// *********************
|
|
29642
29711
|
|
|
29643
|
-
|
|
29644
29712
|
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
29645
29713
|
|
|
29646
|
-
|
|
29647
29714
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
29648
29715
|
isArray,
|
|
29649
29716
|
isArrayBuffer,
|
|
@@ -29701,7 +29768,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
29701
29768
|
isThenable,
|
|
29702
29769
|
setImmediate: _setImmediate,
|
|
29703
29770
|
asap,
|
|
29704
|
-
isIterable
|
|
29771
|
+
isIterable,
|
|
29705
29772
|
});
|
|
29706
29773
|
|
|
29707
29774
|
|