contentful-management 11.57.1 → 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 +17 -19
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +17 -19
- 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
|
@@ -25499,9 +25499,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
|
25499
25499
|
|
|
25500
25500
|
const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
|
|
25501
25501
|
|
|
25502
|
-
const globalFetchAPI = (({
|
|
25503
|
-
|
|
25504
|
-
|
|
25502
|
+
const globalFetchAPI = (({Request, Response}) => ({
|
|
25503
|
+
Request, Response
|
|
25504
|
+
}))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
|
|
25505
25505
|
|
|
25506
25506
|
const {
|
|
25507
25507
|
ReadableStream, TextEncoder
|
|
@@ -25517,8 +25517,12 @@ const test = (fn, ...args) => {
|
|
|
25517
25517
|
}
|
|
25518
25518
|
|
|
25519
25519
|
const factory = (env) => {
|
|
25520
|
-
|
|
25521
|
-
|
|
25520
|
+
env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
|
|
25521
|
+
skipUndefined: true
|
|
25522
|
+
}, globalFetchAPI, env);
|
|
25523
|
+
|
|
25524
|
+
const {fetch: envFetch, Request, Response} = env;
|
|
25525
|
+
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
|
25522
25526
|
const isRequestSupported = isFunction(Request);
|
|
25523
25527
|
const isResponseSupported = isFunction(Response);
|
|
25524
25528
|
|
|
@@ -25621,6 +25625,8 @@ const factory = (env) => {
|
|
|
25621
25625
|
fetchOptions
|
|
25622
25626
|
} = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
|
|
25623
25627
|
|
|
25628
|
+
let _fetch = envFetch || fetch;
|
|
25629
|
+
|
|
25624
25630
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
25625
25631
|
|
|
25626
25632
|
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
@@ -25680,7 +25686,7 @@ const factory = (env) => {
|
|
|
25680
25686
|
|
|
25681
25687
|
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
25682
25688
|
|
|
25683
|
-
let response = await (isRequestSupported ?
|
|
25689
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
25684
25690
|
|
|
25685
25691
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
25686
25692
|
|
|
@@ -25743,12 +25749,8 @@ const factory = (env) => {
|
|
|
25743
25749
|
const seedCache = new Map();
|
|
25744
25750
|
|
|
25745
25751
|
const getFetch = (config) => {
|
|
25746
|
-
let env =
|
|
25747
|
-
skipUndefined: true
|
|
25748
|
-
}, globalFetchAPI, config ? config.env : null);
|
|
25749
|
-
|
|
25752
|
+
let env = config ? config.env : {};
|
|
25750
25753
|
const {fetch, Request, Response} = env;
|
|
25751
|
-
|
|
25752
25754
|
const seeds = [
|
|
25753
25755
|
Request, Response, fetch
|
|
25754
25756
|
];
|
|
@@ -27280,8 +27282,6 @@ class Axios {
|
|
|
27280
27282
|
|
|
27281
27283
|
let newConfig = config;
|
|
27282
27284
|
|
|
27283
|
-
i = 0;
|
|
27284
|
-
|
|
27285
27285
|
while (i < len) {
|
|
27286
27286
|
const onFulfilled = requestInterceptorChain[i++];
|
|
27287
27287
|
const onRejected = requestInterceptorChain[i++];
|
|
@@ -28467,7 +28467,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28467
28467
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28468
28468
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
28469
28469
|
/* harmony export */ });
|
|
28470
|
-
const VERSION = "1.12.
|
|
28470
|
+
const VERSION = "1.12.2";
|
|
28471
28471
|
|
|
28472
28472
|
/***/ }),
|
|
28473
28473
|
|
|
@@ -31108,10 +31108,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
31108
31108
|
result[targetKey] = merge({}, val);
|
|
31109
31109
|
} else if (isArray(val)) {
|
|
31110
31110
|
result[targetKey] = val.slice();
|
|
31111
|
-
} else {
|
|
31112
|
-
|
|
31113
|
-
result[targetKey] = val;
|
|
31114
|
-
}
|
|
31111
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
31112
|
+
result[targetKey] = val;
|
|
31115
31113
|
}
|
|
31116
31114
|
}
|
|
31117
31115
|
|
|
@@ -33003,7 +33001,7 @@ function createClient(params, opts = {}) {
|
|
|
33003
33001
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
33004
33002
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
33005
33003
|
// @ts-expect-error
|
|
33006
|
-
`${sdkMain}/${"11.57.
|
|
33004
|
+
`${sdkMain}/${"11.57.2"}`, params.application, params.integration, params.feature);
|
|
33007
33005
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
33008
33006
|
userAgent
|
|
33009
33007
|
}));
|