contentful-management 11.52.0 → 11.52.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/dist/contentful-management.browser.js +31 -13
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +32 -14
- 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/dist/typings/plain/common-types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25535,7 +25535,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
25535
25535
|
} catch (err) {
|
|
25536
25536
|
unsubscribe && unsubscribe();
|
|
25537
25537
|
|
|
25538
|
-
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
|
25538
|
+
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
25539
25539
|
throw Object.assign(
|
|
25540
25540
|
new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"]('Network Error', _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_2__["default"].ERR_NETWORK, config, request),
|
|
25541
25541
|
{
|
|
@@ -26886,7 +26886,7 @@ const validators = _helpers_validator_js__WEBPACK_IMPORTED_MODULE_0__["default"]
|
|
|
26886
26886
|
*/
|
|
26887
26887
|
class Axios {
|
|
26888
26888
|
constructor(instanceConfig) {
|
|
26889
|
-
this.defaults = instanceConfig;
|
|
26889
|
+
this.defaults = instanceConfig || {};
|
|
26890
26890
|
this.interceptors = {
|
|
26891
26891
|
request: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"](),
|
|
26892
26892
|
response: new _InterceptorManager_js__WEBPACK_IMPORTED_MODULE_1__["default"]()
|
|
@@ -27344,10 +27344,18 @@ class AxiosHeaders {
|
|
|
27344
27344
|
setHeaders(header, valueOrRewrite)
|
|
27345
27345
|
} else if(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
27346
27346
|
setHeaders((0,_helpers_parseHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"])(header), valueOrRewrite);
|
|
27347
|
-
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].
|
|
27348
|
-
|
|
27349
|
-
|
|
27347
|
+
} else if (_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isObject(header) && _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isIterable(header)) {
|
|
27348
|
+
let obj = {}, dest, key;
|
|
27349
|
+
for (const entry of header) {
|
|
27350
|
+
if (!_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(entry)) {
|
|
27351
|
+
throw TypeError('Object iterator must return a key-value pair');
|
|
27352
|
+
}
|
|
27353
|
+
|
|
27354
|
+
obj[key = entry[0]] = (dest = obj[key]) ?
|
|
27355
|
+
(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]]) : entry[1];
|
|
27350
27356
|
}
|
|
27357
|
+
|
|
27358
|
+
setHeaders(obj, valueOrRewrite)
|
|
27351
27359
|
} else {
|
|
27352
27360
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
27353
27361
|
}
|
|
@@ -27489,6 +27497,10 @@ class AxiosHeaders {
|
|
|
27489
27497
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
|
|
27490
27498
|
}
|
|
27491
27499
|
|
|
27500
|
+
getSetCookie() {
|
|
27501
|
+
return this.get("set-cookie") || [];
|
|
27502
|
+
}
|
|
27503
|
+
|
|
27492
27504
|
get [Symbol.toStringTag]() {
|
|
27493
27505
|
return 'AxiosHeaders';
|
|
27494
27506
|
}
|
|
@@ -28204,7 +28216,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28204
28216
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28205
28217
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
28206
28218
|
/* harmony export */ });
|
|
28207
|
-
const VERSION = "1.
|
|
28219
|
+
const VERSION = "1.9.0";
|
|
28208
28220
|
|
|
28209
28221
|
/***/ }),
|
|
28210
28222
|
|
|
@@ -29072,7 +29084,7 @@ const formDataToStream = (form, headersHandler, options) => {
|
|
|
29072
29084
|
}
|
|
29073
29085
|
|
|
29074
29086
|
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
|
29075
|
-
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF
|
|
29087
|
+
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);
|
|
29076
29088
|
let contentLength = footerBytes.byteLength;
|
|
29077
29089
|
|
|
29078
29090
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
@@ -30405,6 +30417,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30405
30417
|
|
|
30406
30418
|
const {toString} = Object.prototype;
|
|
30407
30419
|
const {getPrototypeOf} = Object;
|
|
30420
|
+
const {iterator, toStringTag} = Symbol;
|
|
30408
30421
|
|
|
30409
30422
|
const kindOf = (cache => thing => {
|
|
30410
30423
|
const str = toString.call(thing);
|
|
@@ -30531,7 +30544,7 @@ const isPlainObject = (val) => {
|
|
|
30531
30544
|
}
|
|
30532
30545
|
|
|
30533
30546
|
const prototype = getPrototypeOf(val);
|
|
30534
|
-
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(
|
|
30547
|
+
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
|
30535
30548
|
}
|
|
30536
30549
|
|
|
30537
30550
|
/**
|
|
@@ -30882,13 +30895,13 @@ const isTypedArray = (TypedArray => {
|
|
|
30882
30895
|
* @returns {void}
|
|
30883
30896
|
*/
|
|
30884
30897
|
const forEachEntry = (obj, fn) => {
|
|
30885
|
-
const generator = obj && obj[
|
|
30898
|
+
const generator = obj && obj[iterator];
|
|
30886
30899
|
|
|
30887
|
-
const
|
|
30900
|
+
const _iterator = generator.call(obj);
|
|
30888
30901
|
|
|
30889
30902
|
let result;
|
|
30890
30903
|
|
|
30891
|
-
while ((result =
|
|
30904
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
30892
30905
|
const pair = result.value;
|
|
30893
30906
|
fn.call(obj, pair[0], pair[1]);
|
|
30894
30907
|
}
|
|
@@ -31009,7 +31022,7 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
31009
31022
|
* @returns {boolean}
|
|
31010
31023
|
*/
|
|
31011
31024
|
function isSpecCompliantForm(thing) {
|
|
31012
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
31025
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
|
31013
31026
|
}
|
|
31014
31027
|
|
|
31015
31028
|
const toJSONObject = (obj) => {
|
|
@@ -31078,6 +31091,10 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
31078
31091
|
|
|
31079
31092
|
// *********************
|
|
31080
31093
|
|
|
31094
|
+
|
|
31095
|
+
const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
31096
|
+
|
|
31097
|
+
|
|
31081
31098
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
31082
31099
|
isArray,
|
|
31083
31100
|
isArrayBuffer,
|
|
@@ -31133,7 +31150,8 @@ const asap = typeof queueMicrotask !== 'undefined' ?
|
|
|
31133
31150
|
isAsyncFn,
|
|
31134
31151
|
isThenable,
|
|
31135
31152
|
setImmediate: _setImmediate,
|
|
31136
|
-
asap
|
|
31153
|
+
asap,
|
|
31154
|
+
isIterable
|
|
31137
31155
|
});
|
|
31138
31156
|
|
|
31139
31157
|
|
|
@@ -32599,7 +32617,7 @@ function createClient(params, opts = {}) {
|
|
|
32599
32617
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32600
32618
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32601
32619
|
// @ts-expect-error
|
|
32602
|
-
`${sdkMain}/${"11.52.
|
|
32620
|
+
`${sdkMain}/${"11.52.2"}`, params.application, params.integration, params.feature);
|
|
32603
32621
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32604
32622
|
userAgent
|
|
32605
32623
|
}));
|